Skip to main content

NSItemProviderWriting

Trait NSItemProviderWriting 

Source
pub unsafe trait NSItemProviderWriting: NSObjectProtocol {
    // Provided methods
    fn writableTypeIdentifiersForItemProvider_class(    ) -> Retained<NSArray<NSString>>
       where Self: Sized + ClassType { ... }
    fn writableTypeIdentifiersForItemProvider(
        &self,
    ) -> Retained<NSArray<NSString>>
       where Self: Sized + Message { ... }
    fn itemProviderVisibilityForRepresentationWithTypeIdentifier_class(
        type_identifier: &NSString,
    ) -> NSItemProviderRepresentationVisibility
       where Self: Sized + ClassType { ... }
    fn itemProviderVisibilityForRepresentationWithTypeIdentifier(
        &self,
        type_identifier: &NSString,
    ) -> NSItemProviderRepresentationVisibility
       where Self: Sized + Message { ... }
    unsafe fn loadDataWithTypeIdentifier_forItemProviderCompletionHandler(
        &self,
        type_identifier: &NSString,
        completion_handler: &DynBlock<dyn Fn(*mut NSData, *mut NSError)>,
    ) -> Option<Retained<NSProgress>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSItemProvider only.
Expand description

Provided Methods§

Source

fn writableTypeIdentifiersForItemProvider_class() -> Retained<NSArray<NSString>>
where Self: Sized + ClassType,

Available on crate features NSArray and NSString only.
Source

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

Available on crate features NSArray and NSString only.
Source

fn itemProviderVisibilityForRepresentationWithTypeIdentifier_class( type_identifier: &NSString, ) -> NSItemProviderRepresentationVisibility
where Self: Sized + ClassType,

Available on crate feature NSString only.
Source

fn itemProviderVisibilityForRepresentationWithTypeIdentifier( &self, type_identifier: &NSString, ) -> NSItemProviderRepresentationVisibility
where Self: Sized + Message,

Available on crate feature NSString only.
Source

unsafe fn loadDataWithTypeIdentifier_forItemProviderCompletionHandler( &self, type_identifier: &NSString, completion_handler: &DynBlock<dyn Fn(*mut NSData, *mut NSError)>, ) -> Option<Retained<NSProgress>>
where Self: Sized + Message,

Available on crate features block2 and NSData and NSError and NSProgress and NSString only.
§Safety

completion_handler block must be sendable.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSItemProviderWriting

Source§

impl ProtocolType for dyn NSItemProviderWriting

Source§

const NAME: &'static str = "NSItemProviderWriting"

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> NSItemProviderWriting for ProtocolObject<T>

Implementors§

Source§

impl NSItemProviderWriting for NSString

Available on crate feature NSString only.
Source§

impl NSItemProviderWriting for NSURL

Available on crate feature NSURL only.