Trait objc2_ui_kit::UITableViewDropDelegate

source ·
pub unsafe trait UITableViewDropDelegate: NSObjectProtocol + IsMainThreadOnly {
    // 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.

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.
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§