One Logo Pool Ball
MessageUI · IOS API REFERENCE

MFMessageComposeViewController

class · iOS 4.0+ · SDK 27.1

class MFMessageComposeViewController

Members (18)

static · iOS 7.0+

canSendAttachments

TypeScript
static canSendAttachments(): Promise<boolean>
Swift declaration
class func canSendAttachments() -> Bool
static · iOS 7.0+

canSendSubject

TypeScript
static canSendSubject(): Promise<boolean>
Swift declaration
class func canSendSubject() -> Bool
static · iOS 4.0+

canSendText

TypeScript
static canSendText(): Promise<boolean>
Swift declaration
class func canSendText() -> Bool
static · iOS 7.0+

isSupportedAttachmentUTI

TypeScript
static isSupportedAttachmentUTI(uti: string): Promise<boolean>
Swift declaration
class func isSupportedAttachmentUTI(_ uti: String) -> Bool
method · iOS 7.0+

addAttachmentData

TypeScript
addAttachmentData(attachmentData: ArrayBuffer, uti: string, filename: string): Promise<boolean>
Swift declaration
func addAttachmentData(_ attachmentData: Data, typeIdentifier uti: String, filename: String) -> Bool
method · iOS 7.0+

addAttachmentURL

TypeScript
addAttachmentURL(attachmentURL: string, alternateFilename?: (string) | null): Promise<boolean>
Swift declaration
func addAttachmentURL(_ attachmentURL: URL, withAlternateFilename alternateFilename: String?) -> Bool
method · iOS 7.0+

disableUserAttachments

TypeScript
disableUserAttachments(): Promise<void>
Swift declaration
func disableUserAttachments()
init

init

TypeScript
static init(): Promise<MFMessageComposeViewController>
Swift declaration
init()
method · iOS 16.0+

insertCollaborationItemProvider

TypeScript
insertCollaborationItemProvider(itemProvider: _Foundation_NSItemProvider): Promise<boolean>
Swift declaration
func insertCollaborationItemProvider(_ itemProvider: NSItemProvider) -> Bool
get · iOS 7.0+

attachments

TypeScript
get attachments(): Promise<(Array<NativeMap<unknown, unknown>>) | null>
Swift declaration
var attachments: [[AnyHashable : Any]]? { get }
get · iOS 4.0+

body

TypeScript
get body(): Promise<(string) | null>
Swift declaration
var body: String? { get set }
set · iOS 4.0+

body

TypeScript
setBody(value?: (string) | null): Promise<void>
Swift declaration
var body: String? { get set }
get · iOS 4.0+

messageComposeDelegate

TypeScript
get messageComposeDelegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var messageComposeDelegate: (any MFMessageComposeViewControllerDelegate)? { get set }
set · iOS 4.0+

messageComposeDelegate

TypeScript
setMessageComposeDelegate(value?: (Implements<MFMessageComposeViewControllerDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var messageComposeDelegate: (any MFMessageComposeViewControllerDelegate)? { get set }
get · iOS 4.0+

recipients

TypeScript
get recipients(): Promise<(Array<string>) | null>
Swift declaration
var recipients: [String]? { get set }
set · iOS 4.0+

recipients

TypeScript
setRecipients(value?: (Array<string>) | null): Promise<void>
Swift declaration
var recipients: [String]? { get set }
get · iOS 7.0+

subject

TypeScript
get subject(): Promise<(string) | null>
Swift declaration
var subject: String? { get set }
set · iOS 7.0+

subject

TypeScript
setSubject(value?: (string) | null): Promise<void>
Swift declaration
var subject: String? { get set }

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MFMessageComposeViewController.message

The iOS SDK compiler rejected this binding: reference to member 'message' cannot be resolved without a contextual type

MFMessageComposeViewController.message

The iOS SDK compiler rejected this binding: value of type 'MFMessageComposeViewController' has no member 'message'

All MessageUI types →