Android.Telephony.SmsMessage.CalculateLength Method
Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message, given the current encoding.

Syntax

[Android.Runtime.Register("calculateLength", "(Ljava/lang/String;Z)[I", "")]
public static int[] CalculateLength (string messageBody, bool use7bitOnly)

Parameters

messageBody
the message to encode
use7bitOnly
if true, characters that are not part of the radio specific (GSM / CDMA) alphabet encoding are converted to as a single space characters. If false, a messageBody containing non-GSM or non-CDMA alphabet characters are encoded using 16-bit encoding.

Returns

Documentation for this section has not yet been entered.

Remarks

Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message, given the current encoding.

[Android Documentation]

Requirements

Namespace: Android.Telephony
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4