Interface OrientationController.OrientationDelegate

Enclosing class:
OrientationController

@UiThread public static interface OrientationController.OrientationDelegate
This delegate will be called whenever an orientation lock is called.
  • Method Summary

    Modifier and Type
    Method
    Description
    onOrientationLock(int aOrientation)
    Called whenever the orientation should be locked.
    default void
    Called whenever the orientation should be unlocked.
  • Method Details

    • onOrientationLock

      @Nullable default GeckoResult<AllowOrDeny> onOrientationLock(@NonNull int aOrientation)
      Called whenever the orientation should be locked.
      Parameters:
      aOrientation - The desired orientation such as ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
      Returns:
      A GeckoResult which resolves to a AllowOrDeny
    • onOrientationUnlock

      @Nullable default void onOrientationUnlock()
      Called whenever the orientation should be unlocked.