pub unsafe trait UICollectionViewDropCoordinator: NSObjectProtocol + IsMainThreadOnly {
// Provided methods
unsafe fn items(
&self
) -> Retained<NSArray<ProtocolObject<dyn UICollectionViewDropItem>>>
where Self: Sized + Message { ... }
unsafe fn destinationIndexPath(&self) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message { ... }
unsafe fn proposal(&self) -> Retained<UICollectionViewDropProposal>
where Self: Sized + Message { ... }
unsafe fn session(&self) -> Retained<ProtocolObject<dyn UIDropSession>>
where Self: Sized + Message { ... }
unsafe fn dropItem_toPlaceholder(
&self,
drag_item: &UIDragItem,
placeholder: &UICollectionViewDropPlaceholder
) -> Retained<ProtocolObject<dyn UICollectionViewDropPlaceholderContext>>
where Self: Sized + Message { ... }
unsafe fn dropItem_toItemAtIndexPath(
&self,
drag_item: &UIDragItem,
index_path: &NSIndexPath
) -> Retained<ProtocolObject<dyn UIDragAnimating>>
where Self: Sized + Message { ... }
unsafe fn dropItem_intoItemAtIndexPath_rect(
&self,
drag_item: &UIDragItem,
index_path: &NSIndexPath,
rect: CGRect
) -> Retained<ProtocolObject<dyn UIDragAnimating>>
where Self: Sized + Message { ... }
unsafe fn dropItem_toTarget(
&self,
drag_item: &UIDragItem,
target: &UIDragPreviewTarget
) -> Retained<ProtocolObject<dyn UIDragAnimating>>
where Self: Sized + Message { ... }
}
Available on crate feature
UICollectionView
only.Provided Methods§
unsafe fn items( &self ) -> Retained<NSArray<ProtocolObject<dyn UICollectionViewDropItem>>>
unsafe fn destinationIndexPath(&self) -> Option<Retained<NSIndexPath>>
unsafe fn proposal(&self) -> Retained<UICollectionViewDropProposal>
Available on crate feature
UIDropInteraction
only.unsafe fn session(&self) -> Retained<ProtocolObject<dyn UIDropSession>>
Available on crate feature
UIDragSession
only.unsafe fn dropItem_toPlaceholder( &self, drag_item: &UIDragItem, placeholder: &UICollectionViewDropPlaceholder ) -> Retained<ProtocolObject<dyn UICollectionViewDropPlaceholderContext>>
Available on crate features
UIDragInteraction
and UIDragItem
only.unsafe fn dropItem_toItemAtIndexPath( &self, drag_item: &UIDragItem, index_path: &NSIndexPath ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
Available on crate features
UIDragInteraction
and UIDragItem
only.unsafe fn dropItem_intoItemAtIndexPath_rect( &self, drag_item: &UIDragItem, index_path: &NSIndexPath, rect: CGRect ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
Available on crate features
UIDragInteraction
and UIDragItem
only.unsafe fn dropItem_toTarget( &self, drag_item: &UIDragItem, target: &UIDragPreviewTarget ) -> Retained<ProtocolObject<dyn UIDragAnimating>>
Available on crate features
UIDragInteraction
and UIDragItem
and UITargetedDragPreview
and UITargetedPreview
only.