GameState Constructors
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.
Overloads
| Name | Description |
|---|---|
| GameState(Boolean, Int32) |
Create a GameState with the specified loading status. |
| GameState(Boolean, Int32, Int32, Int32) |
Create a GameState with the given state variables. |
GameState(Boolean, Int32)
Create a GameState with the specified loading status.
[Android.Runtime.Register(".ctor", "(ZI)V", "", ApiSince=33)]
public GameState(bool isLoading, int mode);
[<Android.Runtime.Register(".ctor", "(ZI)V", "", ApiSince=33)>]
new Android.App.GameState : bool * int -> Android.App.GameState
Parameters
- isLoading
- Boolean
boolean: Whether the game is in the loading state.
- mode
- Int32
int: The game state mode of type . Value is one of the following: MODE_UNKNOWN MODE_NONE MODE_GAMEPLAY_INTERRUPTIBLE MODE_GAMEPLAY_UNINTERRUPTIBLE MODE_CONTENT
- Attributes
Remarks
Create a GameState with the specified loading status.
Android reference for android.app.GameState.GameState.
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
GameState(Boolean, Int32, Int32, Int32)
Create a GameState with the given state variables.
[Android.Runtime.Register(".ctor", "(ZIII)V", "", ApiSince=33)]
public GameState(bool isLoading, int mode, int label, int quality);
[<Android.Runtime.Register(".ctor", "(ZIII)V", "", ApiSince=33)>]
new Android.App.GameState : bool * int * int * int -> Android.App.GameState
Parameters
- isLoading
- Boolean
boolean: Whether the game is in the loading state.
- mode
- Int32
int: The game state mode. Value is one of the following: MODE_UNKNOWN MODE_NONE MODE_GAMEPLAY_INTERRUPTIBLE MODE_GAMEPLAY_UNINTERRUPTIBLE MODE_CONTENT
- label
- Int32
int: An optional developer-supplied enum e.g. for the current level.
- quality
- Int32
int: An optional developer-supplied enum, e.g. for the current quality level.
- Attributes
Remarks
Create a GameState with the given state variables.
Android reference for android.app.GameState.GameState.
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.