Trait objc2_ui_kit::UITableViewDataSource

source ·
pub unsafe trait UITableViewDataSource: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn tableView_numberOfRowsInSection(
        &self,
        table_view: &UITableView,
        section: NSInteger
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn tableView_cellForRowAtIndexPath(
        &self,
        table_view: &UITableView,
        index_path: &NSIndexPath
    ) -> Retained<UITableViewCell>
       where Self: Sized + Message { ... }
    unsafe fn numberOfSectionsInTableView(
        &self,
        table_view: &UITableView
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn tableView_titleForHeaderInSection(
        &self,
        table_view: &UITableView,
        section: NSInteger
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn tableView_titleForFooterInSection(
        &self,
        table_view: &UITableView,
        section: NSInteger
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn tableView_canEditRowAtIndexPath(
        &self,
        table_view: &UITableView,
        index_path: &NSIndexPath
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn tableView_canMoveRowAtIndexPath(
        &self,
        table_view: &UITableView,
        index_path: &NSIndexPath
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn sectionIndexTitlesForTableView(
        &self,
        table_view: &UITableView
    ) -> Option<Retained<NSArray<NSString>>>
       where Self: Sized + Message { ... }
    unsafe fn tableView_sectionForSectionIndexTitle_atIndex(
        &self,
        table_view: &UITableView,
        title: &NSString,
        index: NSInteger
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn tableView_commitEditingStyle_forRowAtIndexPath(
        &self,
        table_view: &UITableView,
        editing_style: UITableViewCellEditingStyle,
        index_path: &NSIndexPath
    )
       where Self: Sized + Message { ... }
    unsafe fn tableView_moveRowAtIndexPath_toIndexPath(
        &self,
        table_view: &UITableView,
        source_index_path: &NSIndexPath,
        destination_index_path: &NSIndexPath
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITableView only.

Provided Methods§

source

unsafe fn tableView_numberOfRowsInSection( &self, table_view: &UITableView, section: NSInteger ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn tableView_cellForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath ) -> Retained<UITableViewCell>
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UITableViewCell and UIView only.
source

unsafe fn numberOfSectionsInTableView( &self, table_view: &UITableView ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn tableView_titleForHeaderInSection( &self, table_view: &UITableView, section: NSInteger ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn tableView_titleForFooterInSection( &self, table_view: &UITableView, section: NSInteger ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn tableView_canEditRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath ) -> bool
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn tableView_canMoveRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath ) -> bool
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn sectionIndexTitlesForTableView( &self, table_view: &UITableView ) -> Option<Retained<NSArray<NSString>>>
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn tableView_sectionForSectionIndexTitle_atIndex( &self, table_view: &UITableView, title: &NSString, index: NSInteger ) -> NSInteger
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.
source

unsafe fn tableView_commitEditingStyle_forRowAtIndexPath( &self, table_view: &UITableView, editing_style: UITableViewCellEditingStyle, index_path: &NSIndexPath )
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UITableViewCell and UIView only.
source

unsafe fn tableView_moveRowAtIndexPath_toIndexPath( &self, table_view: &UITableView, source_index_path: &NSIndexPath, destination_index_path: &NSIndexPath )
where Self: Sized + Message,

Available on crate features UIResponder and UIScrollView and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn UITableViewDataSource

source§

const NAME: &'static str = "UITableViewDataSource"

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 UITableViewDataSource

Implementations on Foreign Types§

source§

impl<T> UITableViewDataSource for ProtocolObject<T>

Implementors§

source§

impl UITableViewDataSource for UITableViewController

Available on crate features UIResponder and UIViewController and UITableViewController only.
source§

impl<SectionIdentifierType: ?Sized + Message, ItemIdentifierType: ?Sized + Message> UITableViewDataSource for UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>

Available on crate feature UIDiffableDataSource only.