public interface

MAMAppConfig

implements MAMAppConfigBase
com.microsoft.intune.mam.policy.appconfig.MAMAppConfig

Class Overview

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.

Summary

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

Public Methods

public 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. Precisely, values will be returned from this function iff their String representation is case insensitively equal to "true" or "false".

Parameters
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 Boolean value for the given key if it can be coerced into a Boolean, or null if none exists or it cannot be coerced.

public 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. Precisely, values will be returned from this function iff Double.parseDouble(stringRepresentation) does not throw an exception.

Parameters
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 if it can be coerced into a Double, or null if none exists or it cannot be coerced.

public 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. 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.

Parameters
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 value for the given key if it can be coerced into a Long, or null if none exists or it cannot be coerced.

public 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.

Parameters
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, or null if none exists.