EventConfig

data class EventConfig(val sequentialActions: List<PlaytimeCampaign.PlaytimeRewardAction>, val bonusActions: List<PlaytimeCampaign.PlaytimeRewardAction>, val timeBasedActions: List<PlaytimeCampaign.PlaytimeRewardAction>, val totalCoinsCollected: Int?, val totalCoinsPossible: Int?, val cashbackReward: PlaytimeCampaign.PlaytimeCashbackConfig?, val multipliersActions: List<PlaytimeCampaign.PlaytimeRewardActionMultiplier>)

Configuration for multi-event rewards.

The class provides detailed information about events and rewards.

Constructors

Link copied to clipboard
constructor(sequentialActions: List<PlaytimeCampaign.PlaytimeRewardAction>, bonusActions: List<PlaytimeCampaign.PlaytimeRewardAction>, timeBasedActions: List<PlaytimeCampaign.PlaytimeRewardAction>, totalCoinsCollected: Int?, totalCoinsPossible: Int?, cashbackReward: PlaytimeCampaign.PlaytimeCashbackConfig?, multipliersActions: List<PlaytimeCampaign.PlaytimeRewardActionMultiplier>)

Properties

Link copied to clipboard

Array of rewarded events that can be completed in any order. These will be bonus rewards a user should get on top of the other rewards.

Link copied to clipboard

Cashback reward configuration for in-app purchases. A missing value means that the feature is not supported for the campaign or the SDK.

Link copied to clipboard

Array of events that multiply the rewards.

Link copied to clipboard

Array of rewarded events that must be completed in the given order. These will usually be progress events a user can reach in a game or app.

Link copied to clipboard

Array of events that are rewarded based on the time played.

Link copied to clipboard

Total coins collected by the user.

Link copied to clipboard

Maximum possible coins for this config.