One Logo Pool Ball
_AppIntents_UIKit · IOS API REFERENCE

UICollectionViewAppIntentsDataSource

protocol · iOS 18.4+ · SDK 27.1

@MainActor protocol UICollectionViewAppIntentsDataSource : AnyObject

The methods adopted by the object you use to make items in a collection view discoverable by Apple Intelligence and Siri. For more information, refer to <doc:providing-contextual-cues-to-Apple-Intelligence-and-Siri> and <doc://com.apple.documentation/documentation/appintents>.

Members (1)

method · iOS 18.4+

collectionView

Swift declaration
@MainActor func collectionView(_ collectionView: UICollectionView, appEntityIdentifierForItemAt indexPath: IndexPath) -> EntityIdentifier?

Asks the data source to return an app entity identifier for a cell at a particular location in the collection view. For more information, refer to <doc:providing-contextual-cues-to-Apple-Intelligence-and-Siri> and <doc://com.apple.documentation/documentation/appintents>. - Parameters: - collectionView: The collection view asking for the app entity identifier. - indexPath: The index path that specifies the section and item number in the collection view. - Returns: The app entity identifier at the specified location in the collection view.

Skipped declarations

No declarations were skipped in this snapshot.

All _AppIntents_UIKit types →