---
title: MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage
framework: messageui
role: symbol
role_heading: Structure
path: messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage
---

# MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage

Message type for text message availability change notifications.

## Declaration

```swift
struct TextMessageAvailabilityDidChangeMessage
```

## Overview

Overview 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.

## Topics

### Initializers

- [init(canSendText:)](messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage/init(cansendtext:).md)

### Instance Properties

- [canSendText](messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage/cansendtext.md)

### Type Aliases

- [MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage.Subject](messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage/subject.md)

### Type Properties

- [name](messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage/name.md)

### Type Methods

- [makeMessage(_:)](messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage/makemessage(_:).md)
- [makeNotification(_:)](messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage/makenotification(_:).md)

## Relationships

### Conforms To

- [NotificationCenter.AsyncMessage](foundation/notificationcenter/asyncmessage.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
