Udostępnij za pośrednictwem


ProvisioningManager.GetProvisioningStatusForCapability(Int32, Int32) Method

Definition

Get the provisioning status for the IMS MmTel capability specified.

[Android.Runtime.Register("getProvisioningStatusForCapability", "(II)Z", "GetGetProvisioningStatusForCapability_IIHandler", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")]
public virtual bool GetProvisioningStatusForCapability (int capability, int tech);
[<Android.Runtime.Register("getProvisioningStatusForCapability", "(II)Z", "GetGetProvisioningStatusForCapability_IIHandler", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_PRECISE_PHONE_STATE")>]
abstract member GetProvisioningStatusForCapability : int * int -> bool
override this.GetProvisioningStatusForCapability : int * int -> bool

Parameters

capability
Int32
tech
Int32

Returns

true if the device is provisioned for the capability or does not require provisioning, false if the capability does require provisioning and has not been provisioned yet.

Attributes

Remarks

Get the provisioning status for the IMS MmTel capability specified.

If provisioning is not required for the queried MmTelFeature.MmTelCapabilities.MmTelCapability and ImsRegistrationImplBase.ImsRegistrationTech combination specified, this method will always return true.

Requires Permission: <ul> <li>android.Manifest.permission#READ_PRIVILEGED_PHONE_STATE,</li> <li>android.Manifest.permission#READ_PRECISE_PHONE_STATE,</li> <li>or that the caller has carrier privileges (see TelephonyManager#hasCarrierPrivileges()).</li> </ul>

Java documentation for android.telephony.ims.ProvisioningManager.getProvisioningStatusForCapability(int, int).

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