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

show_type(type: int) static


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.