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