Skip to content
On this page

PostScoreOptions (Interface)

The PostScoreOptions interface defines options for posting a score to a leaderboard or daily challenge.

Fields

FieldTypeDescription
daystring?The day for daily challenges.
typestring?Type of score or challenge.
level_keystring?Key for the level or category.
periodstring?Time period for the score (e.g., daily, weekly).
current_userstring?The current user's identifier.
target_datestring?Target date for the score.
value_formatterstring?Formatter for the score value.
use_dailyboolean?Whether to use daily scoring.
confirmationboolean?Whether confirmation is required.
metaany?Additional metadata for the score.
leaderboardstring?Name of the leaderboard.

Usage

Used when posting scores to leaderboards or daily challenges with additional options.