Skip to main content

UIDragSession

Trait UIDragSession 

Source
pub unsafe trait UIDragSession: UIDragDropSession + MainThreadOnly {
    // Provided methods
    fn localContext(&self) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn setLocalContext(&self, local_context: Option<&AnyObject>)
       where Self: Sized + Message { ... }
}
Available on crate feature UIDragSession only.
Expand description

Provided Methods§

Source

fn localContext(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Source

unsafe fn setLocalContext(&self, local_context: Option<&AnyObject>)
where Self: Sized + Message,

Setter for localContext.

§Safety

local_context should be of the correct type.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIDragSession
where T: ?Sized + Message + UIDragSession,

Source§

impl ProtocolType for dyn UIDragSession

Source§

const NAME: &'static str = "UIDragSession"

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> UIDragSession for ProtocolObject<T>
where T: ?Sized + UIDragSession,

Implementors§