ErrorSupportFragment
open class ErrorSupportFragment : BrandedSupportFragment
kotlin.Any | ||
↳ | androidx.leanback.app.BrandedSupportFragment | |
↳ | androidx.leanback.app.ErrorSupportFragment |
A fragment for displaying an error indication.
Summary
Public constructors | |
---|---|
<init>() |
Public methods | |
---|---|
open CharSequence! |
Returns the error message. |
open Drawable! |
Returns the background drawable. |
open Drawable! |
Returns the drawable used for the error image. |
open Unit |
setButtonClickListener(clickListener: OnClickListener!) Set the button click listener. |
open Unit |
setDefaultBackground(translucent: Boolean) Sets the default background. |
open Unit |
setMessage(message: CharSequence!) Sets the error message. |
open Unit |
onStart() |
open View! |
onCreateView(inflater: LayoutInflater!, container: ViewGroup!, savedInstanceState: Bundle!) |
open Unit |
setButtonText(text: String!) Sets the button text. |
open Unit |
setImageDrawable(drawable: Drawable!) Sets the drawable to be used for the error image. |
open Boolean |
Returns true if the background is translucent. |
open Unit |
setBackgroundDrawable(drawable: Drawable!) Sets a drawable for the fragment background. |
open OnClickListener! |
Returns the button click listener. |
open String! |
Returns the button text. |
Inherited functions | |
---|---|
Public constructors
<init>
ErrorSupportFragment()
Public methods
getBackgroundDrawable
open fun getBackgroundDrawable(): Drawable!
Returns the background drawable. May be null if a default is used.
getImageDrawable
open fun getImageDrawable(): Drawable!
Returns the drawable used for the error image.
setButtonClickListener
open fun setButtonClickListener(clickListener: OnClickListener!): Unit
Set the button click listener.
Parameters | |
---|---|
clickListener |
OnClickListener!: The click listener for the button. |
setDefaultBackground
open fun setDefaultBackground(translucent: Boolean): Unit
Sets the default background.
Parameters | |
---|---|
translucent |
Boolean: True to set a translucent background. |
setMessage
open fun setMessage(message: CharSequence!): Unit
Sets the error message.
Parameters | |
---|---|
message |
CharSequence!: The error message. |
onStart
open fun onStart(): Unit
onCreateView
open fun onCreateView(inflater: LayoutInflater!, container: ViewGroup!, savedInstanceState: Bundle!): View!
setButtonText
open fun setButtonText(text: String!): Unit
Sets the button text.
Parameters | |
---|---|
text |
String!: The button text. |
setImageDrawable
open fun setImageDrawable(drawable: Drawable!): Unit
Sets the drawable to be used for the error image.
Parameters | |
---|---|
drawable |
Drawable!: The drawable used for the error image. |
isBackgroundTranslucent
open fun isBackgroundTranslucent(): Boolean
Returns true if the background is translucent.
setBackgroundDrawable
open fun setBackgroundDrawable(drawable: Drawable!): Unit
Sets a drawable for the fragment background.
Parameters | |
---|---|
drawable |
Drawable!: The drawable used for the background. |
getButtonClickListener
open fun getButtonClickListener(): OnClickListener!
Returns the button click listener.
Interfaces
- SearchSupportFragment.SearchResultProvider
- SearchFragment.SearchResultProvider
- BrowseFragment.FragmentHost
- BrowseFragment.MainFragmentAdapterProvider
- BrowseFragment.MainFragmentRowsAdapterProvider
- HeadersSupportFragment.OnHeaderClickedListener
- HeadersSupportFragment.OnHeaderViewSelectedListener
- HeadersFragment.OnHeaderClickedListener
- HeadersFragment.OnHeaderViewSelectedListener
- BrowseSupportFragment.FragmentHost
- BrowseSupportFragment.MainFragmentAdapterProvider
- BrowseSupportFragment.MainFragmentRowsAdapterProvider
Classes
- SearchSupportFragment
- BrandedFragment
- BackgroundManager
- DetailsSupportFragmentBackgroundController
- PlaybackFragmentGlueHost
- BrandedSupportFragment
- SearchFragment
- BrowseFragment
- BrowseFragment.BrowseTransitionListener
- BrowseFragment.FragmentFactory
- BrowseFragment.ListRowFragmentFactory
- BrowseFragment.MainFragmentAdapter
- BrowseFragment.MainFragmentAdapterRegistry
- BrowseFragment.MainFragmentRowsAdapter
- PlaybackSupportFragmentGlueHost
- DetailsSupportFragment
- VideoSupportFragmentGlueHost
- ErrorFragment
- BaseFragment
- BaseSupportFragment
- HeadersSupportFragment
- OnboardingFragment
- OnboardingSupportFragment
- VideoFragment
- PlaybackSupportFragment
- VideoFragmentGlueHost
- RowsFragment
- RowsFragment.MainFragmentAdapter
- RowsFragment.MainFragmentRowsAdapter
- VideoSupportFragment
- GuidedStepSupportFragment
- ErrorSupportFragment
- RowsSupportFragment
- RowsSupportFragment.MainFragmentAdapter
- RowsSupportFragment.MainFragmentRowsAdapter
- PlaybackFragment
- DetailsFragmentBackgroundController
- ProgressBarManager
- VerticalGridSupportFragment
- HeadersFragment
- GuidedStepFragment
- BrowseSupportFragment
- BrowseSupportFragment.BrowseTransitionListener
- BrowseSupportFragment.FragmentFactory
- BrowseSupportFragment.ListRowFragmentFactory
- BrowseSupportFragment.MainFragmentAdapter
- BrowseSupportFragment.MainFragmentAdapterRegistry
- BrowseSupportFragment.MainFragmentRowsAdapter
- VerticalGridFragment
- DetailsFragment