Skip to main content

UICollectionViewDropDelegate

Trait UICollectionViewDropDelegate 

Source
pub unsafe trait UICollectionViewDropDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn collectionView_performDropWithCoordinator(
        &self,
        collection_view: &UICollectionView,
        coordinator: &ProtocolObject<dyn UICollectionViewDropCoordinator>,
    )
       where Self: Sized + Message { ... }
    fn collectionView_canHandleDropSession(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>,
    ) -> bool
       where Self: Sized + Message { ... }
    fn collectionView_dropSessionDidEnter(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn collectionView_dropSessionDidUpdate_withDestinationIndexPath(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>,
        destination_index_path: Option<&NSIndexPath>,
    ) -> Retained<UICollectionViewDropProposal>
       where Self: Sized + Message { ... }
    fn collectionView_dropSessionDidExit(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn collectionView_dropSessionDidEnd(
        &self,
        collection_view: &UICollectionView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn collectionView_dropPreviewParametersForItemAtIndexPath(
        &self,
        collection_view: &UICollectionView,
        index_path: &NSIndexPath,
    ) -> Option<Retained<UIDragPreviewParameters>>
       where Self: Sized + Message { ... }
}
Available on crate feature UICollectionView only.
Expand description

Provided Methods§

Source

fn collectionView_performDropWithCoordinator( &self, collection_view: &UICollectionView, coordinator: &ProtocolObject<dyn UICollectionViewDropCoordinator>, )
where Self: Sized + Message,

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

fn collectionView_canHandleDropSession( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, ) -> bool
where Self: Sized + Message,

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

fn collectionView_dropSessionDidEnter( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

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

fn collectionView_dropSessionDidUpdate_withDestinationIndexPath( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, destination_index_path: Option<&NSIndexPath>, ) -> Retained<UICollectionViewDropProposal>
where Self: Sized + Message,

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

fn collectionView_dropSessionDidExit( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

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

fn collectionView_dropSessionDidEnd( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

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

fn collectionView_dropPreviewParametersForItemAtIndexPath( &self, collection_view: &UICollectionView, 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 UICollectionViewDropDelegate

Source§

impl ProtocolType for dyn UICollectionViewDropDelegate

Source§

const NAME: &'static str = "UICollectionViewDropDelegate"

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> UICollectionViewDropDelegate for ProtocolObject<T>

Implementors§