---
title: MFMessageComposeViewControllerTextMessageAvailabilityKey
framework: messageui
role: symbol
role_heading: Global Variable
path: messageui/mfmessagecomposeviewcontrollertextmessageavailabilitykey
---

# MFMessageComposeViewControllerTextMessageAvailabilityKey

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

## Declaration

```swift
let MFMessageComposeViewControllerTextMessageAvailabilityKey: String
```

## Discussion

Discussion This value matches the result of the canSendText() class method.The userInfo dictionary for the MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification notification includes this key. The value of this key is an NSNumber object that contains a Boolean value. This value matches the result of the canSendText() class method.
