pub unsafe trait UITableViewDelegate:
NSObjectProtocol
+ UIScrollViewDelegate
+ MainThreadOnly {
Show 53 methods
// Provided methods
unsafe fn tableView_willDisplayCell_forRowAtIndexPath(
&self,
table_view: &UITableView,
cell: &UITableViewCell,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_willDisplayHeaderView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
unsafe fn tableView_willDisplayFooterView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
unsafe fn tableView_didEndDisplayingCell_forRowAtIndexPath(
&self,
table_view: &UITableView,
cell: &UITableViewCell,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_didEndDisplayingHeaderView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
unsafe fn tableView_didEndDisplayingFooterView_forSection(
&self,
table_view: &UITableView,
view: &UIView,
section: NSInteger,
)
where Self: Sized + Message { ... }
unsafe fn tableView_heightForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn tableView_heightForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn tableView_heightForFooterInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn tableView_estimatedHeightForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn tableView_estimatedHeightForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn tableView_estimatedHeightForFooterInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn tableView_viewForHeaderInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<UIView>>
where Self: Sized + Message { ... }
unsafe fn tableView_viewForFooterInSection(
&self,
table_view: &UITableView,
section: NSInteger,
) -> Option<Retained<UIView>>
where Self: Sized + Message { ... }
unsafe fn tableView_accessoryTypeForRowWithIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> UITableViewCellAccessoryType
where Self: Sized + Message { ... }
unsafe fn tableView_accessoryButtonTappedForRowWithIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_shouldHighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_didHighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_didUnhighlightRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_willSelectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
unsafe fn tableView_willDeselectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
unsafe fn tableView_didSelectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_didDeselectRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_canPerformPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_performPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_editingStyleForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> UITableViewCellEditingStyle
where Self: Sized + Message { ... }
unsafe fn tableView_titleForDeleteConfirmationButtonForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn tableView_editActionsForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<NSArray<UITableViewRowAction>>>
where Self: Sized + Message { ... }
unsafe fn tableView_leadingSwipeActionsConfigurationForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<UISwipeActionsConfiguration>>
where Self: Sized + Message { ... }
unsafe fn tableView_trailingSwipeActionsConfigurationForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> Option<Retained<UISwipeActionsConfiguration>>
where Self: Sized + Message { ... }
unsafe fn tableView_shouldIndentWhileEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_willBeginEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableView_didEndEditingRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: Option<&NSIndexPath>,
)
where Self: Sized + Message { ... }
unsafe fn tableView_targetIndexPathForMoveFromRowAtIndexPath_toProposedIndexPath(
&self,
table_view: &UITableView,
source_index_path: &NSIndexPath,
proposed_destination_index_path: &NSIndexPath,
) -> Retained<NSIndexPath>
where Self: Sized + Message { ... }
unsafe fn tableView_indentationLevelForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> NSInteger
where Self: Sized + Message { ... }
unsafe 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 { ... }
unsafe fn tableView_canFocusRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_shouldUpdateFocusInContext(
&self,
table_view: &UITableView,
context: &UITableViewFocusUpdateContext,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_didUpdateFocusInContext_withAnimationCoordinator(
&self,
table_view: &UITableView,
context: &UITableViewFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator,
)
where Self: Sized + Message { ... }
unsafe fn indexPathForPreferredFocusedViewInTableView(
&self,
table_view: &UITableView,
) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
unsafe fn tableView_selectionFollowsFocusForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_shouldSpringLoadRowAtIndexPath_withContext(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
context: &ProtocolObject<dyn UISpringLoadedInteractionContext>,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_shouldBeginMultipleSelectionInteractionAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
where Self: Sized + Message { ... }
unsafe fn tableView_didBeginMultipleSelectionInteractionAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
where Self: Sized + Message { ... }
unsafe fn tableViewDidEndMultipleSelectionInteraction(
&self,
table_view: &UITableView,
)
where Self: Sized + Message { ... }
unsafe fn tableView_contextMenuConfigurationForRowAtIndexPath_point(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
point: CGPoint,
) -> Option<Retained<UIContextMenuConfiguration>>
where Self: Sized + Message { ... }
unsafe fn tableView_previewForHighlightingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
where Self: Sized + Message { ... }
unsafe fn tableView_previewForDismissingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
where Self: Sized + Message { ... }
unsafe fn tableView_willPerformPreviewActionForMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: &ProtocolObject<dyn UIContextMenuInteractionCommitAnimating>,
)
where Self: Sized + Message { ... }
unsafe fn tableView_willDisplayContextMenuWithConfiguration_animator(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
animator: Option<&ProtocolObject<dyn UIContextMenuInteractionAnimating>>,
)
where Self: Sized + Message { ... }
unsafe 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§
unsafe fn tableView_willDisplayCell_forRowAtIndexPath( &self, table_view: &UITableView, cell: &UITableViewCell, index_path: &NSIndexPath, )
UIResponder and UITableViewCell and UIView only.unsafe fn tableView_willDisplayHeaderView_forSection( &self, table_view: &UITableView, view: &UIView, section: NSInteger, )
UIResponder and UIView only.UIResponder and UIView only.unsafe fn tableView_didEndDisplayingCell_forRowAtIndexPath( &self, table_view: &UITableView, cell: &UITableViewCell, index_path: &NSIndexPath, )
UIResponder and UITableViewCell and UIView only.unsafe fn tableView_didEndDisplayingHeaderView_forSection( &self, table_view: &UITableView, view: &UIView, section: NSInteger, )
UIResponder and UIView only.UIResponder and UIView only.unsafe fn tableView_heightForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> CGFloat
UIResponder and UIView and objc2-core-foundation only.unsafe 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.unsafe fn tableView_estimatedHeightForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> CGFloat
UIResponder and UIView and objc2-core-foundation only.unsafe 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.unsafe fn tableView_viewForHeaderInSection( &self, table_view: &UITableView, section: NSInteger, ) -> Option<Retained<UIView>>
UIResponder and UIView only.UIResponder and UIView only.unsafe fn tableView_accessoryTypeForRowWithIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> UITableViewCellAccessoryType
UIResponder and UITableViewCell and UIView only.unsafe fn tableView_accessoryButtonTappedForRowWithIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.unsafe fn tableView_shouldHighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.unsafe fn tableView_didHighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.unsafe fn tableView_didUnhighlightRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.unsafe fn tableView_willSelectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSIndexPath>>
UIResponder and UIView only.unsafe fn tableView_willDeselectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSIndexPath>>
UIResponder and UIView only.unsafe fn tableView_didSelectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.unsafe fn tableView_didDeselectRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.Sourceunsafe fn tableView_canPerformPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
Available on crate features UIResponder and UIView only.
unsafe 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.
Sourceunsafe fn tableView_performPrimaryActionForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
)
Available on crate features UIResponder and UIView only.
unsafe 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
unsafe fn tableView_editingStyleForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> UITableViewCellEditingStyle
UIResponder and UITableViewCell and UIView only.unsafe fn tableView_titleForDeleteConfirmationButtonForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSString>>
UIResponder and UIView only.unsafe fn tableView_editActionsForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<NSArray<UITableViewRowAction>>>
UIResponder and UIView only.unsafe fn tableView_leadingSwipeActionsConfigurationForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<UISwipeActionsConfiguration>>
UIResponder and UISwipeActionsConfiguration and UIView only.unsafe fn tableView_trailingSwipeActionsConfigurationForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<UISwipeActionsConfiguration>>
UIResponder and UISwipeActionsConfiguration and UIView only.unsafe fn tableView_shouldIndentWhileEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.unsafe fn tableView_willBeginEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.unsafe fn tableView_didEndEditingRowAtIndexPath( &self, table_view: &UITableView, index_path: Option<&NSIndexPath>, )
UIResponder and UIView only.unsafe fn tableView_targetIndexPathForMoveFromRowAtIndexPath_toProposedIndexPath( &self, table_view: &UITableView, source_index_path: &NSIndexPath, proposed_destination_index_path: &NSIndexPath, ) -> Retained<NSIndexPath>
UIResponder and UIView only.unsafe fn tableView_indentationLevelForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> NSInteger
UIResponder and UIView only.unsafe fn tableView_shouldShowMenuForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
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.unsafe fn tableView_performAction_forRowAtIndexPath_withSender( &self, table_view: &UITableView, action: Sel, index_path: &NSIndexPath, sender: Option<&AnyObject>, )
UIResponder and UIView only.unsafe fn tableView_canFocusRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.unsafe fn tableView_shouldUpdateFocusInContext( &self, table_view: &UITableView, context: &UITableViewFocusUpdateContext, ) -> bool
UIFocus and UIResponder and UIView only.unsafe fn tableView_didUpdateFocusInContext_withAnimationCoordinator( &self, table_view: &UITableView, context: &UITableViewFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator, )
UIFocus and UIFocusAnimationCoordinator and UIResponder and UIView only.unsafe fn indexPathForPreferredFocusedViewInTableView( &self, table_view: &UITableView, ) -> Option<Retained<NSIndexPath>>
UIResponder and UIView only.Sourceunsafe fn tableView_selectionFollowsFocusForRowAtIndexPath(
&self,
table_view: &UITableView,
index_path: &NSIndexPath,
) -> bool
Available on crate features UIResponder and UIView only.
unsafe 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.
unsafe fn tableView_shouldSpringLoadRowAtIndexPath_withContext( &self, table_view: &UITableView, index_path: &NSIndexPath, context: &ProtocolObject<dyn UISpringLoadedInteractionContext>, ) -> bool
UIResponder and UISpringLoadedInteraction and UIView only.unsafe fn tableView_shouldBeginMultipleSelectionInteractionAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> bool
UIResponder and UIView only.unsafe fn tableView_didBeginMultipleSelectionInteractionAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, )
UIResponder and UIView only.unsafe fn tableViewDidEndMultipleSelectionInteraction( &self, table_view: &UITableView, )
UIResponder and UIView only.Sourceunsafe fn 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.
unsafe 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.
Sourceunsafe fn tableView_previewForHighlightingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
Available on crate features UIContextMenuConfiguration and UIResponder and UITargetedPreview and UIView only.
unsafe 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.
Sourceunsafe fn tableView_previewForDismissingContextMenuWithConfiguration(
&self,
table_view: &UITableView,
configuration: &UIContextMenuConfiguration,
) -> Option<Retained<UITargetedPreview>>
Available on crate features UIContextMenuConfiguration and UIResponder and UITargetedPreview and UIView only.
unsafe 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.
Sourceunsafe fn 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.
unsafe 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.
Sourceunsafe fn 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.
unsafe 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.
Sourceunsafe fn 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.
unsafe 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
UIResponder and UIViewController and UITableViewController only.