- !<NativePackageDescriptor/98e20902-025b-4800-9b24-a1a21f5fd27e>
  PackagePath: ""
  StudioVersion:
    major: 5
    minor: 3
    patch: 0
    build: 24111410
    type: Unset
  Description: "Leaderboard\nDescription:\nA real-time ranking component that displays user scores, helping users track their progress and compare with friends and users worldwide.\n\nIf friends haven’t played a game, the leaderboard is going to show a fallback placeholder. If the list of friends is big - the leaderboard becomes scrollable. Global leaderboard will show bitmoji stickers and scores among all snapchatters who submitted scores in this leaderboard. Friends leaderboard will only show friends.\n\nChanging of Leaderboard name results in Leaderboard reset.\nDevelopers don’t have access to  Snapchatters' scores/ranks.\n\nAPI:\nvisible: boolean - show if leaderboard is visible\nshow(): void - shows table with scores\nhide(): void - hides table with scores\nsubmitScore(score: number): void - submits score to leaderboard\ngetSideSwitcher(): SideSwitcher - returns SideSwitcher custom component\ninitializeWithOptions(leaderboardInitializationOptions: LeaderboardInitializationOptions): void - initializes leaderboard from code\n\ntype LeaderboardInitializationOptions = \\{\n    name: string\n    userType: UsersType\n    scoreOrdering: OrderingType\n    scoreResetInterval: ScoreResetIntervalOption\n    userLimit: number,\n    useTimer: boolean,\n    leaderboardStartDate?: string //format \"mm/dd/yyyy\"\n\\}\n\nenum ScoreResetIntervalOption \\{\n    Day = 0,\n    Week = 1,\n    Month = 2,\n    Year = 3\n\\}\n\nasync getLeaderboard(): Promise<Leaderboard> - returns Leaderboard object\nasync getCurrentUser(): Promise<SnapchatUser> - returns SnapchatUser object of current user\nasync getCurrentUserBitmoji(): Promise<Texture> - returns texture with current user bitmoji sticker\nAPI Events:\nonLeaderboardRecordsUpdated: Event<LeaderboardRecordsWrapper> - returns UserRecords and UserRecord for current user.\nonShow: Event - is triggered when full leaderboard opened \nonHide: Event - is triggered when full leaderboard closed \n\nAPI Events Usage:\n//@input Component.ScriptComponent Leaderboard\nscript.Leaderboard.onLeaderboardRecordsUpdated.add((leaderboardRecordsWrapper) => \\{\n    print(leaderboardRecordsWrapper.userRecords)\n    print(leaderboardRecordsWrapper.currentUserRecord)\n\\});"
  SvgIcon: "<svg width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.05259 10.6202L9.98973 10.0091L10.2846 12.3909L6.5004 12.8593C6.66657 13.7384 7.04363 14.6453 7.66589 15.3943C8.51016 16.4106 9.86449 17.2111 11.9886 17.2111V19.6111C9.17551 19.6111 7.13555 18.5117 5.81983 16.928C4.53561 15.3821 4 13.449 4 11.8111C4 11.2054 4.45144 10.6946 5.05259 10.6202Z\" fill=\"#D0DAE6\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M26.9474 10.6202L22.0103 10.0091L21.7154 12.3909L25.4996 12.8593C25.3334 13.7384 24.9564 14.6453 24.3341 15.3943C23.4898 16.4106 22.1355 17.2111 20.0114 17.2111V19.6111C22.8245 19.6111 24.8645 18.5117 26.1802 16.928C27.4644 15.3821 28 13.449 28 11.8111C28 11.2054 27.5486 10.6946 26.9474 10.6202Z\" fill=\"#D0DAE6\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17.2 22.6613C17.2 22.1632 17.5297 21.7332 17.9718 21.5038C20.9897 19.9376 23.2 15.0527 23.2 11.2111C23.2 6.97004 22.6986 6.97315 17.5699 7.00492C17.0885 7.0079 16.5664 7.01113 16 7.01113C11.8064 7.01113 10.0553 6.86214 9.32416 7.6544C8.8 8.22235 8.8 9.27404 8.8 11.2111C8.8 15.0527 11.0103 19.9376 14.0282 21.5038C14.4703 21.7332 14.8 22.1632 14.8 22.6613C14.8 23.2902 14.2902 23.8 13.6613 23.8H12.0649C11.5484 23.8 11.0898 24.1305 10.9265 24.6205L10.5265 25.8205C10.2675 26.5975 10.8458 27.4 11.6649 27.4H20.3351C21.1542 27.4 21.7325 26.5975 21.4735 25.8205L21.0735 24.6205C20.9102 24.1305 20.4516 23.8 19.9351 23.8H18.3387C17.7098 23.8 17.2 23.2902 17.2 22.6613Z\" fill=\"#D0DAE6\"/>\n</svg>\n"
  InternalVersion: 4
  VersionMajor: 1
  VersionMinor: 0
  VersionPatch: 0
  UpdateCheckpoint: 50
  ExportUid: a2a3a7fe-07a8-465b-8ba2-0832d6bca80b
  ComponentUid: 32747b76-d3f1-4a92-80d0-fcd5c5cd377b
  CurrentVisibility: Locked
  MaxVisibility: Editable
  Instantiable: !<reference> f35db787-be82-4edc-9413-dc356f19ad1f
  AssetLibraryDependencyStructure: !<AssetLibraryDependencyStructure/00000000-0000-0000-0000-000000000000>
    Name: Leaderboard
    AssetId: 4AguLGhKeotTnF0Nhhofhw
    Hash: d535eed81b9789409ee1bb4f67de4d35
    Version:
      major: 1
      minor: 1
      patch: 0
      build: 0