Platforms to show: All Mac Windows Linux Cross-Platform

MFMessageComposeViewControllerMBS class   New in 24.2

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Messages MBS iOS Plugin 24.2 ❌ No ❌ No ❌ No ✅ Yes iOS only
A standard view controller whose interface lets the user compose and send SMS or MMS messages.

Use an MFMessageComposeViewController object to display the standard message composition interface inside your app. Before presenting the interface, populate the fields with the set of initial recipients and the message you want to send. After presenting the interface, a person can edit your initial values before sending the message.

The composition interface doesn’t guarantee the delivery of your message; it only lets you construct the initial message and present it for a person’s approval. The person may opt to cancel the composition interface which discards the message and its contents. If the person opts to send the message, the Messages app takes on the responsibility of sending the message.

An alternate way to compose SMS messages is to create and open a URL that uses the sms scheme. URLs of that type go directly to the Messages app, which uses your URL to configure the message. For information about the structure of sms URLs, see Apple URL Scheme Reference.

Result Codes

Constant Value Description
MessageComposeResultCancelled 0 The user canceled the composition.
MessageComposeResultFailed 2 The user’s attempt to save or send the message was unsuccessful.
MessageComposeResultSent 1 The user successfully queued or sent the message.

This class has no sub classes.

Blog Entries

Release notes

  • Version 24.2
    • Improved MFMessageComposeViewControllerMBS and MFMailComposeViewControllerMBS class to better dismiss and provide dismissed event.
    • Added MFMessageComposeViewControllerMBS class to let user write a text message.

The items on this page are in the following plugins: MBS iOS Plugin.


MFMailComposeViewControllerMBS   -   MFPMediaItemMBS


The biggest plugin in space...