SASReward

open class SASReward

SASReward is a class that represents a reward object collected after an ad event.

Constructors

Link copied to clipboard
constructor(@NonNull currency: String, amount: Double)
Creates a SASReward instance.
constructor(@NonNull currency: String, amount: Double, @Nullable securedTransactionToken: String, rewardedVideoDuration: Long)
Creates a SASReward instance.

Properties

Link copied to clipboard
The amount of currency to be rewarded.
Link copied to clipboard
The currency of the reward (e.g coins, lives, points…).
Link copied to clipboard
The duration (in milliseconds) of the rewarded video.
Link copied to clipboard
The secured transaction token associated with this reward.

Functions

Link copied to clipboard
open fun isValid(): Boolean
Returns whether this reward is valid
Link copied to clipboard
open fun toString(): String