-
Notifications
You must be signed in to change notification settings - Fork 1
Text Message
levching edited this page Apr 15, 2020
·
3 revisions
- Make sure That Social API is enabled under the plugin editor settings.
- Make sure, that Texture2D you trying to share is Readable.
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);
}
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Getting Started
- Authentication
- Game Center UI
- Leaderboards
- Default Leaderboard
- Achievements
- Saving A Game
- Access Point
- iTunes Connect Setup
- StoreKit Initialization
- Purchase flow
- Receipt Validation
- Store Review Controller
- Storefront API
- Subscription Offers