SystemPermissionStep

open class SystemPermissionStep: ORKStep

This step can be used to prompt the user for permissions to system services, such as CoreMotion, HealthKit and Notifications.

Use an array of SystemService instances during the step’s initialization (or manually assign to its services property), then use the step during any ORKTask.

You presumably want to use the step in combination with a ConsentTask, in which case you do not need to manually interact with this class but define wantedServicePermissions on the ConsentTaskOptions provided to your ConsentController.

  • The services to be requested during this step.

    Declaration

    Swift

    open var services: [SystemService]?
  • Designated initializer.

    Declaration

    Swift

    override public required init(identifier: String)
  • Initialize the step with the given services.

    Declaration

    Swift

    public convenience init(identifier: String, permissions: [SystemService])

    Parameters

    identifier

    The step identifier

    permissions

    The system services to which to request permission

  • Undocumented

    Declaration

    Swift

    open class SystemPermissionStep: ORKStep
  • Undocumented

    Declaration

    Swift

    open class SystemPermissionStep: ORKStep
  • The view controller class that’s used by this step.

    Declaration

    Swift

    open class func stepViewControllerClass() -> AnyClass

    Return Value

    The SystemPermissionStepViewController class