Share via


TelephonyManager.IsPremiumCapabilityAvailableForPurchase Method

Definition

Check whether the given premium capability is available for purchase from the carrier.

[Android.Runtime.Register("isPremiumCapabilityAvailableForPurchase", "(I)Z", "GetIsPremiumCapabilityAvailableForPurchase_IHandler", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.READ_BASIC_PHONE_STATE")]
public virtual bool IsPremiumCapabilityAvailableForPurchase (Android.Telephony.PremiumCapability capability);
[<Android.Runtime.Register("isPremiumCapabilityAvailableForPurchase", "(I)Z", "GetIsPremiumCapabilityAvailableForPurchase_IHandler", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.READ_BASIC_PHONE_STATE")>]
abstract member IsPremiumCapabilityAvailableForPurchase : Android.Telephony.PremiumCapability -> bool
override this.IsPremiumCapabilityAvailableForPurchase : Android.Telephony.PremiumCapability -> bool

Parameters

capability
PremiumCapability

The premium capability to check.

Returns

Whether the given premium capability is available to purchase.

Attributes

Remarks

Check whether the given premium capability is available for purchase from the carrier. If this is true, the capability can be purchased from the carrier using #purchasePremiumCapability(int, Executor, Consumer).

Java documentation for android.telephony.TelephonyManager.isPremiumCapabilityAvailableForPurchase(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