<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserActivity/isEligibleForPublicIndexing",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserActivity(py)eligibleForPublicIndexing"
  },
  "title" : "isEligibleForPublicIndexing"
}
-->

# isEligibleForPublicIndexing

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

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

## 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`](/documentation/Foundation/NSUserActivity/webpageURL)
and [`requiredUserInfoKeys`](/documentation/Foundation/NSUserActivity/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)