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§
fn collectionView_performDropWithCoordinator( &self, collection_view: &UICollectionView, coordinator: &ProtocolObject<dyn UICollectionViewDropCoordinator>, )
Available on crate features
UIResponder and UIScrollView and UIView only.fn collectionView_canHandleDropSession( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, ) -> bool
Available on crate features
UIDragSession and UIResponder and UIScrollView and UIView only.fn collectionView_dropSessionDidEnter( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, )
Available on crate features
UIDragSession and UIResponder and UIScrollView and UIView only.fn collectionView_dropSessionDidUpdate_withDestinationIndexPath( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, destination_index_path: Option<&NSIndexPath>, ) -> Retained<UICollectionViewDropProposal>
Available on crate features
UIDragSession and UIDropInteraction and UIResponder and UIScrollView and UIView only.fn collectionView_dropSessionDidExit( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, )
Available on crate features
UIDragSession and UIResponder and UIScrollView and UIView only.fn collectionView_dropSessionDidEnd( &self, collection_view: &UICollectionView, session: &ProtocolObject<dyn UIDropSession>, )
Available on crate features
UIDragSession and UIResponder and UIScrollView and UIView only.fn collectionView_dropPreviewParametersForItemAtIndexPath( &self, collection_view: &UICollectionView, index_path: &NSIndexPath, ) -> Option<Retained<UIDragPreviewParameters>>
Available on crate features
UIDragPreviewParameters and UIPreviewParameters and UIResponder and UIScrollView and UIView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UICollectionViewDropDelegate
Source§impl ProtocolType for dyn UICollectionViewDropDelegate
impl ProtocolType for dyn UICollectionViewDropDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".