pub unsafe trait UIDragDropSession: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn items(&self) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message { ... }
fn locationInView(&self, view: &UIView) -> CGPoint
where Self: Sized + Message { ... }
fn allowsMoveOperation(&self) -> bool
where Self: Sized + Message { ... }
fn isRestrictedToDraggingApplication(&self) -> bool
where Self: Sized + Message { ... }
fn hasItemsConformingToTypeIdentifiers(
&self,
type_identifiers: &NSArray<NSString>,
) -> bool
where Self: Sized + Message { ... }
unsafe fn canLoadObjectsOfClass(&self, a_class: &AnyClass) -> bool
where Self: Sized + Message { ... }
}Available on crate feature
UIDragSession only.Expand description
Provided Methods§
fn items(&self) -> Retained<NSArray<UIDragItem>>
Available on crate feature
UIDragItem only.fn locationInView(&self, view: &UIView) -> CGPoint
Available on crate features
objc2-core-foundation and UIResponder and UIView only.fn allowsMoveOperation(&self) -> bool
fn isRestrictedToDraggingApplication(&self) -> bool
fn hasItemsConformingToTypeIdentifiers( &self, type_identifiers: &NSArray<NSString>, ) -> bool
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIDragDropSession
Source§impl ProtocolType for dyn UIDragDropSession
impl ProtocolType for dyn UIDragDropSession
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".