Skip to main content

UIDropSession

Trait UIDropSession 

Source
pub unsafe trait UIDropSession:
    UIDragDropSession
    + NSProgressReporting
    + MainThreadOnly {
    // Provided methods
    fn localDragSession(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn UIDragSession>>>
       where Self: Sized + Message { ... }
    fn progressIndicatorStyle(&self) -> UIDropSessionProgressIndicatorStyle
       where Self: Sized + Message { ... }
    fn setProgressIndicatorStyle(
        &self,
        progress_indicator_style: UIDropSessionProgressIndicatorStyle,
    )
       where Self: Sized + Message { ... }
    unsafe fn loadObjectsOfClass_completion(
        &self,
        a_class: &AnyClass,
        completion: &DynBlock<dyn Fn(NonNull<NSArray<ProtocolObject<dyn NSItemProviderReading>>>)>,
    ) -> Retained<NSProgress>
       where Self: Sized + Message { ... }
}
Available on crate feature UIDragSession only.
Expand description

Provided Methods§

Source

fn localDragSession( &self, ) -> Option<Retained<ProtocolObject<dyn UIDragSession>>>
where Self: Sized + Message,

Source

fn progressIndicatorStyle(&self) -> UIDropSessionProgressIndicatorStyle
where Self: Sized + Message,

Source

fn setProgressIndicatorStyle( &self, progress_indicator_style: UIDropSessionProgressIndicatorStyle, )
where Self: Sized + Message,

Source

unsafe fn loadObjectsOfClass_completion( &self, a_class: &AnyClass, completion: &DynBlock<dyn Fn(NonNull<NSArray<ProtocolObject<dyn NSItemProviderReading>>>)>, ) -> Retained<NSProgress>
where Self: Sized + Message,

Available on crate feature block2 only.
§Safety

a_class must implement NSItemProviderReading.

Trait Implementations§

Source§

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

Source§

impl ProtocolType for dyn UIDropSession

Source§

const NAME: &'static str = "UIDropSession"

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

Implementors§