Udostępnij za pośrednictwem


SmsManager.DivideMessage(String) Method

Definition

Divide a message text into several fragments, none bigger than the maximum SMS message size.

[Android.Runtime.Register("divideMessage", "(Ljava/lang/String;)Ljava/util/ArrayList;", "")]
public System.Collections.Generic.IList<string>? DivideMessage (string? text);
[<Android.Runtime.Register("divideMessage", "(Ljava/lang/String;)Ljava/util/ArrayList;", "")>]
member this.DivideMessage : string -> System.Collections.Generic.IList<string>

Parameters

text
String

the original message. Must not be null.

Returns

an ArrayList of strings that, in order, comprise the original message.

Attributes

Exceptions

if text is null

Remarks

Divide a message text into several fragments, none bigger than the maximum SMS message size.

Java documentation for android.telephony.SmsManager.divideMessage(java.lang.String).

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