One Logo Pool Ball
UIKit · IOS API REFERENCE

UICollectionViewDiffableDataSourceReference

class · iOS 13.0+ · SDK 27.1

@MainActor class UICollectionViewDiffableDataSourceReference

Members (17)

method · iOS 13.0+

applySnapshot

TypeScript
applySnapshotAnimatingDifferences(snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: boolean): Promise<void>
Swift declaration
func applySnapshot(_ snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: Bool)
method · iOS 13.0+

applySnapshot

TypeScript
applySnapshotAnimatingDifferencesCompletion(snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: boolean, completion?: ((() => void)) | null): Promise<void>
Swift declaration
func applySnapshot(_ snapshot: NSDiffableDataSourceSnapshotReference, animatingDifferences: Bool, completion: (() -> Void)? = nil)
method · iOS 14.0+

applySnapshot

TypeScript
applySnapshotToSectionAnimatingDifferences(snapshot: NSDiffableDataSourceSectionSnapshotReference, sectionIdentifier: unknown, animatingDifferences: boolean): Promise<void>
Swift declaration
func applySnapshot(_ snapshot: NSDiffableDataSourceSectionSnapshotReference, toSection sectionIdentifier: Any, animatingDifferences: Bool)
method · iOS 14.0+

applySnapshot

TypeScript
applySnapshotToSectionAnimatingDifferencesCompletion(snapshot: NSDiffableDataSourceSectionSnapshotReference, sectionIdentifier: unknown, animatingDifferences: boolean, completion?: ((() => void)) | null): Promise<void>
Swift declaration
func applySnapshot(_ snapshot: NSDiffableDataSourceSectionSnapshotReference, toSection sectionIdentifier: Any, animatingDifferences: Bool, completion: (() -> Void)? = nil)
method · iOS 15.0+

applySnapshot

TypeScript
applySnapshotUsingReloadData(snapshot: NSDiffableDataSourceSnapshotReference): Promise<void>
Swift declaration
func applySnapshot(usingReloadData snapshot: NSDiffableDataSourceSnapshotReference)
method · iOS 15.0+

applySnapshot

TypeScript
applySnapshotUsingReloadDataCompletion(snapshot: NSDiffableDataSourceSnapshotReference, completion?: ((() => void)) | null): Promise<void>
Swift declaration
func applySnapshot(usingReloadData snapshot: NSDiffableDataSourceSnapshotReference, completion: (() -> Void)? = nil)
method · iOS 15.0+

index

TypeScript
index(identifier: unknown): Promise<number>
Swift declaration
func index(forSectionIdentifier identifier: Any) -> Int
method · iOS 13.0+

indexPath

TypeScript
indexPath(identifier: unknown): Promise<(_Foundation_IndexPath) | null>
Swift declaration
func indexPath(forItemIdentifier identifier: Any) -> IndexPath?
method · iOS 13.0+

itemIdentifier

TypeScript
itemIdentifier(indexPath: _Foundation_IndexPath): Promise<(unknown) | null>
Swift declaration
func itemIdentifier(for indexPath: IndexPath) -> Any?
method · iOS 15.0+

sectionIdentifier

TypeScript
sectionIdentifier(index: number): Promise<(unknown) | null>
Swift declaration
func sectionIdentifier(for index: Int) -> Any?
method · iOS 13.0+

snapshot

TypeScript
snapshot(): Promise<NSDiffableDataSourceSnapshotReference>
Swift declaration
func snapshot() -> NSDiffableDataSourceSnapshotReference
method · iOS 14.0+

snapshot

TypeScript
snapshotForSection(section: unknown): Promise<NSDiffableDataSourceSectionSnapshotReference>
Swift declaration
func snapshot(forSection section: Any) -> NSDiffableDataSourceSectionSnapshotReference
get · iOS 14.0+

reorderingHandlers

TypeScript
get reorderingHandlers(): Promise<SDKHandle>
Swift declaration
@NSCopying var reorderingHandlers: __UICollectionViewDiffableDataSourceReorderingHandlers { get set }
set · iOS 14.0+

reorderingHandlers

TypeScript
setReorderingHandlers(value: SDKHandle): Promise<void>
Swift declaration
@NSCopying var reorderingHandlers: __UICollectionViewDiffableDataSourceReorderingHandlers { get set }
get · iOS 14.0+

sectionSnapshotHandlers

TypeScript
get sectionSnapshotHandlers(): Promise<SDKHandle>
Swift declaration
@NSCopying var sectionSnapshotHandlers: __UICollectionViewDiffableDataSourceSectionSnapshotHandlers { get set }
set · iOS 14.0+

sectionSnapshotHandlers

TypeScript
setSectionSnapshotHandlers(value: SDKHandle): Promise<void>
Swift declaration
@NSCopying var sectionSnapshotHandlers: __UICollectionViewDiffableDataSourceSectionSnapshotHandlers { get set }
get · iOS 13.0+

supplementaryViewProvider

TypeScript
get supplementaryViewProvider(): Promise<(((arg0: UICollectionView, arg1: string, arg2: _Foundation_IndexPath) => Promise<(UICollectionReusableView) | null>)) | null>
Swift declaration
var 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 →