Lenguaje

SmsManager.SendMultipartTextMessage Método

Definición

Precaución

deprecated

Enviar un SMS basado en texto de varias partes.

[Android.Runtime.Register("sendMultipartTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V", "")]
[System.Obsolete("deprecated")]
public void SendMultipartTextMessage(string? destinationAddress, string? scAddress, System.Collections.Generic.IList<string>? parts, System.Collections.Generic.IList<Android.App.PendingIntent>? sentIntents, System.Collections.Generic.IList<Android.App.PendingIntent>? deliveryIntents);
[<Android.Runtime.Register("sendMultipartTextMessage", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V", "")>]
[<System.Obsolete("deprecated")>]
member this.SendMultipartTextMessage : string * string * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Android.App.PendingIntent> * System.Collections.Generic.IList<Android.App.PendingIntent> -> unit

Parámetros

destinationAddress
String

dirección a la que se va a enviar el mensaje

scAddress
String

es la dirección del centro de servicio o null para usar el SMSC predeterminado actual.

parts
IList<String>

de ArrayList cadenas que, en orden, componen el mensaje original

sentIntents
IList<PendingIntent>

si no es null, un ArrayList de PendingIntents (uno para cada parte del mensaje) que se transmite cuando se ha enviado la parte de mensaje correspondiente. El código de resultado será Activity.RESULT_OK correcto o uno de estos errores:RESULT_ERROR_RADIO_OFFRESULT_ERROR_GENERIC_FAILURERESULT_ERROR_NULL_PDU . El control SMS basado en aplicación comprueba sentIntent. Si sentIntent es NULL, el autor de la llamada se comprobará en todas las aplicaciones desconocidas, lo que hace que se envíe un número menor de SMS en el período de comprobación.

deliveryIntents
IList<PendingIntent>

si no es null, un ArrayList de PendingIntents (uno para cada parte del mensaje) que se transmite cuando se ha entregado la parte de mensaje correspondiente al destinatario. La pdu sin procesar del informe de estado se encuentra en los datos extendidos ("pdu").

Atributos

Comentarios

Enviar un SMS basado en texto de varias partes. El destinatario debe haber dividido el mensaje en partes de tamaño correcto llamando a divideMessage.

Este miembro está en desuso. Use android.telephony.SmsManager.

Java documentación para android.telephony.gsm.SmsManager.sendMultipartTextMessage(java.lang.String, java.lang.String, java.util.ArrayList<java.lang.String>, java.util.ArrayList<android.app.PendingIntent>, java.util.ArrayList<android.app.PendingIntent>).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a