TelephonyManager.PurchasePremiumCapability 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.
Purchase the given premium capability from the carrier.
[Android.Runtime.Register("purchasePremiumCapability", "(ILjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetPurchasePremiumCapability_ILjava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)]
public virtual void PurchasePremiumCapability (Android.Telephony.PremiumCapability capability, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer callback);
[<Android.Runtime.Register("purchasePremiumCapability", "(ILjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetPurchasePremiumCapability_ILjava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)>]
abstract member PurchasePremiumCapability : Android.Telephony.PremiumCapability * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.PurchasePremiumCapability : Android.Telephony.PremiumCapability * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
Parameters
- capability
- PremiumCapability
The premium capability to purchase.
- executor
- IExecutor
The callback executor for the response.
- callback
- IConsumer
The result of the purchase request.
- Attributes
Remarks
Purchase the given premium capability from the carrier. This requires user action to purchase the boost from the carrier. If this returns #PURCHASE_PREMIUM_CAPABILITY_RESULT_SUCCESS
or #PURCHASE_PREMIUM_CAPABILITY_RESULT_ALREADY_PURCHASED
, applications can request the premium capability via ConnectivityManager#requestNetwork
.
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.