Sdílet prostřednictvím


PhoneNumberUtils.IsVoiceMailNumber(String) Method

Definition

isVoiceMailNumber: checks a given number against the voicemail number provided by the RIL and SIM card.

[Android.Runtime.Register("isVoiceMailNumber", "(Ljava/lang/String;)Z", "")]
public static bool IsVoiceMailNumber (string? number);
[<Android.Runtime.Register("isVoiceMailNumber", "(Ljava/lang/String;)Z", "")>]
static member IsVoiceMailNumber : string -> bool

Parameters

number
String

the number to look up.

Returns

true if the number is in the list of voicemail. False otherwise, including if the caller does not have the permission to read the VM number.

Attributes

Remarks

isVoiceMailNumber: checks a given number against the voicemail number provided by the RIL and SIM card. The caller must have the READ_PHONE_STATE credential.

Java documentation for android.telephony.PhoneNumberUtils.isVoiceMailNumber(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