Display SDK
7.25.0
androidJvm
Display SDK
/
com.smartadserver.android.library.model
/
SASReward
SASReward
open
class
SASReward
SASReward is a class that represents a reward object collected after an ad event.
Members
Constructors
SASReward
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
amount
Link copied to clipboard
val
amount
:
Double
The amount of currency to be rewarded.
currency
Link copied to clipboard
@
NonNull
@get:
NonNull
val
currency
:
String
The currency of the reward (e.g coins, lives, points…).
rewarded
Video
Duration
Link copied to clipboard
val
rewardedVideoDuration
:
Long
The duration (in milliseconds) of the rewarded video.
secured
Transaction
Token
Link copied to clipboard
@
Nullable
@get:
Nullable
val
securedTransactionToken
:
String
The secured transaction token associated with this reward.
Functions
is
Valid
Link copied to clipboard
open
fun
isValid
(
)
:
Boolean
Returns whether this reward is valid
to
String
Link copied to clipboard
@
NonNull
open
fun
toString
(
)
:
String