SAPcpmsUsagePolicyApplyStep
open class SAPcpmsUsagePolicyApplyStep : OnboardingStep
Class for SAPcpmsUsagePolicy and SAPcpmsSettings onboarding step handling to configure SAPFoundation.UsageBroker Singleton object.
-
Custom key of SAPcpmsSettingsParameters
Declaration
Swift
open var sapCPmsSettingsParameterKey: OnboardingInfoKey -
Custom parameter of usageStoreDbEncryptionKey
Declaration
Swift
open var usageStoreDbEncryptionKey: OnboardingInfoKey -
Designated initializer
Declaration
Swift
public init() -
Onboarding function with
OnboardingContextsupport used to initialize UsageBroker for multi-user operations.Declaration
Swift
open func onboard(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlercalled when the process finished. Error filled on failure.
-
Restore function with
OnboardingContextsupport support used to initailze UsageBroker fro muti-user operations.Declaration
Swift
open func restore(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlercalled when the process finished. Error filled on failure.
-
resetPasscode function with
OnboardingContextsupportDeclaration
Swift
open func resetPasscode(context: OnboardingContext, completionHandler: @escaping (OnboardingResult) -> Void)Parameters
contextcompletionHandlercalled when the process finished. Step OnboardingResult filled.
-
This function resets the modifications of
SAPcpmsUsagePolicymodifications inOnboardingContextDeclaration
Swift
open func reset(context: OnboardingContext, completionHandler: @escaping () -> Void)Parameters
contextOnboardingContextobject which contains every information for the OnboardingStepcompletionHandlercalled when the process finished.
-
onboard(onboardingID:encryptionKey:sapURLSession:sapcpmsSettingsParameters:sapcpmsUsagePolicy:completionHandler:)Onboarding function without context for SAPcpmsUsagePolicy.
Declaration
Swift
open func onboard(onboardingID: UUID, encryptionKey: String, sapURLSession: SAPURLSession, sapcpmsSettingsParameters: SAPcpmsSettingsParameters, sapcpmsUsagePolicy: SAPcpmsUsagePolicy?, completionHandler: @escaping (Error?) -> Void)Parameters
onboardingIDThe unique identifier of an onboarding flow.
encryptionKeyvalue used to access usage store associated with onboardingID
sapURLSessionSAPURLSessionthat handles the connection to download destinationsapcpmsSettingsParametersSAPcpms settings metadata to be able to concatenate the SAPcpms URL
sapcpmsUsagePolicyconditional policy describing how to configure UsageBroker
completionHandlercalled when the process finished. Error filled on failure.
-
restore(onboardingID:encryptionKey:sapURLSession:sapcpmsSettingsParameters:sapcpmsUsagePolicy:completionHandler:)Restore function without context for SAPcpmsUsagePolicy.
Declaration
Swift
open func restore(onboardingID: UUID, encryptionKey: String, sapURLSession: SAPURLSession, sapcpmsSettingsParameters: SAPcpmsSettingsParameters, sapcpmsUsagePolicy: SAPcpmsUsagePolicy?, completionHandler: @escaping (Error?) -> Void)Parameters
onboardingIDThe unique identifier of an onboarding flow.
encryptionKeyvalue used to access usage store associated with onboardingID
sapURLSessionSAPURLSessionthat handles the connection to download destinationsapcpmsSettingsParametersSAPcpms settings metadata to be able to concatenate the SAPcpms URL
sapcpmsUsagePolicyconditional policy describing how to configure UsageBroker
completionHandlercalled when the process finished. Error filled on failure.
-
This function resets the modifications of the SAPcpmsUsagePolicy.
Declaration
Swift
open func reset(completionHandler: @escaping () -> Void)Parameters
completionHandlercalled when the process finished.