Enum Class JmeSurfaceView.DestructionPolicy

All Implemented Interfaces:
Serializable, Comparable<JmeSurfaceView.DestructionPolicy>, Constable
Enclosing class:

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


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

      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.
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null