System Services

  • Enum describing various system services such as geo-location, local notifications, CoreMotion and HealthKit.

    The items have a usageReason attached to them which can be shown to users for explanation when requesting access. There’s also a localizedHowToReEnable string that instructs users on how to re-enable the respective service.

    See more

    Declaration

    Swift

    public enum SystemService: CustomStringConvertible
  • A class to ask a user to grant access to different system-level services, such as CoreMotion, HealthKit and Notification delivery.

    Works together with SystemService.

    See more

    Declaration

    Swift

    open class SystemServicePermissioner
  • 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.

    See more

    Declaration

    Swift

    open class SystemPermissionStep: ORKStep