Contents

isEligibleForPublicIndexing

A Boolean value that indicates whether the activity is publicly accessible by all iOS users.

Declaration

var isEligibleForPublicIndexing: Bool { get set }

Mentioned in

Discussion

Set the value of this property to true to add the activity object to the global Spotlight search indexes. Set the value of this property to false if the activity object contains private or sensitive information or if the activity isn’t useful outside your app. The default value of this property is false.

If you set this property to true, the system indexes the values in the webpageURL and requiredUserInfoKeys properties, and you must provide a value for one of those properties. If you provide a URL, make sure it reflects the same content in both your app and your company’s website. When someone chooses one of your app’s public activities from search results, it tells Apple that your website’s public information is popular, which can increase the ranking of that content in future searches.

See Also

Enabling system behaviors