Package com.jme3.view.surfaceview
Enum Class JmeSurfaceView.DestructionPolicy
java.lang.Object
java.lang.Enum<JmeSurfaceView.DestructionPolicy>
com.jme3.view.surfaceview.JmeSurfaceView.DestructionPolicy
- All Implemented Interfaces:
Serializable
,Comparable<JmeSurfaceView.DestructionPolicy>
,Constable
- Enclosing class:
- JmeSurfaceView
Determines whether the app context would be destructed
with the holder activity context in case of
DESTROY_WHEN_FINISH
or be
spared for a second use in case of KEEP_WHEN_FINISH
.
Default value is : DESTROY_WHEN_FINISH
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFinishes the game context with the activity context (ignores the static memoryJmeSurfaceView.GameState.legacyApplication
).Spares the game context inside a static memoryJmeSurfaceView.GameState.legacyApplication
when the activity context is destroyed, but the app stills in the background. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static JmeSurfaceView.DestructionPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DESTROY_WHEN_FINISH
Finishes the game context with the activity context (ignores the static memoryJmeSurfaceView.GameState.legacyApplication
). -
KEEP_WHEN_FINISH
Spares the game context inside a static memoryJmeSurfaceView.GameState.legacyApplication
when the activity context is destroyed, but the app stills in the background.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-