iOS Guides | Samples

UIKit.IUIPickerViewDataSource

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

See Also: IUIPickerViewDataSource

Syntax

[Foundation.Protocol(Name="UIPickerViewDataSource", WrapperType=typeof(UIKit.UIPickerViewDataSourceWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetComponentCount", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="numberOfComponentsInPickerView:")]
[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:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, 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: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.IUIPickerViewDataSource are listed below.

Public Methods

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