iOS Guides | Samples

MonoTouch.UIKit.IUIPickerViewDataSource

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

See Also: IUIPickerViewDataSource

Syntax

[MonoTouch.Foundation.Protocol(Name="UIPickerViewDataSource", WrapperType=typeof(MonoTouch.UIKit.UIPickerViewDataSourceWrapper))]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetComponentCount", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="numberOfComponentsInPickerView:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetRowsInComponent", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="pickerView:numberOfRowsInComponent:")]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public interface IUIPickerViewDataSource : INativeObject, IDisposable

Remarks

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

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 UIPickerViewDataSource protocol.

Optional methods (if any) are provided by the UIPickerViewDataSource_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.IUIPickerViewDataSource are listed below.

Public Methods

GetComponentCount(UIPickerView) : Int32
Returns the number of components.
GetRowsInComponent(UIPickerView, Int32) : Int32
The number of rows in the specified component.