Language

SmsMessage.MessageClass.ValueOf(String) Method

Definition

Returns the SMS message class with the specified Java constant name.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/telephony/gsm/SmsMessage$MessageClass;", "")]
public static Android.Telephony.Gsm.SmsMessage.MessageClass ValueOf(string name);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/telephony/gsm/SmsMessage$MessageClass;", "")>]
static member ValueOf : string -> Android.Telephony.Gsm.SmsMessage.MessageClass

Parameters

name
String

The exact Java constant name: UNKNOWN, CLASS_0, CLASS_1, CLASS_2, or CLASS_3.

Returns

The SMS message class whose Java constant name matches name.

Attributes

Remarks

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