Trait NSItemProviderReading

Source
pub unsafe trait NSItemProviderReading: NSObjectProtocol {
    // Provided methods
    unsafe fn readableTypeIdentifiersForItemProvider(    ) -> Retained<NSArray<NSString>>
       where Self: Sized + ClassType { ... }
    unsafe fn objectWithItemProviderData_typeIdentifier_error(
        data: &NSData,
        type_identifier: &NSString,
    ) -> Result<Retained<Self>, Retained<NSError>>
       where Self: Sized + ClassType { ... }
}
Available on crate feature NSItemProvider only.
Expand description

Provided Methods§

Source

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

Available on crate features NSArray and NSString only.
Source

unsafe fn objectWithItemProviderData_typeIdentifier_error( data: &NSData, type_identifier: &NSString, ) -> Result<Retained<Self>, Retained<NSError>>
where Self: Sized + ClassType,

Available on crate features NSData and NSError and NSString only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSItemProviderReading

Source§

const NAME: &'static str = "NSItemProviderReading"

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
Source§

impl<T> ImplementedBy<T> for dyn NSItemProviderReading

Implementations on Foreign Types§

Source§

impl<T> NSItemProviderReading for ProtocolObject<T>

Implementors§

Source§

impl NSItemProviderReading for NSString

Available on crate feature NSString only.
Source§

impl NSItemProviderReading for NSURL

Available on crate feature NSURL only.