Language

GameManager.SetGameState(GameState) Method

Definition

Called by games to communicate the current state to the platform.

[Android.Runtime.Register("setGameState", "(Landroid/app/GameState;)V", "", ApiSince=33)]
public void SetGameState(Android.App.GameState gameState);
[<Android.Runtime.Register("setGameState", "(Landroid/app/GameState;)V", "", ApiSince=33)>]
member this.SetGameState : Android.App.GameState -> unit

Parameters

gameState
GameState

An object set to the current state.

Attributes

Remarks

Called by games to communicate the current state to the platform.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.GameManager.setGameState.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to