SwiftclassUIKitCore

class UIKit.UICollectionViewDiffableDataSource

Members 30

  1. deinitdeinit
  2. fieldlet _impl: __UIDiffableDataSource
  3. func_expandCollapseAnimationContext(for: UICollectionView) -> _UICollectionViewUpdateExpandCollapseAnimationContext?
  4. func_performBatchApplyUsingReloadData(() -> ()) -> ()
  5. funcapply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Bool, completion: (() -> ())?) -> ()
  6. funcapply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Bool) async -> ()
  7. funcapply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Bool, completion: (() -> ())?) -> ()
  8. funcapply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Bool) async -> ()
  9. funcapplySnapshotUsingReloadData(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, completion: (() -> ())?) -> ()
  10. funcapplySnapshotUsingReloadData(UIKit.NSDiffableDataSourceSnapshot<A, B>) async -> ()
  11. funccollectionView(_: UICollectionView, numberOfItemsInSection: Int) -> Int
  12. funccollectionView(_: UICollectionView, cellForItemAt: Foundation.IndexPath) -> UICollectionViewCell
  13. funccollectionView(_: UICollectionView, viewForSupplementaryElementOfKind: String, at: Foundation.IndexPath) -> UICollectionReusableView
  14. funccollectionView(_: UICollectionView, canMoveItemAt: Foundation.IndexPath) -> Bool
  15. funccollectionView(_: UICollectionView, moveItemAt: Foundation.IndexPath, to: Foundation.IndexPath) -> ()
  16. funccollectionView(_: UICollectionView, indexPathForIndexTitle: String, at: Int) -> Foundation.IndexPath
  17. funcdescription() -> String
  18. funcindex(for: A) -> Int?
  19. funcindexPath(for: B) -> Foundation.IndexPath?
  20. funcindexTitles(for: UICollectionView) -> [String]?
  21. funcitemIdentifier(for: Foundation.IndexPath) -> B?
  22. funcnumberOfSections(in: UICollectionView) -> Int
  23. funcsectionIdentifier(for: Int) -> A?
  24. funcsnapshot(for: A) -> UIKit.NSDiffableDataSourceSectionSnapshot<B>
  25. funcsnapshot() -> UIKit.NSDiffableDataSourceSnapshot<A, B>
  26. initUIKit.UICollectionViewDiffableDataSource.__allocating_init(collectionView: UICollectionView, cellProvider: (UICollectionView, Foundation.IndexPath, B) -> UICollectionViewCell?) -> UIKit.UICollectionViewDiffableDataSource<A, B>
  27. initUIKit.UICollectionViewDiffableDataSource.__allocating_init() -> UIKit.UICollectionViewDiffableDataSource<A, B>
  28. varfinal var reorderingHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.ReorderingHandlers { get set }
  29. varfinal var sectionSnapshotHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.SectionSnapshotHandlers<B> { get set }
  30. varvar supplementaryViewProvider: ((UICollectionView, String, Foundation.IndexPath) -> UICollectionReusableView?)? { get set }
class UICollectionViewDiffableDataSource<A, B>: __C.NSObject, __C.UICollectionViewDataSource where A: Swift.Hashable, B: Swift.Hashable {
    struct SectionSnapshotHandlers<A1> where A1: Swift.Hashable {
        var _impl: __C.UICollectionViewDiffableDataSourceSectionSnapshotHandlers
        var _shouldExpandItemHandler: ((_: A1) -> Swift.Bool)?
        var _willExpandItemHandler: ((_: A1) -> ())?
        var _shouldCollapseItemHandler: ((_: A1) -> Swift.Bool)?
        var _willCollapseItemHandler: ((_: A1) -> ())?
        var _snapshotForExpandingParentHandler: ((A1, UIKit.NSDiffableDataSourceSectionSnapshot<A1>) -> UIKit.NSDiffableDataSourceSectionSnapshot<A1>)?

        init()

