Type Property

MFMessageComposeViewControllerTextMessageAvailabilityDidChange

Posted when the value returned by the canSendText() class method has changed.

Declaration

static let MFMessageComposeViewControllerTextMessageAvailabilityDidChange: NSNotification.Name

Discussion

Upon receiving this notification, query its userInfo dictionary with the MFMessageComposeViewControllerTextMessageAvailabilityKey key. If the availability of text message sending has changed, your app should invalidate caches and update its user interface as appropriate.

See Also

Handling Notifications

let MFMessageComposeViewControllerTextMessageAvailabilityKey: String

The value of this key is a number object that contains a Boolean value.