:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/../../GodotApplePlugins/doc_classes/GKGameCenterViewController.xml. .. _class_GKGameCenterViewController: GKGameCenterViewController ========================== **Inherits:** :ref:`RefCounted` **<** :ref:`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. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`show_achievement`\ (\ id\: :ref:`String`\ ) |static| | +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`show_leaderboard`\ (\ leaderboard\: :ref:`GKLeaderboard`, scope\: :ref:`int`\ ) |static| | +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`show_leaderboard_time_period`\ (\ id\: :ref:`String`, scope\: :ref:`int`, timeScope\: :ref:`int`\ ) |static| | +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`show_leaderboardset`\ (\ id\: :ref:`String`\ ) |static| | +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`show_player`\ (\ player\: :ref:`GKPlayer`\ ) |static| | +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`show_type`\ (\ type\: :ref:`int`\ ) |static| | +--------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Enumerations ------------ .. _enum_GKGameCenterViewController_State: .. rst-class:: classref-enumeration enum **State**: :ref:`🔗` .. _class_GKGameCenterViewController_constant_defaultScreen: .. rst-class:: classref-enumeration-constant :ref:`State` **defaultScreen** = ``0`` The default screen. .. _class_GKGameCenterViewController_constant_leaderboards: .. rst-class:: classref-enumeration-constant :ref:`State` **leaderboards** = ``1`` The leaderboard sets or leaderboards if there are no sets. .. _class_GKGameCenterViewController_constant_achievements: .. rst-class:: classref-enumeration-constant :ref:`State` **achievements** = ``2`` The list of achievement. .. _class_GKGameCenterViewController_constant_localPlayerProfile: .. rst-class:: classref-enumeration-constant :ref:`State` **localPlayerProfile** = ``3`` The local player .. _class_GKGameCenterViewController_constant_dashboard: .. rst-class:: classref-enumeration-constant :ref:`State` **dashboard** = ``4`` The dashboard. .. _class_GKGameCenterViewController_constant_localPlayerFriendsList: .. rst-class:: classref-enumeration-constant :ref:`State` **localPlayerFriendsList** = ``5`` The friends list. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_GKGameCenterViewController_method_show_achievement: .. rst-class:: classref-method |void| **show_achievement**\ (\ id\: :ref:`String`\ ) |static| :ref:`🔗` Presents an achivement to the user, the id is the identifier of the achievement. .. rst-class:: classref-item-separator ---- .. _class_GKGameCenterViewController_method_show_leaderboard: .. rst-class:: classref-method |void| **show_leaderboard**\ (\ leaderboard\: :ref:`GKLeaderboard`, scope\: :ref:`int`\ ) |static| :ref:`🔗` Shows a leaderboard with the players on the specified scope. Use one of the :ref:`PlayerScope` values. .. rst-class:: classref-item-separator ---- .. _class_GKGameCenterViewController_method_show_leaderboard_time_period: .. rst-class:: classref-method |void| **show_leaderboard_time_period**\ (\ id\: :ref:`String`, scope\: :ref:`int`, timeScope\: :ref:`int`\ ) |static| :ref:`🔗` Shows a leaderboard with the players on the specified scope and the time period. The scope should match :ref:`PlayerScope` and the time scope should match :ref:`TimeScope`. .. rst-class:: classref-item-separator ---- .. _class_GKGameCenterViewController_method_show_leaderboardset: .. rst-class:: classref-method |void| **show_leaderboardset**\ (\ id\: :ref:`String`\ ) |static| :ref:`🔗` Shows a specific leaderboard set. .. rst-class:: classref-item-separator ---- .. _class_GKGameCenterViewController_method_show_player: .. rst-class:: classref-method |void| **show_player**\ (\ player\: :ref:`GKPlayer`\ ) |static| :ref:`🔗` Shows the specified player's GameCenter profile. .. rst-class:: classref-item-separator ---- .. _class_GKGameCenterViewController_method_show_type: .. rst-class:: classref-method |void| **show_type**\ (\ type\: :ref:`int`\ ) |static| :ref:`🔗` Used to present one of the different Game Center dashboards specified by the type parameter. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`