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 TypeMethodDescriptiondefault GeckoResult<AllowOrDeny> onOrientationLock(int aOrientation) Called whenever the orientation should be locked.default voidCalled whenever the orientation should be unlocked.
-
Method Details
-
onOrientationLock
Called whenever the orientation should be locked.- Parameters:
aOrientation- The desired orientation such as ActivityInfo.SCREEN_ORIENTATION_PORTRAIT- Returns:
- A
GeckoResultwhich resolves to aAllowOrDeny
-
onOrientationUnlock
@Nullable default void onOrientationUnlock()Called whenever the orientation should be unlocked.
-