pub unsafe trait UITableViewDelegate:
NSObjectProtocol
+ UIScrollViewDelegate
+ MainThreadOnly {
Show 53 methods
// Provided methods
fn tableView_willDisplayCell_forRowAtIndexPath(
&self,
table_view: &UITableView,
cell: &UITableViewCell,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_willDisplayHeaderView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
fn tableView_willDisplayFooterView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
fn tableView_didEndDisplayingCell_forRowAtIndexPath(
&self,
table_view: &UITableView,
cell: &UITableViewCell,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_didEndDisplayingHeaderView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
fn tableView_didEndDisplayingFooterView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
fn tableView_heightForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> CGFloat
where Self: Sized + Message { ... }
fn tableView_heightForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
fn tableView_heightForFooterInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
fn tableView_estimatedHeightForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> CGFloat
where Self: Sized + Message { ... }
fn tableView_estimatedHeightForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
fn tableView_estimatedHeightForFooterInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
fn tableView_viewForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<UIView>>
where Self: Sized + Message { ... }
fn tableView_viewForFooterInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<UIView>>
where Self: Sized + Message { ... }
fn tableView_accessoryTypeForRowWithIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> UITableViewCellAccessoryType
where Self: Sized + Message { ... }
fn tableView_accessoryButtonTappedForRowWithIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_shouldHighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn tableView_didHighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_didUnhighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_willSelectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
fn tableView_willDeselectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
fn tableView_didSelectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_didDeselectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_canPerformPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn tableView_performPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_editingStyleForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> UITableViewCellEditingStyle
where Self: Sized + Message { ... }
fn tableView_titleForDeleteConfirmationButtonForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn tableView_editActionsForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSArray<UITableViewRowAction>>>
where Self: Sized + Message { ... }
fn tableView_leadingSwipeActionsConfigurationForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<UISwipeActionsConfiguration>>
where Self: Sized + Message { ... }
fn tableView_trailingSwipeActionsConfigurationForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<UISwipeActionsConfiguration>>
where Self: Sized + Message { ... }
fn tableView_shouldIndentWhileEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn tableView_willBeginEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableView_didEndEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: Option<&NSIndexPath>,
)
where Self: Sized + Message { ... }
fn tableView_targetIndexPathForMoveFromRowAtIndexPath_toProposedIndexPath(
&self,
table_view: &UITableView,
source_index_path: &NSIndexPath,
proposed_destination_index_path: &NSIndexPath,
) -> Retained<NSIndexPath>
where Self: Sized + Message { ... }
fn tableView_indentationLevelForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> NSInteger
where Self: Sized + Message { ... }
fn tableView_shouldShowMenuForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_canPerformAction_forRowAtIndexPath_withSender(
&self,
table_view: &UITableView,
action: Sel,
index_path: &NSIndexPath,
sender: Option<&AnyObject>,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_performAction_forRowAtIndexPath_withSender(
&self,
table_view: &UITableView,
action: Sel,
index_path: &NSIndexPath,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
fn tableView_canFocusRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn tableView_shouldUpdateFocusInContext(
&self,
table_view: &UITableView,
context: &UITableViewFocusUpdateContext,
) -> bool
where Self: Sized + Message { ... }
fn tableView_didUpdateFocusInContext_withAnimationCoordinator(
&self,
table_view: &UITableView,
context: &UITableViewFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator,
)
where Self: Sized + Message { ... }
fn indexPathForPreferredFocusedViewInTableView(
&self,
table_view: &UITableView,
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
fn tableView_selectionFollowsFocusForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn tableView_shouldSpringLoadRowAtIndexPath_withContext(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
context: &ProtocolObject<dyn UISpringLoadedInteractionContext>,
) -> bool
where Self: Sized + Message { ... }
fn tableView_shouldBeginMultipleSelectionInteractionAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
fn tableView_didBeginMultipleSelectionInteractionAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
fn tableViewDidEndMultipleSelectionInteraction(
&self,
table_view: &UITableView,
)
where Self: Sized + Message { ... }
fn tableView_contextMenuConfigurationForRowAtIndexPath_point(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
point: CGPoint,
) -> Option<Retained<UIContextMenuConfiguration>>
where Self: Sized + Message { ... }
fn tableView_previewForHighlightingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
where Self: Sized + Message { ... }
fn tableView_previewForDismissingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
where Self: Sized + Message { ... }
fn tableView_willPerformPreviewActionForMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: &ProtocolObject<dyn UIContextMenuInteractionCommitAnimating>,
)
where Self: Sized + Message { ... }
fn tableView_willDisplayContextMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>,
)
where Self: Sized + Message { ... }
fn tableView_willEndContextMenuInteractionWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>,
)
where Self: Sized + Message { ... }
}UIScrollView and UITableView only.Expand description
Provided Methods§
fn tableView_willDisplayCell_forRowAtIndexPath( &self, table_view: &UITableView, cell: &UITableViewCell, index_path: &NSIndexPath, )
UIResponder and UITableViewCell and UIView only.fn tableView_willDisplayHeaderView_forSection( &self, table_view: &UITableView, view: &UIView, section: NSInteger, )
UIResponder and UIView only.UIResponder and UIView only.fn tableView_didEndDisplayingCell_forRowAtIndexPath( &self, table_view: &UITableView, cell: &UITableViewCell, index_path: &NSIndexPath, )
UIResponder and UITableViewCell and UIView only.fn tableView_didEndDisplayingHeaderView_forSection( &self, table_view: &UITableView, view: &UIView, section: NSInteger, )
UIResponder and UIView only.UIResponder and UIView only.fn tableView_heightForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> CGFloat
UIResponder and UIView and objc2-core-foundation only.fn tableView_heightForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> CGFloat
UIResponder and UIView and objc2-core-foundation only.UIResponder and UIView and objc2-core-foundation only.fn tableView_estimatedHeightForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> CGFloat
UIResponder and UIView and objc2-core-foundation only.fn tableView_estimatedHeightForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> CGFloat
UIResponder and UIView and objc2-core-foundation only.UIResponder and UIView and objc2-core-foundation only.fn tableView_viewForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> Option<Retained<UIView>>
UIResponder and UIView only.UIResponder and UIView only.fn tableView_accessoryTypeForRowWithIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> UITableViewCellAccessoryType
UIResponder and UITableViewCell and UIView only.fn tableView_accessoryButtonTappedForRowWithIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.fn tableView_shouldHighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.fn tableView_didHighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.fn tableView_didUnhighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.fn tableView_willSelectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSIndexPath>>
UIResponder and UIView only.fn tableView_willDeselectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSIndexPath>>
UIResponder and UIView only.fn tableView_didSelectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.fn tableView_didDeselectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.Sourcefn tableView_canPerformPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
Available on crate features UIResponder and UIView only.
fn tableView_canPerformPrimaryActionForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.Called to determine if a primary action can be performed for the row at the given indexPath.
See
tableView:performPrimaryActionForRowAtIndexPath:for more details about primary actions.
Parameter tableView: This UITableView
Parameter indexPath: NSIndexPath of the row
Returns: YES if the primary action can be performed; otherwise NO. If not implemented defaults to YES when not editing
and NO when editing.
Sourcefn tableView_performPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
Available on crate features UIResponder and UIView only.
fn tableView_performPrimaryActionForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.Called when the primary action should be performed for the row at the given indexPath.
Primary actions allow you to distinguish between a change of selection (which can be based on focus changes or
other indirect selection changes) and distinct user actions. Primary actions are performed when the user selects a cell without extending
an existing selection. This is called after
willSelectRowand
didSelectRow, regardless of whether the cell’s selection
state was allowed to change.
As an example, use
didSelectRowAtIndexPathfor updating state in the current view controller (i.e. buttons, title, etc) and
use the primary action for navigation or showing another split view column.
Parameter tableView: This UITableView
Parameter indexPath: NSIndexPath of the row to perform the action on
fn tableView_editingStyleForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> UITableViewCellEditingStyle
UIResponder and UITableViewCell and UIView only.fn tableView_titleForDeleteConfirmationButtonForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSString>>
UIResponder and UIView only.fn tableView_editActionsForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSArray<UITableViewRowAction>>>
UIResponder and UIView only.fn tableView_leadingSwipeActionsConfigurationForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<UISwipeActionsConfiguration>>
UIResponder and UISwipeActionsConfiguration and UIView only.fn tableView_trailingSwipeActionsConfigurationForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<UISwipeActionsConfiguration>>
UIResponder and UISwipeActionsConfiguration and UIView only.fn tableView_shouldIndentWhileEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.fn tableView_willBeginEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.fn tableView_didEndEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: Option<&NSIndexPath>, )
UIResponder and UIView only.fn tableView_targetIndexPathForMoveFromRowAtIndexPath_toProposedIndexPath( &self, table_view: &UITableView, source_index_path: &NSIndexPath, proposed_destination_index_path: &NSIndexPath, ) -> Retained<NSIndexPath>
UIResponder and UIView only.fn tableView_indentationLevelForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> NSInteger
UIResponder and UIView only.fn tableView_shouldShowMenuForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.Sourceunsafe fn tableView_canPerformAction_forRowAtIndexPath_withSender(
&self,
table_view: &UITableView,
action: Sel,
index_path: &NSIndexPath,
sender: Option<&AnyObject>,
) -> bool
👎DeprecatedAvailable on crate features UIResponder and UIView only.
unsafe fn tableView_canPerformAction_forRowAtIndexPath_withSender( &self, table_view: &UITableView, action: Sel, index_path: &NSIndexPath, sender: Option<&AnyObject>, ) -> bool
UIResponder and UIView only.§Safety
actionmust be a valid selector.sendershould be of the correct type.
Sourceunsafe fn tableView_performAction_forRowAtIndexPath_withSender(
&self,
table_view: &UITableView,
action: Sel,
index_path: &NSIndexPath,
sender: Option<&AnyObject>,
)
👎DeprecatedAvailable on crate features UIResponder and UIView only.
unsafe fn tableView_performAction_forRowAtIndexPath_withSender( &self, table_view: &UITableView, action: Sel, index_path: &NSIndexPath, sender: Option<&AnyObject>, )
UIResponder and UIView only.§Safety
actionmust be a valid selector.sendershould be of the correct type.
fn tableView_canFocusRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.fn tableView_shouldUpdateFocusInContext( &self, table_view: &UITableView, context: &UITableViewFocusUpdateContext, ) -> bool
UIFocus and UIResponder and UIView only.fn tableView_didUpdateFocusInContext_withAnimationCoordinator( &self, table_view: &UITableView, context: &UITableViewFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator, )
UIFocus and UIFocusAnimationCoordinator and UIResponder and UIView only.fn indexPathForPreferredFocusedViewInTableView( &self, table_view: &UITableView, ) -> Option<Retained<NSIndexPath>>
UIResponder and UIView only.Sourcefn tableView_selectionFollowsFocusForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
Available on crate features UIResponder and UIView only.
fn tableView_selectionFollowsFocusForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.Determines if the row at the specified index path should also become selected when focus moves to it. If the table view’s global selectionFollowsFocus is enabled, this method will allow you to override that behavior on a per-index path basis. This method is not called if selectionFollowsFocus is disabled.
fn tableView_shouldSpringLoadRowAtIndexPath_withContext( &self, table_view: &UITableView, index_path: &NSIndexPath, context: &ProtocolObject<dyn UISpringLoadedInteractionContext>, ) -> bool
UIResponder and UISpringLoadedInteraction and UIView only.fn tableView_shouldBeginMultipleSelectionInteractionAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.fn tableView_didBeginMultipleSelectionInteractionAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.fn tableViewDidEndMultipleSelectionInteraction(&self, table_view: &UITableView)
UIResponder and UIView only.Sourcefn tableView_contextMenuConfigurationForRowAtIndexPath_point(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
point: CGPoint,
) -> Option<Retained<UIContextMenuConfiguration>>
Available on crate features UIContextMenuConfiguration and UIResponder and UIView and objc2-core-foundation only.
fn tableView_contextMenuConfigurationForRowAtIndexPath_point( &self, table_view: &UITableView, index_path: &NSIndexPath, point: CGPoint, ) -> Option<Retained<UIContextMenuConfiguration>>
UIContextMenuConfiguration and UIResponder and UIView and objc2-core-foundation only.Called when the interaction begins.
Parameter tableView: This UITableView.
Parameter indexPath: IndexPath of the row for which a configuration is being requested.
Parameter point: Location of the interaction in the table view’s coordinate space
Returns: A UIContextMenuConfiguration describing the menu to be presented. Return nil to prevent the interaction from beginning. Returning an empty configuration causes the interaction to begin then fail with a cancellation effect. You might use this to indicate to users that it’s possible for a menu to be presented from this element, but that there are no actions to present at this particular time.
Sourcefn tableView_previewForHighlightingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
Available on crate features UIContextMenuConfiguration and UIResponder and UITargetedPreview and UIView only.
fn tableView_previewForHighlightingContextMenuWithConfiguration( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, ) -> Option<Retained<UITargetedPreview>>
UIContextMenuConfiguration and UIResponder and UITargetedPreview and UIView only.Called when the interaction begins. Return a UITargetedPreview to override the default preview created by the table view.
Parameter tableView: This UITableView.
Parameter configuration: The configuration of the menu about to be displayed by this interaction.
Sourcefn tableView_previewForDismissingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
Available on crate features UIContextMenuConfiguration and UIResponder and UITargetedPreview and UIView only.
fn tableView_previewForDismissingContextMenuWithConfiguration( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, ) -> Option<Retained<UITargetedPreview>>
UIContextMenuConfiguration and UIResponder and UITargetedPreview and UIView only.Called when the interaction is about to dismiss. Return a UITargetedPreview describing the desired dismissal target. The interaction will animate the presented menu to the target. Use this to customize the dismissal animation.
Parameter tableView: This UITableView.
Parameter configuration: The configuration of the menu displayed by this interaction.
Sourcefn tableView_willPerformPreviewActionForMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: &ProtocolObject<dyn UIContextMenuInteractionCommitAnimating>,
)
Available on crate features UIContextMenuConfiguration and UIContextMenuInteraction and UIResponder and UIView only.
fn tableView_willPerformPreviewActionForMenuWithConfiguration_animator( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, animator: &ProtocolObject<dyn UIContextMenuInteractionCommitAnimating>, )
UIContextMenuConfiguration and UIContextMenuInteraction and UIResponder and UIView only.Called when the interaction is about to “commit” in response to the user tapping the preview.
Parameter tableView: This UITableView.
Parameter configuration: Configuration of the currently displayed menu.
Parameter animator: Commit animator. Add animations to this object to run them alongside the commit transition.
Sourcefn tableView_willDisplayContextMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>,
)
Available on crate features UIContextMenuConfiguration and UIContextMenuInteraction and UIResponder and UIView only.
fn tableView_willDisplayContextMenuWithConfiguration_animator( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>, )
UIContextMenuConfiguration and UIContextMenuInteraction and UIResponder and UIView only.Called when the table view is about to display a menu.
Parameter tableView: This UITableView.
Parameter configuration: The configuration of the menu about to be displayed.
Parameter animator: Appearance animator. Add animations to run them alongside the appearance transition.
Sourcefn tableView_willEndContextMenuInteractionWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>,
)
Available on crate features UIContextMenuConfiguration and UIContextMenuInteraction and UIResponder and UIView only.
fn tableView_willEndContextMenuInteractionWithConfiguration_animator( &self, table_view: &UITableView, configuration: &UIContextMenuConfiguration, animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>, )
UIContextMenuConfiguration and UIContextMenuInteraction and UIResponder and UIView only.Called when the table view’s context menu interaction is about to end.
Parameter tableView: This UITableView.
Parameter configuration: Ending configuration.
Parameter animator: Disappearance animator. Add animations to run them alongside the disappearance transition.
Trait Implementations§
Source§impl ProtocolType for dyn UITableViewDelegate
impl ProtocolType for dyn UITableViewDelegate
impl<T> ImplementedBy<T> for dyn UITableViewDelegate
Implementations on Foreign Types§
impl<T> UITableViewDelegate for ProtocolObject<T>where
T: ?Sized + UITableViewDelegate,
Implementors§
impl UITableViewDelegate for UITableViewController
UITableViewController only.