# AndroidGame

> Provides methods and properties for accessing different Android game APIs.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Android](/engine/6000.6/script-reference/unityengine/android.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
public static class AndroidGame
```

## Static Properties

| Property                                                                                | Description                                                                                                                                                                                                                                                                                                                                          |
| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GameMode](/engine/6000.6/script-reference/unityengine/android/androidgame/gamemode.md) | Calls [getGameMode()](https://developer.android.com/reference/android/app/GameManager#getGameMode\(\)) in the Android application to retrieve the user selected game mode for the application and returns [AndroidGameMode](/engine/6000.6/script-reference/unityengine/android/androidgamemode.md). Requires API level 31 (Android 12). (Read Only) |

## Static Methods

| Method                                                                                          | Description                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [SetGameState](/engine/6000.6/script-reference/unityengine/android/androidgame/setgamestate.md) | Calls [setGameState()](https://developer.android.com/reference/android/app/GameManager#setGameState\(android.app.GameState\)) in the Android application to specify the loading status. Requires API level 33 (Android 13). |

## Classes

| Class                                                                                                 | Description                                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AndroidGame.Automatic](/engine/6000.6/script-reference/unityengine/android/androidgame/automatic.md) | Provides methods for [Automated game state hinting in Unity](/engine/6000.6/manual/platform-specific/android/developing/optimization/game-state-hinting.md). |
