TelephonyManager.IsPremiumCapabilityAvailableForPurchase Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
.
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.