Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
GameKit.GameCenterView.SetViewState
Sets the view state.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GameKit | 8.5 | Yes | No | No | No | Yes |
MBS( "GameKit.GameCenterView.SetViewState"; ViewState ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| ViewState | The view state to use. Can be Leaderboards, Achievements, Challenges or Default. |
"Leaderboards" |
Result
Returns OK or error.
Description
Sets the 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
Example Databases
Created 5th November 2018, last changed 8th November 2018
GameKit.GameCenterView.SetScriptTrigger - GameKit.GameCenterView.ShowBannerWithTitle
Feedback: Report problem or ask question.
Links
MBS FileMaker blog