All apis of Sms
All
method | description |
---|---|
public static boolean resendFailedSms (long smsId); |
Find the sms from database by the smsId,and send it again.
Params:Return:boolean true:Success adding to the sending queue. false:Fail adding to the sending queue.Supported Products:All |
public static long sendSmsAfterSaved (int from, String to, String content); |
Save sms to database and then add to the sending queue. Saving operation is done at
current thread.
Params:We do not specifically limited the number of characters. But due to AIDL or app memory or database capacity,if the content is too large, it may return false. We recommend the limit size of content is 1024 byte. Return:long >=0:The msgId of the saved sms. <0:Save fail. unable to be added to the sending queue.Supported Products:All |
public static long sendSmsAfterSaved (int from, String to, String group, String content); |
Save sms to database and then add to the sending queue.
Saving operation is done at current thread.
Params:The format of the group is "number1_,number2_,number3..". If the group dose not contain the param "to" or the group can not be parsed,this sms will be added fail. So before calling this method,make sure the input group is right. If the group equals "to",then this api function is same to {@link SmsManagerApi#sendSmsAfterSaved(int, String, String)} We do not specifically limited the number of characters. But due to AIDL or app memory or database capacity,if the content is too large, it may return false. We recommend the limit size of content is 1024 byte. Return:long >=0:The msgId of the saved sms. <0:Save fail.Supported Products:All |
public static boolean addSmsListener (SmsListener smsListener); |
Add smsListener for monitoring sms send result.
Params:Return:boolean true:Success;false:Fail.Supported Products:All |
public static int removeSmsById (long smsId); |
Remove a sms by sms id.
Params:Return:int >= 0 means rows that have been removed; <0 remove fail. |
public static int removeSmsByType (int removeType); |
Remove a sort of SMSs by removeType.
Params:Return:int greater than or equal to 0 means rows that removed, or else means error. |
Member | description |
---|---|
public static final String API |
The tag name of SmsManagerApi,which is used in {@link com.gs.common.client.ApiClient.Builder#addApi(String)} Supported Products:All |