SAPcpmsNetworkSynchronizationPolicy

public struct SAPcpmsNetworkSynchronizationPolicy

Describes the SAPcpms Network Synchronization policy structure

  • Initialize the structure from [String: Any] dictionary. For example when the policy received from mobile services and should parse the json. Example structure, which is part of the Settings structure downloaded from mobile services: { mobileservices: { settingsExchange: { … networkPolicy: { networkPolicyEnabled: true, analytics: { mobileNetwork: false, roaming: false, wifi: true }, clientResource: { mobileNetwork: false, roaming: false, wifi: true }, logs: { mobileNetwork: true, roaming: false, wifi: true }, offlineOData: { mobileNetwork: true, roaming: false, wifi: true } } … } } } If the enabled property is false, the init returns nil.

    Throws

    ConfigurationError if the received config is invalid.

    Declaration

    Swift

    public init?(sapcpmsSettings: Any) throws

    Parameters

    sapcpmsSettings

    ‘Any’ type object which can be converted to [String: Any]

  • Initialize the structure from [String: Any] dictionary. For example when the policy received from mobile services and should parse the json. Example structure, which is part of the Settings structure downloaded from mobile services: … networkPolicy: { networkPolicyEnabled: true, analytics: { mobileNetwork: false, roaming: false, wifi: true }, clientResource: { mobileNetwork: false, roaming: false, wifi: true }, logs: { mobileNetwork: true, roaming: false, wifi: true }, offlineOData: { mobileNetwork: true, roaming: false, wifi: true } } … If the networkPolicyEnabled property is false, the init returns nil.

    Throws

    ConfigurationError if the received config is invalid.

    Declaration

    Swift

    public init?(sapcpmsNetworkPolicy: Any) throws

    Parameters

    sapcpmsNetworkPolicy

    ‘Any’ type object which can be converted to [String: Any]

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }