public interface UITableViewDataSource
| Modifier and Type | Method and Description |
|---|---|
default long |
numberOfSectionsInTableView(UITableView tableView)
Default is 1 if not implemented
|
default NSArray<java.lang.String> |
sectionIndexTitlesForTableView(UITableView tableView)
return list of section titles to display in section index view (e.g.
|
default boolean |
tableViewCanEditRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
Individual rows can opt out of having the -editing property set for them.
|
default boolean |
tableViewCanMoveRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
Allows the reorder accessory view to optionally be shown for a particular row.
|
UITableViewCell |
tableViewCellForRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
Row display.
|
default void |
tableViewCommitEditingStyleForRowAtIndexPath(UITableView tableView,
long editingStyle,
NSIndexPath indexPath)
After a row has the minus or plus button invoked (based on the UITableViewCellEditingStyle for the cell), the dataSource must commit the change
Not called for edit actions using UITableViewRowAction - the action's handler will be invoked instead
|
default void |
tableViewMoveRowAtIndexPathToIndexPath(UITableView tableView,
NSIndexPath sourceIndexPath,
NSIndexPath destinationIndexPath)
Data manipulation - reorder / moving support
|
long |
tableViewNumberOfRowsInSection(UITableView tableView,
long section) |
default long |
tableViewSectionForSectionIndexTitleAtIndex(UITableView tableView,
java.lang.String title,
long index)
tell table which section corresponds to section title/index (e.g.
|
default java.lang.String |
tableViewTitleForFooterInSection(UITableView tableView,
long section) |
default java.lang.String |
tableViewTitleForHeaderInSection(UITableView tableView,
long section)
fixed font style.
|
default long numberOfSectionsInTableView(UITableView tableView)
default NSArray<java.lang.String> sectionIndexTitlesForTableView(UITableView tableView)
default boolean tableViewCanEditRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
default boolean tableViewCanMoveRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
UITableViewCell tableViewCellForRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
default void tableViewCommitEditingStyleForRowAtIndexPath(UITableView tableView, long editingStyle, NSIndexPath indexPath)
default void tableViewMoveRowAtIndexPathToIndexPath(UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
long tableViewNumberOfRowsInSection(UITableView tableView, long section)
default long tableViewSectionForSectionIndexTitleAtIndex(UITableView tableView, java.lang.String title, long index)
default java.lang.String tableViewTitleForFooterInSection(UITableView tableView, long section)
default java.lang.String tableViewTitleForHeaderInSection(UITableView tableView, long section)