PurchasePremiumCapabilityResult Enum
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.
Specifies the outcome of a premium network capability purchase request.
public enum PurchasePremiumCapabilityResult
type PurchasePremiumCapabilityResult =
- Inheritance
-
PurchasePremiumCapabilityResult
Fields
| Name | Value | Description |
|---|---|---|
| Success | 1 | Purchase premium capability request was successful. Once the purchase result is successful, the network must set up a slicing configuration for the purchased premium capability within the timeout specified by KeyPremiumCapabilityNetworkSetupTimeMillisLong. During the setup time, subsequent attempts will return PendingNetworkSetup. After setup is complete, subsequent attempts will return AlreadyPurchased until the boost expires. The expiry time is determined by the type or duration of boost purchased from the carrier, provided at KeyPremiumCapabilityPurchaseUrlString. Android reference for 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. |
| Throttled | 2 | Purchase premium capability failed because the request is throttled. If purchasing premium capabilities is throttled, it will be for the amount of time specified by KeyPremiumCapabilityPurchaseConditionBackoffHysteresisTimeMillisLong. If displaying the performance boost notification is throttled, it will be for the amount of time specified by KeyPremiumCapabilityNotificationBackoffHysteresisTimeMillisLong. We will show the performance boost notification to the user up to the daily and monthly maximum number of times specified by KeyPremiumCapabilityMaximumDailyNotificationCountInt and KeyPremiumCapabilityMaximumMonthlyNotificationCountInt. Subsequent attempts will return the same error until the request is no longer throttled or throttling conditions change. 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. |
| AlreadyPurchased | 3 | Purchase premium capability failed because it is already purchased and available. Subsequent attempts will return the same error until the performance boost expires. 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. |
| AlreadyInProgress | 4 | Purchase premium capability failed because a request was already made and is in progress. This may have been requested by either the same app or another app. Subsequent attempts will return the same error until the previous request completes. 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. |
| NotForeground | 5 | Purchase premium capability failed because the requesting application is not in the foreground. Subsequent attempts will return the same error until the requesting application moves to the foreground. 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. |
| UserCanceled | 6 | Purchase premium capability failed because the user canceled the operation. Subsequent attempts will be throttled for the amount of time specified by KeyPremiumCapabilityNotificationBackoffHysteresisTimeMillisLong and return Throttled. 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. |
| CarrierDisabled | 7 | Purchase premium capability failed because the carrier disabled or does not support the capability, as specified in KeySupportedPremiumCapabilitiesIntArray. Subsequent attempts will return the same error until the carrier enables the feature. 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. |
| CarrierError | 8 | Purchase premium capability failed because the carrier app did not indicate success. Subsequent attempts will be throttled for the amount of time specified by KeyPremiumCapabilityPurchaseConditionBackoffHysteresisTimeMillisLong and return Throttled. 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. |
| Timeout | 9 | Purchase premium capability failed because we did not receive a response from the user for the performance boost notification within the time specified by KeyPremiumCapabilityNotificationDisplayTimeoutMillisLong. The performance boost notification will be automatically dismissed and subsequent attempts will be throttled for the amount of time specified by KeyPremiumCapabilityNotificationBackoffHysteresisTimeMillisLong and return Throttled. Android reference for 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. |
| FeatureNotSupported | 10 | Purchase premium capability failed because the device does not support the feature. Subsequent attempts will return the same error. 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. |
| RequestFailed | 11 | Purchase premium capability failed because the telephony service is unavailable or there was an error in the phone process. Subsequent attempts will return the same error until request conditions are satisfied. 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. |
| NetworkNotAvailable | 12 | Purchase premium capability failed because the network is not available. Subsequent attempts will return the same error until network conditions change. 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. |
| EntitlementCheckFailed | 13 | Purchase premium capability failed because the entitlement check failed. Subsequent attempts will be throttled for the amount of time specified by KeyPremiumCapabilityPurchaseConditionBackoffHysteresisTimeMillisLong and return Throttled. Throttling will be reevaluated when the network is no longer congested. 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. |
| NotDefaultDataSubscription | 14 | Purchase premium capability failed because the request was not made on the default data subscription, indicated by DefaultDataSubscriptionId. Subsequent attempts will return the same error until the request is made on the default data subscription. 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. |
| PendingNetworkSetup | 15 | Purchase premium capability was successful and is waiting for the network to setup the slicing configuration. If the setup is complete within the time specified by KeyPremiumCapabilityNetworkSetupTimeMillisLong, subsequent requests will return AlreadyPurchased until the purchase expires. If the setup is not complete within the time specified above, applications can request the premium capability again. 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. |
| UserDisabled | 16 | Purchase premium capability failed because the user disabled the feature. Subsequent attempts will be throttled for the amount of time specified by KeyPremiumCapabilityNotificationBackoffHysteresisTimeMillisLong and return Throttled. 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. |
Remarks
The result can report successful purchase or a reason that the request could not complete.