One Logo Pool Ball
MessageUI · IOS API REFERENCE

MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage

struct · iOS 27.0+ · SDK 27.1

struct TextMessageAvailabilityDidChangeMessage

Message type for text message availability change notifications. This notification is posted when the value of `+canSendText` changes, indicating whether the device can send text messages. - Note: This notification may be delivered on any thread. Observers should dispatch to the main actor if needed for UI updates.

Members (6)

static · iOS 27.0+

makeMessage

TypeScript
static makeMessage(notification: _Foundation_Notification): Promise<(MFMessageComposeViewController_TextMessageAvailabilityDidChangeMessage) | null>
Swift declaration
static func makeMessage(_ notification: Notification) -> MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage?

Transform a legacy Notification into a type-safe Message - Parameter notification: The notification to parse - Returns: A Message if the notification contains valid data, nil otherwise

init · iOS 27.0+

init

TypeScript
static init(canSendText: boolean): Promise<MFMessageComposeViewController_TextMessageAvailabilityDidChangeMessage>
Swift declaration
init(canSendText: Bool)

Initialize with text message availability status - Parameter canSendText: Whether text messages can currently be sent

get · iOS 27.0+

canSendText

TypeScript
get canSendText(): Promise<boolean>
Swift declaration
var canSendText: Bool

Whether text messages can be sent on this device

set · iOS 27.0+

canSendText

TypeScript
setCanSendText(value: boolean): Promise<void>
Swift declaration
var canSendText: Bool

Whether text messages can be sent on this device

static · iOS 27.0+

makeNotification

TypeScript
static makeNotification(message: MFMessageComposeViewController_TextMessageAvailabilityDidChangeMessage): Promise<_Foundation_Notification>
Swift declaration
static func makeNotification(_ message: MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage) -> Notification

Transform a type-safe Message into a legacy Notification - Parameter message: The message to convert - Returns: A Notification compatible with Objective-C observers

get · iOS 27.0+

name

TypeScript
static get nameValue(): Promise<_Foundation_NSNotification_Name>
Swift declaration
static var name: Notification.Name { get }

The existing Objective-C notification name

Skipped declarations

No declarations were skipped in this snapshot.

All MessageUI types →