pub unsafe trait MFMessageComposeViewControllerDelegate: NSObjectProtocol {
// Provided method
unsafe fn messageComposeViewController_didFinishWithResult(
&self,
controller: &MFMessageComposeViewController,
result: MessageComposeResult,
)
where Self: Sized + Message { ... }
}
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§
Sourceunsafe fn messageComposeViewController_didFinishWithResult(
&self,
controller: &MFMessageComposeViewController,
result: MessageComposeResult,
)
Available on crate feature objc2-ui-kit
only.
unsafe fn messageComposeViewController_didFinishWithResult( &self, controller: &MFMessageComposeViewController, result: MessageComposeResult, )
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.