Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

MessageComposer.canSendText

Checks whether we can send text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
MessageComposer 7.3 No No No No Yes

MBS( "MessageComposer.canSendText" )

Parameters

none

Result

Returns 1, 0 or error.

Description

Checks whether we can send text.
Returns 1 if the user has set up the device for sending text only messages.
If the return value is 1, the client can set the recipients and body of the message.
If the return value is 0, the client may notify the user of the failure, or the client may open an SMS URL via open URL command.

This function can be called before having a composer initialized.

Examples

Check whether message can be send:

Set Variable [ $r ; Value: MBS( "MessageComposer.canSendText" ) ]
If [ $r ≠ 1 ]
    Show Custom Dialog [ "Can't send emails." ; "This iOS device is not configured to send text messages." ]
    Exit Script [ Text Result: "failed" ]
End If

See also


MessageComposer.canSendSubject   -   MessageComposer.disableUserAttachments

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins