@gphone/sdk
    Preparing search index...

    Function useHighscores

    • OS Service Hook for the shared, cross-game leaderboard table.

      Returns {
          getLeaderboard: (app: string) => Promise<LeaderboardEntry[]>;
          submitScore: (app: string, score: number) => Promise<void>;
      }

      • getLeaderboard: (app: string) => Promise<LeaderboardEntry[]>
      • submitScore: (app: string, score: number) => Promise<void>

        Fire-and-forget: a failed submit must never block the game-over screen.