Added in API level 16

MediaRouteButton


open class MediaRouteButton : View
kotlin.Any
   ↳ android.view.View
   ↳ android.app.MediaRouteButton

Summary

Inherited XML attributes
Inherited constants
Public constructors

MediaRouteButton(context: Context!, attrs: AttributeSet!)

MediaRouteButton(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

MediaRouteButton(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open Int

Gets the media route types for filtering the routes that the user can select using the media route chooser dialog.

open Unit

Call Drawable.jumpToCurrentState() on all Drawable objects associated with this view.

open Unit

This is called when the view is attached to a window.

open Unit

This is called when the view is detached from a window.

open Boolean

Call this view's OnClickListener, if it is defined.

open Unit
setContentDescription(contentDescription: CharSequence!)

Sets the View's content description.

open Unit

open Unit

Sets the types of routes that will be shown in the media route chooser dialog launched by this button.

open Unit
setVisibility(visibility: Int)

Set the visibility state of this view.

open Unit

Show the route chooser or controller dialog.

Protected methods
open Unit

This function is called whenever the state of the view changes in such a way that it impacts the state of drawables being shown.

open IntArray!

Generate the new android.graphics.drawable.Drawable state for this view.

open Unit
onDraw(canvas: Canvas)

Implement this to do your drawing.

open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

Measure the view and its content to determine the measured width and the measured height.

open Boolean

If your view subclass is displaying its own Drawable objects, it should override this function and return true for any Drawable it is displaying.

Inherited functions