Edytuj

Udostępnij za pośrednictwem


IUICollectionViewDataSource Interface

Definition

Interface representing the required methods (if any) of the protocol UICollectionViewDataSource.

[Foundation.Protocol(Name="UICollectionViewDataSource", WrapperType=typeof(UIKit.UICollectionViewDataSourceWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUICollectionViewDataSource : IDisposable, ObjCRuntime.INativeObject
type IUICollectionViewDataSource = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

This interface contains the required methods (if any) from the protocol defined by UICollectionViewDataSource.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the UICollectionViewDataSource protocol.

Optional methods (if any) are provided by the UICollectionViewDataSource_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

GetCell(UICollectionView, NSIndexPath)

Gets a cell.

GetItemsCount(UICollectionView, nint)

The number of items in the specified section.

Extension Methods

CanMoveItem(IUICollectionViewDataSource, UICollectionView, NSIndexPath)
GetIndexPath(IUICollectionViewDataSource, UICollectionView, String, nint)

Requests the index path for the item in the collection view at the specified index with the specified title.

GetIndexTitles(IUICollectionViewDataSource, UICollectionView)

Requests the index titles for the items in the specified collection view.

GetViewForSupplementaryElement(IUICollectionViewDataSource, UICollectionView, NSString, NSIndexPath)

The reusable view used for the supplementary element at the specified indexPath.

MoveItem(IUICollectionViewDataSource, UICollectionView, NSIndexPath, NSIndexPath)
NumberOfSections(IUICollectionViewDataSource, UICollectionView)

The number of sections in this UICollectionViewDataSource.

Applies to