INUIAddVoiceShortcutViewControllerDelegate

Trait INUIAddVoiceShortcutViewControllerDelegate 

Source
pub unsafe trait INUIAddVoiceShortcutViewControllerDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn addVoiceShortcutViewController_didFinishWithVoiceShortcut_error(
        &self,
        controller: &INUIAddVoiceShortcutViewController,
        voice_shortcut: Option<&INVoiceShortcut>,
        error: Option<&NSError>,
    )
       where Self: Sized + Message { ... }
    unsafe fn addVoiceShortcutViewControllerDidCancel(
        &self,
        controller: &INUIAddVoiceShortcutViewController,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature INUIAddVoiceShortcutViewController only.
Expand description

Provided Methods§

Source

unsafe fn addVoiceShortcutViewController_didFinishWithVoiceShortcut_error( &self, controller: &INUIAddVoiceShortcutViewController, voice_shortcut: Option<&INVoiceShortcut>, error: Option<&NSError>, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and crate feature objc2-intents and macOS only.

Called after the user finishes the setup flow for the voice shortcut, with either the successfully-added voice shortcut, or an error.

Your implementation of this method should dismiss the view controller.

Source

unsafe fn addVoiceShortcutViewControllerDidCancel( &self, controller: &INUIAddVoiceShortcutViewController, )
where Self: Sized + Message,

Available on crate feature objc2-app-kit and macOS only.

Called if the user cancels the setup flow; the voice shortcut was not added.

Your implementation of this method should dismiss the view controller.

Trait Implementations§

Source§

impl ProtocolType for dyn INUIAddVoiceShortcutViewControllerDelegate

Source§

const NAME: &'static str = "INUIAddVoiceShortcutViewControllerDelegate"

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 INUIAddVoiceShortcutViewControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> INUIAddVoiceShortcutViewControllerDelegate for ProtocolObject<T>

Implementors§