PlaytimeRewardAction

@objcMembers
public final class PlaytimeRewardAction : NSObject

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?