Udostępnij za pośrednictwem


CarrierMessagingService.OnSendTextSms Method

Definition

Overloads

OnSendTextSms(String, Int32, String, CarrierMessagingService+IResultCallback)

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

OnSendTextSms(String, Int32, String, Int32, CarrierMessagingService+IResultCallback)

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

OnSendTextSms(String, Int32, String, CarrierMessagingService+IResultCallback)

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

[Android.Runtime.Register("onSendTextSms", "(Ljava/lang/String;ILjava/lang/String;Landroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendTextSms_Ljava_lang_String_ILjava_lang_String_Landroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=22)]
public virtual void OnSendTextSms (string text, int subId, string destAddress, Android.Service.Carrier.CarrierMessagingService.IResultCallback callback);
[<Android.Runtime.Register("onSendTextSms", "(Ljava/lang/String;ILjava/lang/String;Landroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendTextSms_Ljava_lang_String_ILjava_lang_String_Landroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=22)>]
abstract member OnSendTextSms : string * int * string * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit
override this.OnSendTextSms : string * int * string * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit

Parameters

text
String

the text to send

subId
Int32

SMS subscription ID of the SIM

destAddress
String

phone number of the recipient of the message

callback
CarrierMessagingService.IResultCallback

result callback. Call with a SendSmsResult.

Attributes

Remarks

Java documentation for android.service.carrier.CarrierMessagingService.onSendTextSms(java.lang.String, int, java.lang.String, 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

OnSendTextSms(String, Int32, String, Int32, CarrierMessagingService+IResultCallback)

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

[Android.Runtime.Register("onSendTextSms", "(Ljava/lang/String;ILjava/lang/String;ILandroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendTextSms_Ljava_lang_String_ILjava_lang_String_ILandroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=23)]
public virtual void OnSendTextSms (string text, int subId, string destAddress, int sendSmsFlag, Android.Service.Carrier.CarrierMessagingService.IResultCallback callback);
[<Android.Runtime.Register("onSendTextSms", "(Ljava/lang/String;ILjava/lang/String;ILandroid/service/carrier/CarrierMessagingService$ResultCallback;)V", "GetOnSendTextSms_Ljava_lang_String_ILjava_lang_String_ILandroid_service_carrier_CarrierMessagingService_ResultCallback_Handler", ApiSince=23)>]
abstract member OnSendTextSms : string * int * string * int * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit
override this.OnSendTextSms : string * int * string * int * Android.Service.Carrier.CarrierMessagingService.IResultCallback -> unit

Parameters

text
String

the text to send

subId
Int32

SMS subscription ID of the SIM

destAddress
String

phone number of the recipient of the message

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.onSendTextSms(java.lang.String, int, java.lang.String, 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