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

open Unit

open Unit

open Boolean

open Unit
setContentDescription(contentDescription: CharSequence!)

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)

open Unit

Show the route chooser or controller dialog.

Protected methods
open Unit

open IntArray!

open Unit
onDraw(canvas: Canvas)

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

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