Skip to content

Text Message

levching edited this page Apr 15, 2020 · 3 revisions

Before you begin

Code Snippets

Use the following methods of ISN_TextMessage for composing and sending text message.

void Send(string body, string recipient, Action<TextMessageComposeResult> callback = null);
void Send(string body, string recipient, Texture2D image, Action<TextMessageComposeResult> callback = null);
void Send(string body, string recipient, Texture2D[] images, Action<TextMessageComposeResult> callback = null);
void Send(string body, string[] recipients, Action<TextMessageComposeResult> callback = null);
void Send(string body, string[] recipients, Texture2D image, Action<TextMessageComposeResult> callback = null);
void Send(string body, string[] recipients, Texture2D[] images, Action<TextMessageComposeResult> callback = null);

See the sending example below:

using SA.iOS.Social;
...

ISN_TextMessage.Send("Hello Google", "+18773555787", HandleOnTextMessageResult);

void HandleOnTextMessageResult(TextMessageComposeResult result) {
    Debug.Log("Message result: " + result);
}

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally