Trait objc2_ui_kit::UIPickerViewDataSource

source ·
pub unsafe trait UIPickerViewDataSource: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn numberOfComponentsInPickerView(
        &self,
        picker_view: &UIPickerView
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn pickerView_numberOfRowsInComponent(
        &self,
        picker_view: &UIPickerView,
        component: NSInteger
    ) -> NSInteger
       where Self: Sized + Message { ... }
}
Available on crate feature UIPickerView only.

Provided Methods§

source

unsafe fn numberOfComponentsInPickerView( &self, picker_view: &UIPickerView ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn pickerView_numberOfRowsInComponent( &self, picker_view: &UIPickerView, component: NSInteger ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn UIPickerViewDataSource

source§

const NAME: &'static str = "UIPickerViewDataSource"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn UIPickerViewDataSource

Implementations on Foreign Types§

source§

impl<T> UIPickerViewDataSource for ProtocolObject<T>

Implementors§