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§
unsafe fn tableView_numberOfRowsInSection( &self, table_view: &UITableView, section: NSInteger ) -> NSInteger
Available on crate features
UIResponder
and UIScrollView
and UIView
only.unsafe fn tableView_cellForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath ) -> Retained<UITableViewCell>
Available on crate features
UIResponder
and UIScrollView
and UITableViewCell
and UIView
only.unsafe fn numberOfSectionsInTableView( &self, table_view: &UITableView ) -> NSInteger
Available on crate features
UIResponder
and UIScrollView
and UIView
only.unsafe fn tableView_titleForHeaderInSection( &self, table_view: &UITableView, section: NSInteger ) -> Option<Retained<NSString>>
Available on crate features
UIResponder
and UIScrollView
and UIView
only.Available on crate features
UIResponder
and UIScrollView
and UIView
only.unsafe fn tableView_canEditRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath ) -> bool
Available on crate features
UIResponder
and UIScrollView
and UIView
only.unsafe fn tableView_canMoveRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath ) -> bool
Available on crate features
UIResponder
and UIScrollView
and UIView
only.unsafe fn sectionIndexTitlesForTableView( &self, table_view: &UITableView ) -> Option<Retained<NSArray<NSString>>>
Available on crate features
UIResponder
and UIScrollView
and UIView
only.unsafe fn tableView_sectionForSectionIndexTitle_atIndex( &self, table_view: &UITableView, title: &NSString, index: NSInteger ) -> NSInteger
Available on crate features
UIResponder
and UIScrollView
and UIView
only.unsafe fn tableView_commitEditingStyle_forRowAtIndexPath( &self, table_view: &UITableView, editing_style: UITableViewCellEditingStyle, index_path: &NSIndexPath )
Available on crate features
UIResponder
and UIScrollView
and UITableViewCell
and UIView
only.unsafe fn tableView_moveRowAtIndexPath_toIndexPath( &self, table_view: &UITableView, source_index_path: &NSIndexPath, destination_index_path: &NSIndexPath )
Available on crate features
UIResponder
and UIScrollView
and UIView
only.Trait Implementations§
source§impl ProtocolType for dyn UITableViewDataSource
impl ProtocolType for dyn UITableViewDataSource
impl<T> ImplementedBy<T> for dyn UITableViewDataSource
Implementations on Foreign Types§
impl<T> UITableViewDataSource for ProtocolObject<T>where
T: ?Sized + UITableViewDataSource,
Implementors§
impl UITableViewDataSource for UITableViewController
Available on crate features
UIResponder
and UIViewController
and UITableViewController
only.impl<SectionIdentifierType: ?Sized + Message, ItemIdentifierType: ?Sized + Message> UITableViewDataSource for UITableViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType>
Available on crate feature
UIDiffableDataSource
only.