One Logo Pool Ball
AppIntents · IOS API REFERENCE

OwnershipProvidingEntity

protocol · iOS 27.0+ · SDK 27.1

protocol OwnershipProvidingEntity : AppEntity

A type that provides the system with ownership and sharing context for an app entity. When your app passes app entities as parameters to an ``AppIntent`` and returns them from app intent results, people can use Apple Intelligence, Siri, and custom shortcuts to work with those entities across apps. For destructive or sensitive actions like deleting or updating an app entity, your app can require a person's confirmation. Additionally, Apple Intelligence and Siri may also request a person's confirmation. Conform your app entities to ``OwnershipProvidingEntity`` so the system prompts for confirmation — with appropriate context in the confirmation dialog — when an intent acts on shared or publicly accessible app entities. The following example shows an app entity for a photo album that updates its ``OwnershipProvidingEntity/ownership`` based on whether a person shares the album with their family or publishes it publicly: ```swift @AppEntity(schema: .photos.album) struct PhotoAlbumEntity: OwnershipProvidingEntity { let id = UUID() var isSharedWithFamily: Bool var isPublicAlbum: Bool // MARK: - .photos.album properties var name: String var creationDate: Date? var albumType: PhotoAlbumType var ownership: EntityOwnership { var ownership: EntityOwnership = [] if isSharedWithFamily { ownership.insert(.shared) } if isPublicAlbum { ownership.insert(.public) } return ownership } } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →