Trait UITableViewDropDelegate

Source
pub unsafe trait UITableViewDropDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn tableView_performDropWithCoordinator(
        &self,
        table_view: &UITableView,
        coordinator: &ProtocolObject<dyn UITableViewDropCoordinator>,
    )
       where Self: Sized + Message { ... }
    unsafe fn tableView_canHandleDropSession(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn tableView_dropSessionDidEnter(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn tableView_dropSessionDidUpdate_withDestinationIndexPath(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
        destination_index_path: Option<&NSIndexPath>,
    ) -> Retained<UITableViewDropProposal>
       where Self: Sized + Message { ... }
    unsafe fn tableView_dropSessionDidExit(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn tableView_dropSessionDidEnd(
        &self,
        table_view: &UITableView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe 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

unsafe 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

unsafe 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

unsafe 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

unsafe 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

unsafe 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

unsafe 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

unsafe 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 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
Source§

impl<T> ImplementedBy<T> for dyn UITableViewDropDelegate

Implementations on Foreign Types§

Source§

impl<T> UITableViewDropDelegate for ProtocolObject<T>

Implementors§