AndroidProrationMode class Null safety
A list of valid values for ProrationMode parameter https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- DEFERRED → const int
-
Replacement takes effect when the old plan expires, and the new price will be charged at the same time.
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode#DEFERRED
4
- IMMEDIATE_AND_CHARGE_FULL_PRICE → const int
-
Replacement takes effect immediately, and the user is charged full price of new plan and is given a full billing cycle of subscription, plus remaining prorated time from the old plan.
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode#IMMEDIATE_AND_CHARGE_FULL_PRICE
5
- IMMEDIATE_AND_CHARGE_PRORATED_PRICE → const int
-
Replacement takes effect immediately, and the billing cycle remains the same. The price for the remaining period will be charged. This option is only available for subscription upgrade.
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode#immediate_and_charge_prorated_price
2
- IMMEDIATE_WITH_TIME_PRORATION → const int
-
Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. This is the current default behavior.
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode#immediate_with_time_proration
1
- IMMEDIATE_WITHOUT_PRORATION → const int
-
Replacement takes effect immediately, and the new price will be charged on next recurrence time. The billing cycle stays the same.
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode#immediate_without_proration
3
- UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY → const int
-
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode#unknown_subscription_upgrade_downgrade_policy
0