Class ManagedConfigurationProvider
-
- All Implemented Interfaces:
-
com.sap.cloud.mobile.foundation.configurationprovider.ConfigurationProvider
public class ManagedConfigurationProvider implements ConfigurationProvider
One of the default ConfigurationProviders, it obtains configuration data from the Enterprise Mobility Management ( EMM ) settings.
Under normal usage, it would not be accessed directly, but consumed through the Loader. It might be instantiated when constructing a custom ConfigurationLoader queue.
-
-
Constructor Summary
Constructors Constructor Description ManagedConfigurationProvider(Context context)
Standard constructor. ManagedConfigurationProvider(Context context, ManagedConfigToJsonConverter managedConfigToJsonConverter)
Constructor that allows the developer to provide their own com.sap.cloud.mobile.foundation.configurationprovider.ManagedConfigToJsonConverter, thus customizing the processing of the managed configuration bundle.
-
Method Summary
Modifier and Type Method Description ProviderIdentifier
getProviderIdentifier()
Returns the unique identifier associated with this ConfigurationProvider. ProviderInputs
getExpectedInput()
Reports what input(s) are required for the operation. ProviderConfiguration
provideConfiguration(@NonNull() ProviderInputs input)
Used by the loader, normally not used directly. -
-
Constructor Detail
-
ManagedConfigurationProvider
ManagedConfigurationProvider(Context context)
Standard constructor.- Parameters:
context
- An Android Context.
-
ManagedConfigurationProvider
ManagedConfigurationProvider(Context context, ManagedConfigToJsonConverter managedConfigToJsonConverter)
Constructor that allows the developer to provide their own com.sap.cloud.mobile.foundation.configurationprovider.ManagedConfigToJsonConverter, thus customizing the processing of the managed configuration bundle.- Parameters:
context
- An Android Context.managedConfigToJsonConverter
- Any object that implements com.sap.cloud.mobile.foundation.configurationprovider.ManagedConfigToJsonConverter.
-
-
Method Detail
-
getProviderIdentifier
@NonNull() ProviderIdentifier getProviderIdentifier()
Returns the unique identifier associated with this ConfigurationProvider.
- Returns:
-
getExpectedInput
@NonNull() ProviderInputs getExpectedInput()
Reports what input(s) are required for the operation. The value for this class is an empty Dictionary (no inputs expected), since retrieving the managed configuration values requires no input .
- Returns:
An empty ProviderInputs object.
-
provideConfiguration
@NonNull() ProviderConfiguration provideConfiguration(@NonNull() ProviderInputs input)
Used by the loader, normally not used directly.
-
-
-
-