| java.lang.Object | |
| ↳ | com.applovin.mediation.MaxReward |
This object represents a reward given to the user.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | DEFAULT_AMOUNT | This constant represents a amount that is used when no amount is given by the third-party network. | |||||||||
| String | DEFAULT_LABEL | This constant represents a label that is used when a label is not given by the third-party network. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static MaxReward |
create(int amount, String label)
Creates an instance of this class with the provided amount and label.
| ||||||||||
| static MaxReward |
createDefault()
Creates an instance of this class with the default amount and label.
| ||||||||||
| final int |
getAmount()
Get rewarded amount.
| ||||||||||
| final String |
getLabel()
Get rewarded label.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This constant represents a amount that is used when no amount is given by the third-party network.
This constant represents a label that is used when a label is not given by the third-party network.
Creates an instance of this class with the provided amount and label.
| amount | The amount of this reward. Must be greater than or equal to 0. |
|---|---|
| label | The label or currency of this reward. |
Creates an instance of this class with the default amount and label.
Get rewarded amount.
Get rewarded label.