Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
GameKit.GameCenterView.GetViewState
Queries view state.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
GameKit | 8.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "GameKit.GameCenterView.GetViewState" )
Parameters
none
Result
Returns state or error.
Description
Queries view state.The content displayed by the Game Center controller.
When you first present the Game Center view controller, the content displayed by the view controller is determined by this property. If the player navigates to different content, the view state is automatically updated. For example, to preserve the player’s selections, you can read the viewState property after the screen is dismissed, and set that value the next time you initialize the view controller.
Value can be Default, Leaderboards, Achievements or Challenges.
See also
This function is free to use.
Created 5th November 2018, last changed 8th November 2018
GameKit.GameCenterView.GetLeaderboardTimeScope - GameKit.GameCenterView.Initialize