Udostępnij za pośrednictwem


TelecomManager.HandleMmi Method

Definition

Overloads

HandleMmi(String)

Processes the specified dial string as an MMI code.

HandleMmi(String, PhoneAccountHandle)

Processes the specified dial string as an MMI code.

HandleMmi(String)

Processes the specified dial string as an MMI code.

[Android.Runtime.Register("handleMmi", "(Ljava/lang/String;)Z", "GetHandleMmi_Ljava_lang_String_Handler")]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual bool HandleMmi (string? dialString);
[<Android.Runtime.Register("handleMmi", "(Ljava/lang/String;)Z", "GetHandleMmi_Ljava_lang_String_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member HandleMmi : string -> bool
override this.HandleMmi : string -> bool

Parameters

dialString
String

The digits to dial.

Returns

True if the digits were processed as an MMI code, false otherwise.

Attributes

Remarks

Processes the specified dial string as an MMI code. MMI codes are any sequence of characters entered into the dialpad that contain a "*" or "#". Some of these sequences launch special behavior through handled by Telephony. This method uses the default subscription.

Requires that the method-caller be set as the system dialer app.

Java documentation for android.telecom.TelecomManager.handleMmi(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

HandleMmi(String, PhoneAccountHandle)

Processes the specified dial string as an MMI code.

[Android.Runtime.Register("handleMmi", "(Ljava/lang/String;Landroid/telecom/PhoneAccountHandle;)Z", "GetHandleMmi_Ljava_lang_String_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=23)]
[Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")]
public virtual bool HandleMmi (string? dialString, Android.Telecom.PhoneAccountHandle? accountHandle);
[<Android.Runtime.Register("handleMmi", "(Ljava/lang/String;Landroid/telecom/PhoneAccountHandle;)Z", "GetHandleMmi_Ljava_lang_String_Landroid_telecom_PhoneAccountHandle_Handler", ApiSince=23)>]
[<Android.Runtime.RequiresPermission("android.permission.MODIFY_PHONE_STATE")>]
abstract member HandleMmi : string * Android.Telecom.PhoneAccountHandle -> bool
override this.HandleMmi : string * Android.Telecom.PhoneAccountHandle -> bool

Parameters

dialString
String

The digits to dial.

accountHandle
PhoneAccountHandle

The handle for the account the MMI code should apply to.

Returns

True if the digits were processed as an MMI code, false otherwise.

Attributes

Remarks

Processes the specified dial string as an MMI code. MMI codes are any sequence of characters entered into the dialpad that contain a "*" or "#". Some of these sequences launch special behavior through handled by Telephony.

Requires that the method-caller be set as the system dialer app.

Java documentation for android.telecom.TelecomManager.handleMmi(java.lang.String, android.telecom.PhoneAccountHandle).

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