Skip to main content

UIDocumentMenuDelegate

Trait UIDocumentMenuDelegate 

Source
pub unsafe trait UIDocumentMenuDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn documentMenu_didPickDocumentPicker(
        &self,
        document_menu: &UIDocumentMenuViewController,
        document_picker: &UIDocumentPickerViewController,
    )
       where Self: Sized + Message { ... }
    fn documentMenuWasCancelled(
        &self,
        document_menu: &UIDocumentMenuViewController,
    )
       where Self: Sized + Message { ... }
}
👎Deprecated:

UIDocumentMenuDelegate is deprecated. Use UIDocumentPickerViewController directly.

Available on crate feature UIDocumentMenuViewController only.
Expand description

Provided Methods§

Source

fn documentMenu_didPickDocumentPicker( &self, document_menu: &UIDocumentMenuViewController, document_picker: &UIDocumentPickerViewController, )
where Self: Sized + Message,

👎Deprecated:

UIDocumentMenuDelegate is deprecated. Use UIDocumentPickerViewController directly.

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

fn documentMenuWasCancelled(&self, document_menu: &UIDocumentMenuViewController)
where Self: Sized + Message,

👎Deprecated:

UIDocumentMenuDelegate is deprecated. Use UIDocumentPickerViewController directly.

Available on crate features UIResponder and UIViewController only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIDocumentMenuDelegate

Source§

impl ProtocolType for dyn UIDocumentMenuDelegate

Source§

const NAME: &'static str = "UIDocumentMenuDelegate"

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

Implementors§