SAPcpmsFeatureVectorPolicy
public struct SAPcpmsFeatureVectorPolicy
extension SAPcpmsFeatureVectorPolicy: CustomStringConvertible, CustomDebugStringConvertible
Describes the SAPcpms Feature Vector policy structure.
-
A boolean parameter which indicates whether all the featureVectorPolicies are enabled or not.
Declaration
Swift
public let featureVectorPolicyAllEnabled: Bool
-
An array of restricted SAPcpmsFeatures received from Mobile Services’ Feature Flags settings.
Declaration
Swift
public let restrictedPolicies: [SAPcpmsFeature]
-
An array of allowed SAPcpmsFeatures received from Mobile Services’ Feature Flags settings.
Declaration
Swift
public let allowedPolicies: [SAPcpmsFeature]
-
Initialize the structure from [String: Any] dictionary. Example structure, which is part of the Settings structure downloaded from mobile services: … { “mobileservices”: { “settingsExchange”: { “featureVectorPolicies” : { “restrictedPolicies” : [ { “pluginName” : “Printer”, “displayName” : “Print”, “name” : “Print”, “description” : “Print Plugin”, “id” : “de.appplant.cordova.plugin.printer.Printer”, “whitelist” : “”, “jsModule” : “plugin.printer,cordova.plugins.printer”, “version” : “3.0” } ], “allowedPolicies” : [ { “pluginName” : “Geolocation”, “displayName” : “Cordova Geolocation”, “name” : “Geolocation”, “description” : “Cordova Geolocation Plugin”, “id” : “cordova-plugin-geolocation”, “whitelist” : “”, “jsModule” : “Coordinates,PositionError,Position,navigator.geolocation,”, “version” : “3.0” } ], “featureVectorPolicyAllEnabled” : “true” }, } } } …
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: String] dictionary. Example structure, which is part of the Settings structure downloaded from mobile services: … “featureVectorPolicies” : { “restrictedPolicies” : [ { “pluginName” : “Printer”, “displayName” : “Print”, “name” : “Print”, “description” : “Print Plugin”, “id” : “de.appplant.cordova.plugin.printer.Printer”, “whitelist” : “”, “jsModule” : “plugin.printer,cordova.plugins.printer”, “version” : “3.0” } ], “allowedPolicies” : [ { “pluginName” : “Geolocation”, “displayName” : “Cordova Geolocation”, “name” : “Geolocation”, “description” : “Cordova Geolocation Plugin”, “id” : “cordova-plugin-geolocation”, “whitelist” : “”, “jsModule” : “Coordinates,PositionError,Position,navigator.geolocation,”, “version” : “3.0” } ], “featureVectorPolicyAllEnabled” : “true” }, …
Throws
ConfigurationError if the received config is invalidDeclaration
Swift
public init?(sapcpmsFeatureVectorePolicy: Any) throws
Parameters
sapcpmsFeatureVectorePolicy
Any
type object which can be converted to [String: Any] -
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public var debugDescription: String { get }