FileDocCategorySizeDatePackage
ICarrierMessagingService.javaAPI DocAndroid 5.1 API16196Sat Mar 14 05:48:04 GMT 2015android.service.carrier

ICarrierMessagingService

public interface ICarrierMessagingService implements android.os.IInterface

Note: This service can only be implemented by a carrier privileged app.

hide

Fields Summary
Constructors Summary
Methods Summary
public voiddownloadMms(android.net.Uri pduUri, int subId, android.net.Uri location, android.service.carrier.ICarrierMessagingCallback callback)
Request downloading a new MMS. The service will call {@link ICarrierMessagingCallback#onDownloadMmsComplete} with the download status.

param
pduUri the content provider URI of the PDU to be downloaded.
param
subId SMS subscription ID of the SIM
param
location the URI of the message to be downloaded.
param
callback the callback to notify upon completion

public voidfilterSms(android.service.carrier.MessagePdu pdu, java.lang.String format, int destPort, int subId, android.service.carrier.ICarrierMessagingCallback callback)
Request filtering an incoming SMS message. The service will call callback.onFilterComplete with the filtering result.

param
pdu the PDUs of the message
param
format the format of the PDUs, typically "3gpp" or "3gpp2"
param
destPort the destination port of a data SMS. It will be -1 for text SMS
param
subId SMS subscription ID of the SIM
param
callback the callback to notify upon completion

public voidsendDataSms(byte[] data, int subId, java.lang.String destAddress, int destPort, android.service.carrier.ICarrierMessagingCallback callback)
Request sending a new data SMS from the device. The service will call {@link ICarrierMessagingCallback#onSendSmsComplete} with the send status.

param
data the data to send
param
subId SMS subscription ID of the SIM
param
destAddress phone number of the recipient of the message
param
destPort port number of the recipient of the message
param
callback the callback to notify upon completion

public voidsendMms(android.net.Uri pduUri, int subId, android.net.Uri location, android.service.carrier.ICarrierMessagingCallback callback)
Request sending a new MMS PDU from the device. The service will call {@link ICarrierMessagingCallback#onSendMmsComplete} with the send status.

param
pduUri the content provider URI of the PDU to send
param
subId SMS subscription ID of the SIM
param
location the optional URI to send this MMS PDU. If this is {code null}, the PDU should be sent to the default MMSC URL.
param
callback the callback to notify upon completion

public voidsendMultipartTextSms(java.util.List parts, int subId, java.lang.String destAddress, android.service.carrier.ICarrierMessagingCallback callback)
Request sending a new multi-part text SMS from the device. The service will call {@link ICarrierMessagingCallback#onSendMultipartSmsComplete} with the send status.

param
parts the parts of the multi-part text SMS to send
param
subId SMS subscription ID of the SIM
param
destAddress phone number of the recipient of the message
param
callback the callback to notify upon completion

public voidsendTextSms(java.lang.String text, int subId, java.lang.String destAddress, android.service.carrier.ICarrierMessagingCallback callback)
Request sending a new text SMS from the device. The service will call {@link ICarrierMessagingCallback#onSendSmsComplete} with the send status.

param
text the text to send
param
subId SMS subscription ID of the SIM
param
destAddress phone number of the recipient of the message
param
callback the callback to notify upon completion