SAPcpmsUsagePolicyApplyStep

open class SAPcpmsUsagePolicyApplyStep : OnboardingStep

Class for SAPcpmsUsagePolicy and SAPcpmsSettings onboarding step handling to configure SAPFoundation.UsageBroker Singleton object.

  • 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

    onboardingID

    The unique identifier of an onboarding flow.

    encryptionKey

    value used to access usage store associated with onboardingID

    sapURLSession

    SAPURLSession that handles the connection to download destination

    sapcpmsSettingsParameters

    SAPcpms settings metadata to be able to concatenate the SAPcpms URL

    sapcpmsUsagePolicy

    conditional policy describing how to configure UsageBroker

    completionHandler

    called when the process finished. Error filled on failure.

  • 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

    onboardingID

    The unique identifier of an onboarding flow.

    encryptionKey

    value used to access usage store associated with onboardingID

    sapURLSession

    SAPURLSession that handles the connection to download destination

    sapcpmsSettingsParameters

    SAPcpms settings metadata to be able to concatenate the SAPcpms URL

    sapcpmsUsagePolicy

    conditional policy describing how to configure UsageBroker

    completionHandler

    called 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

    completionHandler

    called when the process finished.