MessageUI Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The MessageUI namespace provides standard user interfaces for email and SMS message composition.
Classes
| Name | Description |
|---|---|
| MFComposeResultEventArgs |
Provides data for the Finished event. |
| MFMailComposeErrorCodeExtensions |
Extension methods for the MFMailComposeErrorCode enumeration. |
| MFMailComposeViewController |
Provides a user interface for composing and sending email messages. |
| MFMailComposeViewController.MFMailComposeViewControllerAppearance |
Appearance class for objects of type MFMailComposeViewController. |
| MFMailComposeViewControllerDelegate |
This is a class that implements the interface IMFMailComposeViewControllerDelegate (for the protocol Subclass this class to easily create a type that implements the protocol. An alternative is to create a subclass of NSObject and then implemented the interface IMFMailComposeViewControllerDelegate. |
| MFMailComposeViewControllerDelegate_Extensions |
Extension methods to the IMFMailComposeViewControllerDelegate interface to support all the methods from the MFMailComposeViewControllerDelegate protocol. |
| MFMessageAvailabilityChangedEventArgs |
Provides data for an event based on a posted NSNotification object. |
| MFMessageComposeResultEventArgs |
Provides data for the Finished event. |
| MFMessageComposeViewController |
Provides a user interface for composing and sending messages. |
| MFMessageComposeViewController.MFMessageComposeViewControllerAppearance |
Appearance class for objects of type MFMessageComposeViewController. |
| MFMessageComposeViewController.Notifications |
Notifications posted by the MFMessageComposeViewController class. |
| MFMessageComposeViewControllerDelegate |
Used to receive notifications from the MFMessageComposeViewController class. |
Interfaces
| Name | Description |
|---|---|
| IMFMailComposeViewControllerDelegate |
This interface represents the Objective-C protocol |
| IMFMessageComposeViewControllerDelegate |
Used to receive notifications from the MFMessageComposeViewController class. |
Enums
| Name | Description |
|---|---|
| MessageComposeResult |
An enumeration whose values specify the various results possible from a message being composed. |
| MFMailComposeControllerDeferredAction | |
| MFMailComposeErrorCode |
Details of the composing error. |
| MFMailComposeResult |
The result from composing an email message. |
Remarks
The MessageUI namespace provides view controllers that allow users to compose and send email messages and SMS/MMS messages from within an application.
The main classes in this namespace are:
- MFMailComposeViewController - Presents a standard interface for composing and sending email messages. :
- MFMessageComposeViewController - Presents a standard interface for composing and sending SMS and MMS messages. :
These view controllers handle the actual sending of messages and provide a consistent user experience across applications. Applications should check availability before presenting these interfaces, as not all devices support all messaging capabilities.