Package org.mozilla.geckoview
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 void
Called 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
GeckoResult
which resolves to aAllowOrDeny
-
onOrientationUnlock
@Nullable default void onOrientationUnlock()Called whenever the orientation should be unlocked.
-