com.microsoft.intune.mam.policy.appconfig.MAMAppConfig |
Represents the custom app configuration data configured for a given user with MAM or with Android Enterprise. It allows the caller to query for specific values, or to retrieve the raw config data.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | MAMAppConfig.BooleanQueryType | Conflict resolution types for Boolean values. | |||||||||
enum | MAMAppConfig.NumberQueryType | Conflict resolution types for integer and double values. | |||||||||
enum | MAMAppConfig.StringQueryType | Conflict resolution types for Strings. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Boolean |
getBooleanForKey(String key, MAMAppConfig.BooleanQueryType queryType)
Returns a Boolean value for the given key if a value can be coerced into a Boolean, with conflicts resolved according
to the given query type.
| ||||||||||
abstract Double |
getDoubleForKey(String key, MAMAppConfig.NumberQueryType queryType)
Returns a Double value for the given key, with conflicts resolved according to the given query type.
| ||||||||||
abstract Long |
getIntegerForKey(String key, MAMAppConfig.NumberQueryType queryType)
Returns a Long integer value for the given key, with conflicts resolved according to the given query type.
| ||||||||||
abstract String |
getStringForKey(String key, MAMAppConfig.StringQueryType queryType)
Returns a String value for the given key, with conflicts resolved according to the given query type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.microsoft.intune.mam.policy.appconfig.MAMAppConfigBase
|
Returns a Boolean value for the given key if a value can be coerced into a Boolean, with conflicts resolved according to the given query type. Precisely, values will be returned from this function iff their String representation is case insensitively equal to "true" or "false".
key | the dictionary key of the value being queried. |
---|---|
queryType | determines how conflicts are resolved in case the key exists in multiple dictionaries. |
Returns a Double value for the given key, with conflicts resolved according to the given query type. Precisely, values will be returned from this function iff Double.parseDouble(stringRepresentation) does not throw an exception.
key | the dictionary key of the value being queried. |
---|---|
queryType | determines how conflicts are resolved in case the key exists in multiple dictionaries. |
Returns a Long integer value for the given key, with conflicts resolved according to the given query type. Precisely, values will be returned from this function iff Long.parseLong(stringRepresentation) does not throw an exception. Please note that Long.parseLong("1.0") does not produce a Long that is equal to 1L but rather, will throw an exception per Java specifications so, we will not include values that have floating points in the result of this function.
key | the dictionary key of the value being queried. |
---|---|
queryType | determines how conflicts are resolved in case the key exists in multiple dictionaries. |
Returns a String value for the given key, with conflicts resolved according to the given query type.
key | the dictionary key of the value being queried. |
---|---|
queryType | determines how conflicts are resolved in case the key exists in multiple dictionaries. |