public static enum JmeSurfaceView.DestructionPolicy extends java.lang.Enum<JmeSurfaceView.DestructionPolicy>
DESTROY_WHEN_FINISH or be
spared for a second use in case of KEEP_WHEN_FINISH.
Default value is : DESTROY_WHEN_FINISH.| Enum Constant and Description |
|---|
DESTROY_WHEN_FINISH
Finishes the game context with the activity context (ignores the static memory
JmeSurfaceView.GameState.legacyApplication). |
KEEP_WHEN_FINISH
Spares the game context inside a static memory
JmeSurfaceView.GameState.legacyApplication
when the activity context is destroyed, but the app stills in the background. |
| Modifier and Type | Method and Description |
|---|---|
static JmeSurfaceView.DestructionPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JmeSurfaceView.DestructionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JmeSurfaceView.DestructionPolicy DESTROY_WHEN_FINISH
JmeSurfaceView.GameState.legacyApplication).public static final JmeSurfaceView.DestructionPolicy KEEP_WHEN_FINISH
JmeSurfaceView.GameState.legacyApplication
when the activity context is destroyed, but the app stills in the background.public static JmeSurfaceView.DestructionPolicy[] values()
for (JmeSurfaceView.DestructionPolicy c : JmeSurfaceView.DestructionPolicy.values()) System.out.println(c);
public static JmeSurfaceView.DestructionPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null