        var shouldCollapseItem: ((_: A1) -> Swift.Bool)? {
            get
            set
        }
        var shouldExpandItem: ((_: A1) -> Swift.Bool)? {
            get
            set
        }
        var snapshotForExpandingParent: ((A1, UIKit.NSDiffableDataSourceSectionSnapshot<A1>) -> UIKit.NSDiffableDataSourceSectionSnapshot<A1>)? {
            get
            set
        }
        var willCollapseItem: ((_: A1) -> ())? {
            get
            set
        }
        var willExpandItem: ((_: A1) -> ())? {
            get
            set
        }
    }
    struct ReorderingHandlers {
        var _impl: __C.UICollectionViewDiffableDataSourceReorderingHandlers
        var _canReorderItemHandler: ((_: B) -> Swift.Bool)?
        var _willReorderItemHandler: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())?
        var _didReorderItemHandler: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())?

        init()

        var canReorderItem: ((_: B) -> Swift.Bool)? {
            get
            set
        }
        var didReorder: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())? {
            get
            set
        }
        var willReorder: ((_: UIKit.NSDiffableDataSourceTransaction<A, B>) -> ())? {
            get
            set
        }
    }
    let _impl: __C.__UIDiffableDataSource

    var supplementaryViewProvider: ((__C.UICollectionView, Swift.String, Foundation.IndexPath) -> __C.UICollectionReusableView?)? {
        get
        set
    }
    init(collectionView: __C.UICollectionView, cellProvider: @escaping (__C.UICollectionView, Foundation.IndexPath, B) -> __C.UICollectionViewCell?)
    func apply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Swift.Bool, completion: (() -> ())?)
    func apply(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, animatingDifferences: Swift.Bool) async
    func applySnapshotUsingReloadData(_: UIKit.NSDiffableDataSourceSnapshot<A, B>, completion: (() -> ())?)
    func applySnapshotUsingReloadData(_: UIKit.NSDiffableDataSourceSnapshot<A, B>) async
    func snapshot() -> UIKit.NSDiffableDataSourceSnapshot<A, B>
    func sectionIdentifier(for: Swift.Int) -> A?
    func index(for: A) -> Swift.Int?
    func itemIdentifier(for: Foundation.IndexPath) -> B?
    func indexPath(for: B) -> Foundation.IndexPath?
    func numberOfSections(in: __C.UICollectionView) -> Swift.Int
    func collectionView(_: __C.UICollectionView, numberOfItemsInSection: Swift.Int) -> Swift.Int
    func collectionView(_: __C.UICollectionView, cellForItemAt: Foundation.IndexPath) -> __C.UICollectionViewCell
    func collectionView(_: __C.UICollectionView, viewForSupplementaryElementOfKind: Swift.String, at: Foundation.IndexPath) -> __C.UICollectionReusableView
    func _expandCollapseAnimationContext(for: __C.UICollectionView) -> (any __C._UICollectionViewUpdateExpandCollapseAnimationContext)?
    func collectionView(_: __C.UICollectionView, canMoveItemAt: Foundation.IndexPath) -> Swift.Bool
    func collectionView(_: __C.UICollectionView, moveItemAt: Foundation.IndexPath, to: Foundation.IndexPath)
    func indexTitles(for: __C.UICollectionView) -> [Swift.String]?
    func collectionView(_: __C.UICollectionView, indexPathForIndexTitle: Swift.String, at: Swift.Int) -> Foundation.IndexPath
    func description() -> Swift.String

    init()

    final var reorderingHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.ReorderingHandlers {
        get
        set
    }
    final var sectionSnapshotHandlers: UIKit.UICollectionViewDiffableDataSource<A, B>.SectionSnapshotHandlers<B> {
        get
        set
    }

    final func _performBatchApplyUsingReloadData(_: () -> ())
    func apply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Swift.Bool, completion: (() -> ())?)
    func apply(_: UIKit.NSDiffableDataSourceSectionSnapshot<B>, to: A, animatingDifferences: Swift.Bool) async
    func snapshot(for: A) -> UIKit.NSDiffableDataSourceSectionSnapshot<B>

    deinit
}