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§
fn localDragSession( &self, ) -> Option<Retained<ProtocolObject<dyn UIDragSession>>>
fn progressIndicatorStyle(&self) -> UIDropSessionProgressIndicatorStyle
Sourcefn setProgressIndicatorStyle(
&self,
progress_indicator_style: UIDropSessionProgressIndicatorStyle,
)
fn setProgressIndicatorStyle( &self, progress_indicator_style: UIDropSessionProgressIndicatorStyle, )
Setter for progressIndicatorStyle.
Sourceunsafe fn loadObjectsOfClass_completion(
&self,
a_class: &AnyClass,
completion: &DynBlock<dyn Fn(NonNull<NSArray<ProtocolObject<dyn NSItemProviderReading>>>)>,
) -> Retained<NSProgress>
Available on crate feature block2 only.
unsafe fn loadObjectsOfClass_completion( &self, a_class: &AnyClass, completion: &DynBlock<dyn Fn(NonNull<NSArray<ProtocolObject<dyn NSItemProviderReading>>>)>, ) -> Retained<NSProgress>
block2 only.§Safety
a_class must implement NSItemProviderReading.
Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIDropSession
Source§impl ProtocolType for dyn UIDropSession
impl ProtocolType for dyn UIDropSession
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".