GameManager.GameMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the user selected game mode for this application.
public int GameMode { [Android.Runtime.Register("getGameMode", "()I", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getGameMode", "()I", "", ApiSince=31)>]
member this.GameMode : int
Property Value
An integer corresponding to a value of GameMode.
- Attributes
Remarks
Return the user selected game mode for this application. An application can use android:isGame="true" or android:appCategory="game" to indicate that the application is a game. If an application is not a game, this property returns the integer value of Unsupported. Developers should call this API every time the application is resumed. If a game's targetSdkVersion is Android 13 or lower, and the game mode is set to Custom, which is available on Android 14 or newer, this property returns the integer value of Standard for backward compatibility.
Android reference for android.app.GameManager.getGameMode.
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.