belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
Deprecated since version 27.1.0
PlaybackFragmentGlueHost
public
class
PlaybackFragmentGlueHost
extends PlaybackGlueHost
implements
PlaybackSeekUi
java.lang.Object | ||
↳ | android.support.v17.leanback.media.PlaybackGlueHost | |
↳ | android.support.v17.leanback.app.PlaybackFragmentGlueHost |
Known Direct Subclasses |
This class was deprecated
in API level 27.1.0.
use PlaybackSupportFragmentGlueHost
PlaybackGlueHost
implementation
the interaction between this class and PlaybackFragment
.
Summary
Public constructors | |
---|---|
PlaybackFragmentGlueHost(PlaybackFragment fragment)
|
Public methods | |
---|---|
void
|
fadeOut()
This method is deprecated.
Call |
PlaybackGlueHost.PlayerCallback
|
getPlayerCallback()
Implemented by PlaybackGlueHost for responding to player events. |
void
|
hideControlsOverlay(boolean runAnimation)
Hide controls overlay. |
boolean
|
isControlsOverlayAutoHideEnabled()
Returns true if auto hides controls overlay. |
boolean
|
isControlsOverlayVisible()
Returns true if controls overlay is visible, false otherwise. |
void
|
notifyPlaybackRowChanged()
Notifies host about a change so it can update the view. |
void
|
setControlsOverlayAutoHideEnabled(boolean enabled)
Enables or disables controls overlay auto hidden. |
void
|
setHostCallback(PlaybackGlueHost.HostCallback callback)
Sets the host |
void
|
setOnActionClickedListener(OnActionClickedListener listener)
Sets the |
void
|
setOnKeyInterceptListener(View.OnKeyListener onKeyListener)
Sets the |
void
|
setPlaybackRow(Row row)
Sets the |
void
|
setPlaybackRowPresenter(PlaybackRowPresenter presenter)
Sets |
void
|
setPlaybackSeekUiClient(PlaybackSeekUi.Client client)
Interface to be implemented by UI widget to support PlaybackSeekUi. |
void
|
showControlsOverlay(boolean runAnimation)
Show controls overlay. |
Inherited methods | |
---|---|
From
class
android.support.v17.leanback.media.PlaybackGlueHost
| |
From
class
java.lang.Object
| |
From
interface
android.support.v17.leanback.widget.PlaybackSeekUi
|
Public constructors
PlaybackFragmentGlueHost
PlaybackFragmentGlueHost (PlaybackFragment fragment)
Parameters | |
---|---|
fragment |
PlaybackFragment |
Public methods
fadeOut
void fadeOut ()
This method is deprecated.
Call hideControlsOverlay(boolean)
Fades out the playback overlay immediately.
getPlayerCallback
PlaybackGlueHost.PlayerCallback getPlayerCallback ()
Implemented by PlaybackGlueHost for responding to player events. Such as showing a spinning
wheel progress bar when onBufferingStateChanged(boolean)
.
Returns | |
---|---|
PlaybackGlueHost.PlayerCallback |
PlayerEventCallback that Host supports, null if not supported. |
hideControlsOverlay
void hideControlsOverlay (boolean runAnimation)
Hide controls overlay.
Parameters | |
---|---|
runAnimation |
boolean : True to run animation, false otherwise.
|
isControlsOverlayAutoHideEnabled
boolean isControlsOverlayAutoHideEnabled ()
Returns true if auto hides controls overlay.
Returns | |
---|---|
boolean |
True if auto hiding controls overlay. |
isControlsOverlayVisible
boolean isControlsOverlayVisible ()
Returns true if controls overlay is visible, false otherwise.
Returns | |
---|---|
boolean |
True if controls overlay is visible, false otherwise. |
notifyPlaybackRowChanged
void notifyPlaybackRowChanged ()
Notifies host about a change so it can update the view.
setControlsOverlayAutoHideEnabled
void setControlsOverlayAutoHideEnabled (boolean enabled)
Enables or disables controls overlay auto hidden. If enabled, the view will be faded out after a time period.
Parameters | |
---|---|
enabled |
boolean : True to enable auto hidden of controls overlay.
|
setHostCallback
void setHostCallback (PlaybackGlueHost.HostCallback callback)
Sets the host PlaybackGlueHost.HostCallback
callback on the host. This method should only be called
by PlaybackGlue
. App should not directly call this method, app should override
onHostStart()
etc.
Parameters | |
---|---|
callback |
PlaybackGlueHost.HostCallback |
setOnActionClickedListener
void setOnActionClickedListener (OnActionClickedListener listener)
Sets the View.OnClickListener
on this fragment.
Parameters | |
---|---|
listener |
OnActionClickedListener |
setOnKeyInterceptListener
void setOnKeyInterceptListener (View.OnKeyListener onKeyListener)
Sets the View.OnKeyListener
on the host. This would trigger
the listener when a KeyEvent
is unhandled by the host.
Parameters | |
---|---|
onKeyListener |
View.OnKeyListener |
setPlaybackRow
void setPlaybackRow (Row row)
Sets the Row
that represents the information on control items that needs
to be rendered.
Parameters | |
---|---|
row |
Row |
setPlaybackRowPresenter
void setPlaybackRowPresenter (PlaybackRowPresenter presenter)
Sets PlaybackRowPresenter
for rendering the playback controls.
Parameters | |
---|---|
presenter |
PlaybackRowPresenter |
setPlaybackSeekUiClient
void setPlaybackSeekUiClient (PlaybackSeekUi.Client client)
Interface to be implemented by UI widget to support PlaybackSeekUi.
Parameters | |
---|---|
client |
PlaybackSeekUi.Client |
showControlsOverlay
void showControlsOverlay (boolean runAnimation)
Show controls overlay.
Parameters | |
---|---|
runAnimation |
boolean : True to run animation, false otherwise.
|
Interfaces
- BrowseFragment.FragmentHost
- BrowseFragment.MainFragmentAdapterProvider
- BrowseFragment.MainFragmentRowsAdapterProvider
- BrowseSupportFragment.FragmentHost
- BrowseSupportFragment.MainFragmentAdapterProvider
- BrowseSupportFragment.MainFragmentRowsAdapterProvider
- HeadersFragment.OnHeaderClickedListener
- HeadersFragment.OnHeaderViewSelectedListener
- HeadersSupportFragment.OnHeaderClickedListener
- HeadersSupportFragment.OnHeaderViewSelectedListener
- SearchFragment.SearchResultProvider
- SearchSupportFragment.SearchResultProvider
Classes
- BackgroundManager
- BaseFragment
- BaseSupportFragment
- BrandedFragment
- BrandedSupportFragment
- BrowseFragment
- BrowseFragment.BrowseTransitionListener
- BrowseFragment.FragmentFactory
- BrowseFragment.ListRowFragmentFactory
- BrowseFragment.MainFragmentAdapter
- BrowseFragment.MainFragmentAdapterRegistry
- BrowseFragment.MainFragmentRowsAdapter
- BrowseSupportFragment
- BrowseSupportFragment.BrowseTransitionListener
- BrowseSupportFragment.FragmentFactory
- BrowseSupportFragment.ListRowFragmentFactory
- BrowseSupportFragment.MainFragmentAdapter
- BrowseSupportFragment.MainFragmentAdapterRegistry
- BrowseSupportFragment.MainFragmentRowsAdapter
- DetailsFragment
- DetailsFragmentBackgroundController
- DetailsSupportFragment
- DetailsSupportFragmentBackgroundController
- ErrorFragment
- ErrorSupportFragment
- GuidedStepFragment
- GuidedStepSupportFragment
- HeadersFragment
- HeadersSupportFragment
- OnboardingFragment
- OnboardingSupportFragment
- PlaybackFragment
- PlaybackFragmentGlueHost
- PlaybackSupportFragment
- PlaybackSupportFragmentGlueHost
- ProgressBarManager
- RowsFragment
- RowsFragment.MainFragmentAdapter
- RowsFragment.MainFragmentRowsAdapter
- RowsSupportFragment
- RowsSupportFragment.MainFragmentAdapter
- RowsSupportFragment.MainFragmentRowsAdapter
- SearchFragment
- SearchSupportFragment
- VerticalGridFragment
- VerticalGridSupportFragment
- VideoFragment
- VideoFragmentGlueHost
- VideoSupportFragment
- VideoSupportFragmentGlueHost