Package com.castlabs.sdk.playerui
Interface VisibilityController
- All Known Implementing Classes:
DefaultVisibilityController
public interface VisibilityController
Implementations controll the visibility of a view.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hide
(boolean userInteraction) Called when the controlled view should be made invisiblvoid
Call this method when the user starts interacting with the view under control.void
Call this method when the user stopped interacting with the component under control.boolean
void
show
(boolean userInteraction) Called when the controlled view should be made visible
-
Method Details
-
show
void show(boolean userInteraction) Called when the controlled view should be made visible- Parameters:
userInteraction
- Indicates that the call was due to a user interaction
-
hide
void hide(boolean userInteraction) Called when the controlled view should be made invisibl- Parameters:
userInteraction
- Indicates that the call was due to a user interaction
-
isVisible
boolean isVisible()- Returns:
- True if the view is visible or about to become visible, i.e. an animation is running that will make the view visible when finished
-
interactionStarted
void interactionStarted()Call this method when the user starts interacting with the view under control. This should disable for example any auto-hiding function. -
interactionStopped
void interactionStopped()Call this method when the user stopped interacting with the component under control.
-