UIKit · IOS API REFERENCE
UICollectionViewDiffableDataSourceReference
class · iOS 13.0+ · SDK 27.1
@MainActor class UICollectionViewDiffableDataSourceReference
Members (17)
method · iOS 13.0+applySnapshot
TypeScriptapplySnapshotAnimatingDifferences(snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: boolean): Promise<void>
Swift declarationfunc applySnapshot(_ snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: Bool)
method · iOS 13.0+applySnapshot
TypeScriptapplySnapshotAnimatingDifferencesCompletion(snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: boolean, completion?: ((() => void)) | null): Promise<void>
Swift declarationfunc applySnapshot(_ snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: Bool, completion: (() -> Void)? = nil)
method · iOS 14.0+applySnapshot
TypeScriptapplySnapshotToSectionAnimatingDifferences(snapshot: NSDiffableDataSourceSectionSnapshotReference, sectionIdentifier: unknown, animatingDifferences: boolean): Promise<void>
Swift declarationfunc applySnapshot(_ snapshot: NSDiffableDataSourceSectionSnapshotReference, toSection sectionIdentifier: Any, animatingDifferences: Bool)
method · iOS 14.0+applySnapshot
TypeScriptapplySnapshotToSectionAnimatingDifferencesCompletion(snapshot: NSDiffableDataSourceSectionSnapshotReference, sectionIdentifier: unknown, animatingDifferences: boolean, completion?: ((() => void)) | null): Promise<void>
Swift declarationfunc applySnapshot(_ snapshot: NSDiffableDataSourceSectionSnapshotReference, toSection sectionIdentifier: Any, animatingDifferences: Bool, completion: (() -> Void)? = nil)
method · iOS 15.0+applySnapshot
TypeScriptapplySnapshotUsingReloadData(snapshot: NSDiffableDataSourceSnapshotReference): Promise<void>
Swift declarationfunc applySnapshot(usingReloadData snapshot: NSDiffableDataSourceSnapshotReference)
method · iOS 15.0+applySnapshot
TypeScriptapplySnapshotUsingReloadDataCompletion(snapshot: NSDiffableDataSourceSnapshotReference, completion?: ((() => void)) | null): Promise<void>
Swift declarationfunc applySnapshot(usingReloadData snapshot: NSDiffableDataSourceSnapshotReference, completion: (() -> Void)? = nil)
method · iOS 15.0+index
TypeScriptindex(identifier: unknown): Promise<number>
Swift declarationfunc index(forSectionIdentifier identifier: Any) -> Int
method · iOS 13.0+indexPath
TypeScriptindexPath(identifier: unknown): Promise<(_Foundation_IndexPath) | null>
Swift declarationfunc indexPath(forItemIdentifier identifier: Any) -> IndexPath?
method · iOS 13.0+itemIdentifier
TypeScriptitemIdentifier(indexPath: _Foundation_IndexPath): Promise<(unknown) | null>
Swift declarationfunc itemIdentifier(for indexPath: IndexPath) -> Any?
method · iOS 15.0+sectionIdentifier
TypeScriptsectionIdentifier(index: number): Promise<(unknown) | null>
Swift declarationfunc sectionIdentifier(for index: Int) -> Any?
method · iOS 13.0+snapshot
TypeScriptsnapshot(): Promise<NSDiffableDataSourceSnapshotReference>
Swift declarationfunc snapshot() -> NSDiffableDataSourceSnapshotReference
method · iOS 14.0+snapshot
TypeScriptsnapshotForSection(section: unknown): Promise<NSDiffableDataSourceSectionSnapshotReference>
Swift declarationfunc snapshot(forSection section: Any) -> NSDiffableDataSourceSectionSnapshotReference
get · iOS 14.0+reorderingHandlers
TypeScriptget reorderingHandlers(): Promise<SDKHandle>
Swift declaration@NSCopying var reorderingHandlers: __UICollectionViewDiffableDataSourceReorderingHandlers { get set }
set · iOS 14.0+reorderingHandlers
TypeScriptsetReorderingHandlers(value: SDKHandle): Promise<void>
Swift declaration@NSCopying var reorderingHandlers: __UICollectionViewDiffableDataSourceReorderingHandlers { get set }
get · iOS 14.0+sectionSnapshotHandlers
TypeScriptget sectionSnapshotHandlers(): Promise<SDKHandle>
Swift declaration@NSCopying var sectionSnapshotHandlers: __UICollectionViewDiffableDataSourceSectionSnapshotHandlers { get set }
set · iOS 14.0+sectionSnapshotHandlers
TypeScriptsetSectionSnapshotHandlers(value: SDKHandle): Promise<void>
Swift declaration@NSCopying var sectionSnapshotHandlers: __UICollectionViewDiffableDataSourceSectionSnapshotHandlers { get set }
get · iOS 13.0+supplementaryViewProvider
TypeScriptget supplementaryViewProvider(): Promise<(((arg0: UICollectionView, arg1: string, arg2: _Foundation_IndexPath) => Promise<(UICollectionReusableView) | null>)) | null>
Swift declarationvar supplementaryViewProvider: UICollectionViewDiffableDataSourceReferenceSupplementaryViewProvider? { get set }
Skipped declarations
3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UICollectionViewDiffableDataSourceReference.init(collectionView:cellProvider:)
callback cannot propagate synchronous failure
UICollectionViewDiffableDataSourceReference.supplementaryViewProvider
closure property answers its caller
UICollectionViewDiffableDataSourceReference.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All UIKit types →