Skip to main content

UIActivityItemSource

Trait UIActivityItemSource 

Source
pub unsafe trait UIActivityItemSource: NSObjectProtocol {
    // Provided methods
    fn activityViewControllerPlaceholderItem(
        &self,
        activity_view_controller: &UIActivityViewController,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    fn activityViewController_itemForActivityType(
        &self,
        activity_view_controller: &UIActivityViewController,
        activity_type: Option<&UIActivityType>,
    ) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    fn activityViewController_subjectForActivityType(
        &self,
        activity_view_controller: &UIActivityViewController,
        activity_type: Option<&UIActivityType>,
    ) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn activityViewController_dataTypeIdentifierForActivityType(
        &self,
        activity_view_controller: &UIActivityViewController,
        activity_type: Option<&UIActivityType>,
    ) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn activityViewController_thumbnailImageForActivityType_suggestedSize(
        &self,
        activity_view_controller: &UIActivityViewController,
        activity_type: Option<&UIActivityType>,
        size: CGSize,
    ) -> Option<Retained<UIImage>>
       where Self: Sized + Message { ... }
}
Available on crate feature UIActivityItemProvider only.
Expand description

Provided Methods§

Source

fn activityViewControllerPlaceholderItem( &self, activity_view_controller: &UIActivityViewController, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features UIActivityViewController and UIResponder and UIViewController only.
Source

fn activityViewController_itemForActivityType( &self, activity_view_controller: &UIActivityViewController, activity_type: Option<&UIActivityType>, ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Available on crate features UIActivity and UIActivityViewController and UIResponder and UIViewController only.
Source

fn activityViewController_subjectForActivityType( &self, activity_view_controller: &UIActivityViewController, activity_type: Option<&UIActivityType>, ) -> Retained<NSString>
where Self: Sized + Message,

Available on crate features UIActivity and UIActivityViewController and UIResponder and UIViewController only.
Source

fn activityViewController_dataTypeIdentifierForActivityType( &self, activity_view_controller: &UIActivityViewController, activity_type: Option<&UIActivityType>, ) -> Retained<NSString>
where Self: Sized + Message,

Available on crate features UIActivity and UIActivityViewController and UIResponder and UIViewController only.
Source

fn activityViewController_thumbnailImageForActivityType_suggestedSize( &self, activity_view_controller: &UIActivityViewController, activity_type: Option<&UIActivityType>, size: CGSize, ) -> Option<Retained<UIImage>>
where Self: Sized + Message,

Available on crate features objc2-core-foundation and UIActivity and UIActivityViewController and UIImage and UIResponder and UIViewController only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIActivityItemSource

Source§

impl ProtocolType for dyn UIActivityItemSource

Source§

const NAME: &'static str = "UIActivityItemSource"

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

Implementors§