Class OrientationLockScreen

java.lang.Object
nl.colorize.multimedialib.scene.effect.OrientationLockScreen
All Implemented Interfaces:
Scene

public class OrientationLockScreen extends Object implements Scene
Displays an image and/or message to inform the user to change their device orientation. This can be used for applications that can only be used in landscape mode. The scene will automatically end if the device is changed to landscape orientation.

This class can be used as a standalone scene, meaning that the originally active scene is forcefully interrupted when the device is changed to portait mode. It can also be used as a visual effect, meaning the original scene will continue to play in the background. Which approach should be preferred depends on the type of application.

  • Constructor Details

    • OrientationLockScreen

      public OrientationLockScreen(Graphic2D graphics)
  • Method Details

    • update

      public void update(SceneContext context, float deltaTime)
      Description copied from interface: Scene
      Called during every frame update for as long as the scene is active. deltaTime indicates the elapsed time since the last frame, in seconds.
      Specified by:
      update in interface Scene