iOS Guides | Samples

MonoTouch.UIKit.IUICollectionViewDataSource

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

See Also: IUICollectionViewDataSource

Syntax

[MonoTouch.Foundation.Protocol(Name="UICollectionViewDataSource", WrapperType=typeof(MonoTouch.UIKit.UICollectionViewDataSourceWrapper))]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemsCount", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="collectionView:numberOfItemsInSection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetCell", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UICollectionViewCell), Selector="collectionView:cellForItemAtIndexPath:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="NumberOfSections", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="numberOfSectionsInCollectionView:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetViewForSupplementaryElement", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UICollectionReusableView), Selector="collectionView:viewForSupplementaryElementOfKind:atIndexPath:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CanMoveItem", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.Boolean), Selector="collectionView:canMoveItemAtIndexPath:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="MoveItem", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="collectionView:moveItemAtIndexPath:toIndexPath:")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 6, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public interface IUICollectionViewDataSource : INativeObject, IDisposable

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.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.IUICollectionViewDataSource are listed below.

Public Methods

GetCell(UICollectionView, NSIndexPath) : UICollectionViewCell
Gets a cell.
GetItemsCount(UICollectionView, Int32) : Int32
The number of items in the specified section.