ActivityEligibility

public enum ActivityEligibility

The type for determining what kind of NSUserActivity eligibility should be expose when publishing activities.

  • Specify perform only if you do not have other specific eligibility options included and you want standard NSUserActivity behaviour which can lead do Siri pro-active/suggestions only.

    Declaration

    Swift

    case perform
  • Specify this eligibility to support handoff for the action

    Declaration

    Swift

    case handoff
  • Specify this to also register for Spotlight search when the activity is published.

    Note

    Normally you will index items for spotlight using Spotlight APIs.

    Declaration

    Swift

    case search
  • Specify this if the activity refers to publicly accessible content that should be indexed.

    Note

    This requires a public web URL is set on the activity

    Declaration

    Swift

    case publicIndexing
  • Allow the activity to qualify for Siri prediction

    Note

    If running on an operating system that does not support Siri predictions, this will have no effect.

    Declaration

    Swift

    case prediction