Skip to main content

UITableViewDropDelegate

Trait UITableViewDropDelegate 

Source
pub unsafe trait UITableViewDropDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn tableView_performDropWithCoordinator(
        &self,
        table_view: &UITableView,
        coordinator: &ProtocolObject<dyn UITableViewDropCoordinator>,
    )
       where Self: Sized + Message { ... }
    fn tableView_canHandleDropSession(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    ) -> bool
       where Self: Sized + Message { ... }
    fn tableView_dropSessionDidEnter(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn tableView_dropSessionDidUpdate_withDestinationIndexPath(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
        destination_index_path: Option<&NSIndexPath>,
    ) -> Retained<UITableViewDropProposal>
       where Self: Sized + Message { ... }
    fn tableView_dropSessionDidExit(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn tableView_dropSessionDidEnd(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn tableView_dropPreviewParametersForRowAtIndexPath(
        &self,
        table_view: &UITableView,
        index_path: &NSIndexPath,
    ) -> Option<Retained<UIDragPreviewParameters>>
       where Self: Sized + Message { ... }
}
Available on crate feature UITableView only.
Expand description

Provided Methods§

Source

fn tableView_performDropWithCoordinator( &self, table_view: &UITableView, coordinator: &ProtocolObject<dyn UITableViewDropCoordinator>, )
where Self: Sized + Message,

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

fn tableView_canHandleDropSession( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDropSession>, ) -> bool
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
Source

fn tableView_dropSessionDidEnter( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
Source

fn tableView_dropSessionDidUpdate_withDestinationIndexPath( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDropSession>, destination_index_path: Option<&NSIndexPath>, ) -> Retained<UITableViewDropProposal>
where Self: Sized + Message,

Available on crate features UIDragSession and UIDropInteraction and UIResponder and UIScrollView and UIView only.
Source

fn tableView_dropSessionDidExit( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
Source

fn tableView_dropSessionDidEnd( &self, table_view: &UITableView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIResponder and UIScrollView and UIView only.
Source

fn tableView_dropPreviewParametersForRowAtIndexPath( &self, table_view: &UITableView, index_path: &NSIndexPath, ) -> Option<Retained<UIDragPreviewParameters>>
where Self: Sized + Message,

Available on crate features UIDragPreviewParameters and UIPreviewParameters and UIResponder and UIScrollView and UIView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UITableViewDropDelegate

Source§

impl ProtocolType for dyn UITableViewDropDelegate

Source§

const NAME: &'static str = "UITableViewDropDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UITableViewDropDelegate for ProtocolObject<T>

Implementors§