---
title: isEligibleForPublicIndexing
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsuseractivity/iseligibleforpublicindexing
---

# isEligibleForPublicIndexing

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

## Declaration

```swift
var isEligibleForPublicIndexing: Bool { get set }
```

## Mentioned in

Creating a user activity object

## Discussion

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. important: Your app must maintain a strong reference to any activity objects you make eligible for search.

## See Also

### Enabling system behaviors

- [isEligibleForHandoff](foundation/nsuseractivity/iseligibleforhandoff.md)
- [isEligibleForSearch](foundation/nsuseractivity/iseligibleforsearch.md)
- [isEligibleForPrediction](foundation/nsuseractivity/iseligibleforprediction.md)
- [expirationDate](foundation/nsuseractivity/expirationdate.md)
