public class

MaxReward

extends Object
java.lang.Object
   ↳ com.applovin.mediation.MaxReward

Class Overview

This object represents a reward given to the user.

Summary

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

Constants

public static final int DEFAULT_AMOUNT

This constant represents a amount that is used when no amount is given by the third-party network.

Constant Value: 0 (0x00000000)

public static final String DEFAULT_LABEL

This constant represents a label that is used when a label is not given by the third-party network.

Constant Value: ""

Public Methods

public static MaxReward create (int amount, String label)

Creates an instance of this class with the provided amount and label.

Parameters
amount The amount of this reward. Must be greater than or equal to 0.
label The label or currency of this reward.

public static MaxReward createDefault ()

Creates an instance of this class with the default amount and label.

public final int getAmount ()

Get rewarded amount.

Returns
  • Rewarded amount or @{link DEFAULT_AMOUNT} if none specified.

public final String getLabel ()

Get rewarded label.

Returns
  • Rewarded label or @{link DEFAULT_LABEL} if none specified.

public String toString ()