Trait UIDragDropSession

Source
pub unsafe trait UIDragDropSession: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn items(&self) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    unsafe fn locationInView(&self, view: &UIView) -> CGPoint
       where Self: Sized + Message { ... }
    unsafe fn allowsMoveOperation(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn isRestrictedToDraggingApplication(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe 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§

Source

unsafe fn items(&self) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

Available on crate feature UIDragItem only.
Source

unsafe fn locationInView(&self, view: &UIView) -> CGPoint
where Self: Sized + Message,

Available on crate features UIResponder and UIView and objc2-core-foundation only.
Source

unsafe fn allowsMoveOperation(&self) -> bool
where Self: Sized + Message,

Source

unsafe fn isRestrictedToDraggingApplication(&self) -> bool
where Self: Sized + Message,

Source

unsafe fn hasItemsConformingToTypeIdentifiers( &self, type_identifiers: &NSArray<NSString>, ) -> bool
where Self: Sized + Message,

Source

unsafe fn canLoadObjectsOfClass(&self, a_class: &AnyClass) -> bool
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UIDragDropSession

Source§

const NAME: &'static str = "UIDragDropSession"

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
Source§

impl<T> ImplementedBy<T> for dyn UIDragDropSession

Implementations on Foreign Types§

Source§

impl<T> UIDragDropSession for ProtocolObject<T>

Implementors§