PlaytimeRewardAction
@objcMembers
public final class PlaytimeRewardAction : NSObject, Sendable
Rewarded action representation.
-
Reward action name.
Declaration
Swift
public let name: String? -
Description of the task.
Declaration
Swift
public let taskDescription: String? -
Type of task to complete. Possible values: sequential, bonus, playtime.
Declaration
Swift
public let taskType: String -
Duration (in seconds) of play time required to reward a time-based event. Currently not supported on iOS.
Declaration
Swift
public let playDuration: Int? -
The amount of coins or rewards the user will receive upon completing the event.
Declaration
Swift
public let amount: Int -
Timestamp when a time-based reward was granted (ISO 8601).
Declaration
Swift
public let rewardedAt: String? -
Number of times that the action can be rewarded, applicable to repetitive events.
Declaration
Swift
public let rewardsCount: Int? -
Number of times that the action has been rewarded, applicable to repetitive events.
Declaration
Swift
public let completedRewards: Int? -
Time window (in minutes) during which the Booster reward is applicable.
Declaration
Swift
public let timedCoinsDuration: Int? -
Amount of coins rewarded during the booster period.
Declaration
Swift
public let timedCoins: Int? -
Amount of coins that would be rewarded without any bonuses applied.
Declaration
Swift
public let originalCoins: Int? -
Flag indicating whether the event is a booster event.
Declaration
Swift
public let isTimed: Bool? -
Flag indicating whether the event has been rewarded with promotion.
Declaration
Swift
public let isRewardedForPromotion: Bool? -
The timestamp (ISO 8601) indicating when the booster reward expires.
Use it to determine user eligibility for booster rewards and support features such as booster countdown.
Declaration
Swift
public let boosterExpiresAt: String?
PlaytimeRewardAction Class Reference