isEligibleForPublicIndexing
A Boolean value that indicates whether the activity can be publicly accessed by all iOS users.
Declaration
var isEligibleForPublicIndexing: Bool { get set }Mentioned in
Discussion
The default value of this property is false, which indicates that the activity object contains private or sensitive information or that the activity isn’t useful to other users. When the value of this property is true, the system identifies this activity as one that can be shared publicly. When you make an activity public, the system indexes the values in the requiredUserInfoKeys or webpageURL properties, and you must provide a value for one of those properties.
Identifying an activity as public confers an advantage when you also add web markup to the content on your related website. Specifically, when users engage with your app’s public activities in search results, it indicates to Apple that public information on your website is popular, which can help increase your ranking and potentially lead to expanded indexing of your website’s content.