Skip to main content

UIDragDropSession

Trait UIDragDropSession 

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

Source

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

Available on crate feature UIDragItem only.
Source

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

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

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

Source

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

Source

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,

§Safety

a_class must implement NSItemProviderReading.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIDragDropSession

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIDragDropSession for ProtocolObject<T>

Implementors§