Message
The Messages composer
Opens the system composer prefilled and blocks until it closes, returning "sent", "cancelled" or "failed". In-app only, and isAvailable is also false on a device that cannot send messages.
Properties
isAvailableBooleanFalse in a widget, or where the device can't send texts.
Methods
Message.compose(options)StringRecipients take a string or an array.
- options Any required
- to [String]
Recipients.
- body String
The message.
- to [String]
Examples
Texting a result
if (Message.isAvailable) {
Message.compose({ to: "+15551234", body: "On my way" });
}