GKGameCenterViewControllerยถ
Inherits: RefCounted < Object
This class is used to present the different Game Center dashboards and the way to use it is by calling one of the different static show_* methods in this class in a fire-and-forget mode.
Methodsยถ
void |
show_achievement(id: String) static |
void |
show_leaderboard(leaderboard: GKLeaderboard, scope: int) static |
void |
show_leaderboard_time_period(id: String, scope: int, timeScope: int) static |
void |
show_leaderboardset(id: String) static |
void |
show_player(player: GKPlayer) static |
void |
Enumerationsยถ
enum State: ๐
State defaultScreen = 0
The default screen.
State leaderboards = 1
The leaderboard sets or leaderboards if there are no sets.
State achievements = 2
The list of achievement.
State localPlayerProfile = 3
The local player
State dashboard = 4
The dashboard.
State localPlayerFriendsList = 5
The friends list.
Method Descriptionsยถ
void show_achievement(id: String) static ๐
Presents an achivement to the user, the id is the identifier of the achievement.
void show_leaderboard(leaderboard: GKLeaderboard, scope: int) static ๐
Shows a leaderboard with the players on the specified scope. Use one of the PlayerScope values.
void show_leaderboard_time_period(id: String, scope: int, timeScope: int) static ๐
Shows a leaderboard with the players on the specified scope and the time period. The scope should match PlayerScope and the time scope should match TimeScope.
void show_leaderboardset(id: String) static ๐
Shows a specific leaderboard set.
void show_player(player: GKPlayer) static ๐
Shows the specified playerโs GameCenter profile.
void show_type(type: int) static ๐
Used to present one of the different Game Center dashboards specified by the type parameter.