Trait MFMessageComposeViewControllerDelegate

Source
pub unsafe trait MFMessageComposeViewControllerDelegate: NSObjectProtocol {
    // Provided method
    unsafe fn messageComposeViewController_didFinishWithResult(
        &self,
        controller: &MFMessageComposeViewController,
        result: MessageComposeResult,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature MFMessageComposeViewController only.
Expand description

Protocol for delegate callbacks to MFMessageComposeViewControllerDelegate instances.

This protocol will be implemented by delegates of MFMessageComposeViewController instances. It will be called at various times while the user is composing, sending, or canceling message composition.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn messageComposeViewController_didFinishWithResult( &self, controller: &MFMessageComposeViewController, result: MessageComposeResult, )
where Self: Sized + Message,

Available on crate feature objc2-ui-kit only.

Delegate callback which is called upon user’s completion of message composition.

This delegate callback will be called when the user completes the message composition. How the user chose to complete this task will be given as one of the parameters to the callback. Upon this call, the client should remove the view associated with the controller, typically by dismissing modally.

Parameter controller: The MFMessageComposeViewController instance which is returning the result.

Parameter result: MessageComposeResult indicating how the user chose to complete the composition process.

Trait Implementations§

Source§

impl ProtocolType for dyn MFMessageComposeViewControllerDelegate

Source§

const NAME: &'static str = "MFMessageComposeViewControllerDelegate"

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 MFMessageComposeViewControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> MFMessageComposeViewControllerDelegate for ProtocolObject<T>

Implementors§