Add PlayerView.setControllerAnimationEnabled(boolean)

Issue: androidx/media#1227
PiperOrigin-RevId: 619558900
(cherry picked from commit d684cdb330)
This commit is contained in:
ibaker 2024-03-27 09:36:22 -07:00 committed by SheenaChhabra
parent 26ce3f012a
commit 4caed3cfb2

View file

@ -967,6 +967,16 @@ public class PlayerView extends FrameLayout implements AdViewProvider {
}
}
/**
* Sets whether {@linkplain PlayerControlView#isAnimationEnabled() controller animation is
* enabled}.
*/
@UnstableApi
public void setControllerAnimationEnabled(boolean animationEnabled) {
Assertions.checkStateNotNull(controller);
controller.setAnimationEnabled(animationEnabled);
}
/**
* Sets the {@link PlayerControlView.VisibilityListener}.
*