Share via


CarrierMessagingService.OnSendDataSms Method

Definition

Overloads

OnSendDataSms(Byte[], Int32, String, Int32, CarrierMessagingService+IResultCallback)

Override this method to intercept binary SMSs sent from the device.

OnSendDataSms(Byte[], Int32, String, Int32, Int32, CarrierMessagingService+IResultCallback)

Override this method to intercept binary SMSs sent from the device.

OnSendDataSms(Byte[], Int32, String, Int32, CarrierMessagingService+IResultCallback)

Override this method to intercept binary SMSs sent from the device.

[Android.Runtime.Register("onSendDataSms", "([BILjava/lang/String;ILandroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendDataSms_arrayBILjava_lang_String_ILandroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=22)]
public virtual void OnSendDataSms (byte[] data, int subId, string destAddress, int destPort, Android.Service.Carrier.CarrierMessagingService.IResultCallback callback);
[<Android.Runtime.Register("onSendDataSms", "([BILjava/lang/String;ILandroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendDataSms_arrayBILjava_lang_String_ILandroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=22)>]
abstract member OnSendDataSms : byte[] * int * string * int * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit
override this.OnSendDataSms : byte[] * int * string * int * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit

Parameters

data
Byte[]

the binary content

subId
Int32

SMS subscription ID of the SIM

destAddress
String

phone number of the recipient of the message

destPort
Int32

the destination port

callback
CarrierMessagingService.IResultCallback

result callback. Call with a SendSmsResult.

Attributes

Remarks

Java documentation for android.service.carrier.CarrierMessagingService.onSendDataSms(byte[], int, java.lang.String, int, int, android.service.carrier.ResultCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OnSendDataSms(Byte[], Int32, String, Int32, Int32, CarrierMessagingService+IResultCallback)

Override this method to intercept binary SMSs sent from the device.

[Android.Runtime.Register("onSendDataSms", "([BILjava/lang/String;IILandroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendDataSms_arrayBILjava_lang_String_IILandroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=23)]
public virtual void OnSendDataSms (byte[] data, int subId, string destAddress, int destPort, int sendSmsFlag, Android.Service.Carrier.CarrierMessagingService.IResultCallback callback);
[<Android.Runtime.Register("onSendDataSms", "([BILjava/lang/String;IILandroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendDataSms_arrayBILjava_lang_String_IILandroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=23)>]
abstract member OnSendDataSms : byte[] * int * string * int * int * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit
override this.OnSendDataSms : byte[] * int * string * int * int * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit

Parameters

data
Byte[]

the binary content

subId
Int32

SMS subscription ID of the SIM

destAddress
String

phone number of the recipient of the message

destPort
Int32

the destination port

sendSmsFlag
Int32

Flag for sending SMS. Acceptable values are 0 and #SEND_FLAG_REQUEST_DELIVERY_STATUS.

callback
CarrierMessagingService.IResultCallback

result callback. Call with a SendSmsResult.

Attributes

Remarks

Java documentation for android.service.carrier.CarrierMessagingService.onSendDataSms(byte[], int, java.lang.String, int, int, android.service.carrier.ResultCallback).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to