public final class

SmsManager

extends Object
java.lang.Object
   ↳ com.neomades.io.sms.SmsManager

Class Overview

Manages SMS operations such as sending data, text, and pdu SMS messages.

To use this class, the SEND_SMS permission must be declared in the URS file.

Get this object by calling the static method getDefault().

Summary

Public Methods
static SmsManager getDefault()
Get the default instance of the SmsManager.
void send(Message message)
Send a SMS.
void send(Message message, SmsResultListener resultListener)
Send a SMS.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static SmsManager getDefault ()

Get the default instance of the SmsManager.

Returns
  • the default instance of the SmsManager

public void send (Message message)

Send a SMS.

Parameters
message message to send
Throws
IllegalArgumentException if the message parameter is not a TextMessage

public void send (Message message, SmsResultListener resultListener)

Send a SMS.

Parameters
message message to send
resultListener callback to listen result of message sending
Throws
IllegalArgumentException if the message parameter is not a TextMessage