public interface MFMailComposeViewControllerDelegate
Protocol for delegate callbacks to MFMailComposeViewController instances.
This protocol must be implemented for delegates of MFMailComposeViewController instances. It will be called at various times while the user is composing, sending, saving, or canceling email composition.
| Modifier and Type | Method and Description |
|---|---|
default void |
mailComposeControllerDidFinishWithResultError(MFMailComposeViewController controller,
long result,
NSError error)
mailComposeController:didFinishWithResult:error:
|
default void mailComposeControllerDidFinishWithResultError(MFMailComposeViewController controller, long result, NSError error)
Delegate callback which is called upon user's completion of email composition.
This delegate callback will be called when the user completes the email 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.
controller - The MFMailComposeViewController instance which is returning the result.result - MFMailComposeResult indicating how the user chose to complete the composition process.error - NSError indicating the failure reason if failure did occur. This will be nil if
result did not indicate failure.