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

public static enum JmeSurfaceView.DestructionPolicy extends Enum<JmeSurfaceView.DestructionPolicy>
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.
See Also:
  • Enum Constant Details

    • DESTROY_WHEN_FINISH

      public static final JmeSurfaceView.DestructionPolicy DESTROY_WHEN_FINISH
      Finishes the game context with the activity context (ignores the static memory JmeSurfaceView.GameState.legacyApplication).
    • KEEP_WHEN_FINISH

      public static final JmeSurfaceView.DestructionPolicy 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.
  • Method Details

    • values

      public static JmeSurfaceView.DestructionPolicy[] 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

      public static JmeSurfaceView.DestructionPolicy valueOf(String name)
      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 name
      NullPointerException - if the argument is null