public class ImsConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImsConfig.ConfigConstants
Defines IMS service/capability parameters.
|
static class |
ImsConfig.FeatureConstants
Defines IMS service/capability feature constants.
|
static class |
ImsConfig.FeatureValueConstants
Defines IMS feature value.
|
static class |
ImsConfig.OperationStatusConstants
Defines IMS set operation status.
|
static class |
ImsConfig.OperationValuesConstants
Defines IMS get operation values.
|
static class |
ImsConfig.VideoQualityFeatureValuesConstants
Defines IMS video quality feature value.
|
static class |
ImsConfig.WfcModeFeatureValueConstants
Defines IMS feature value.
|
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_IMS_CONFIG_CHANGED
Broadcast action: the configuration was changed
|
static String |
ACTION_IMS_FEATURE_CHANGED
Broadcast action: the feature enable status was changed
|
static String |
EXTRA_CHANGED_ITEM
Extra parameter "item" of intent ACTION_IMS_FEATURE_CHANGED and ACTION_IMS_CONFIG_CHANGED.
|
static String |
EXTRA_NEW_VALUE
Extra parameter "value" of intent ACTION_IMS_FEATURE_CHANGED and ACTION_IMS_CONFIG_CHANGED.
|
Constructor and Description |
---|
ImsConfig(IImsConfig iconfig,
Context context) |
Modifier and Type | Method and Description |
---|---|
void |
getFeatureValue(int feature,
int network,
ImsConfigListener listener)
Gets the value for IMS feature item for specified network type.
|
String |
getProvisionedStringValue(int item)
Gets the provisioned value for IMS service/capabilities parameters used by IMS stack.
|
int |
getProvisionedValue(int item)
Gets the provisioned value for IMS service/capabilities parameters used by IMS stack.
|
void |
setFeatureValue(int feature,
int network,
int value,
ImsConfigListener listener)
Sets the value for IMS feature item for specified network type.
|
int |
setProvisionedStringValue(int item,
String value)
Sets the value for IMS service/capabilities parameters by
the operator device management entity.
|
int |
setProvisionedValue(int item,
int value)
Sets the value for IMS service/capabilities parameters by
the operator device management entity.
|
public static final String ACTION_IMS_FEATURE_CHANGED
public static final String ACTION_IMS_CONFIG_CHANGED
public static final String EXTRA_CHANGED_ITEM
public static final String EXTRA_NEW_VALUE
public ImsConfig(IImsConfig iconfig, Context context)
public int getProvisionedValue(int item) throws ImsException
item,
- as defined in com.android.ims.ImsConfig#ConfigConstants.ImsException
- if calling the IMS service results in an error.public String getProvisionedStringValue(int item) throws ImsException
item,
- as defined in com.android.ims.ImsConfig#ConfigConstants.ImsException
- if calling the IMS service results in an error.public int setProvisionedValue(int item, int value) throws ImsException
item,
- as defined in com.android.ims.ImsConfig#ConfigConstants.value
- in Integer format.ImsException
- if calling the IMS service results in an error.public int setProvisionedStringValue(int item, String value) throws ImsException
item,
- as defined in com.android.ims.ImsConfig#ConfigConstants.value
- in String format.ImsException
- if calling the IMS service results in an error.public void getFeatureValue(int feature, int network, ImsConfigListener listener) throws ImsException
feature,
- defined as in FeatureConstants.network,
- defined as in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.listener,
- provided to be notified for the feature on/off status.ImsException
- if calling the IMS service results in an error.public void setFeatureValue(int feature, int network, int value, ImsConfigListener listener) throws ImsException
feature,
- as defined in FeatureConstants.network,
- as defined in android.telephony.TelephonyManager#NETWORK_TYPE_XXX.value,
- as defined in FeatureValueConstants.listener,
- provided if caller needs to be notified for set result.ImsException
- if calling the IMS service results in an error.