Trait objc2_foundation::NSItemProviderWriting

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

Provided Methods§

source

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

Available on crate features NSArray and NSString only.
source

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

Available on crate features NSArray and NSString only.
source

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

Available on crate feature NSString only.
source

unsafe 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: &Block<dyn Fn(*mut NSData, *mut NSError)> ) -> Option<Retained<NSProgress>>
where Self: Sized + Message,

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

Trait Implementations§

source§

impl ProtocolType for dyn NSItemProviderWriting

source§

const NAME: &'static str = "NSItemProviderWriting"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn NSItemProviderWriting

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.