ManagedConfigurationProvider
open class ManagedConfigurationProvider : ConfigurationProviding
Built-in configuration provider that obtains data from an MDM managed application. A managed application may have data written under the UserDefaults
key com.apple.configuration.managed
. This is the location chosen by Apple for managed applications. For more information, see Managed App Configuration Sample Code.
-
Default class initializer.
Declaration
Swift
public init()
-
A read-only property. The value for this class is
com.sap.configuration.provider.managed
.Declaration
Swift
public var providerIdentifier: String { get }
-
Reports what input(s) are required for operation. The value for this class is an empty
Dictionary
(no inputs expected).Declaration
Swift
public var expectedInput: [String : Any] { get }
-
Attempts to read configuration data from the
UserDefaults
keycom.apple.configuration.managed
.Declaration
Swift
public func provideConfiguration(input: [String : Any] = [:]) -> (providerSuccess: Bool, configuration: NSDictionary, returnError: Error?)
Parameters
input
Data supplied by app in response to
expectedInput
dictionary.Return Value
A tuple consisting of
providerSuccess
(success/fail result),configuration
if available, andreturnError
if applicable.