Tutorials

Classes

ChallengeInstance
Leaderboard
Player

Namespaces

SDK
Challenges
Events
Leaderboards
Players
RestClient
WebClient

Events

ScoreflexChallengeEvent

ScoreflexEvent to indicate the player wants to play a challenge. The game associated with the challenge should be started.

Properties:
Name Type Description
name string

"challenge"

challenge module:Scoreflex.SDK.ChallengeInstance

The Challenge object

Source:

ScoreflexPlayerEvent

ScoreflexEvent to indicate the current player has been set or reset.

Properties:
Name Type Description
name string

"player"

player module:Scoreflex.SDK.Player

The current player

anonymous boolean

"true" if the player is anonymous, "false" otherwise.

Source:
See:

ScoreflexPlayEvent

ScoreflexEvent to indicate the player wants to play a leaderboard. The game associated to the leaderboard should be started.

Properties:
Name Type Description
name string

"play"

leaderboard module:Scoreflex.SDK.Leaderboard

The Leaderboard object

Source:

ScoreflexSessionEvent

ScoreflexEvent to indicate SDK initialization state.

Properties:
Name Type Description
name string

"session"

state module:Scoreflex.SessionState

The sesssion initialization state

Source:
See: