Language

MediaRoute2Info.Builder.SetType(MediaRoute2Type) Method

Definition

Sets the route's type.

[Android.Runtime.Register("setType", "(I)Landroid/media/MediaRoute2Info$Builder;", "", ApiSince=34)]
public Android.Media.MediaRoute2Info.Builder SetType(Android.Media.MediaRoute2Type type);
[<Android.Runtime.Register("setType", "(I)Landroid/media/MediaRoute2Info$Builder;", "", ApiSince=34)>]
member this.SetType : Android.Media.MediaRoute2Type -> Android.Media.MediaRoute2Info.Builder

Parameters

type
MediaRoute2Type

Value is one of the following: MediaRoute2Info.TYPE_UNKNOWN MediaRoute2Info.TYPE_BUILTIN_SPEAKER MediaRoute2Info.TYPE_WIRED_HEADSET MediaRoute2Info.TYPE_WIRED_HEADPHONES MediaRoute2Info.TYPE_BLUETOOTH_A2DP MediaRoute2Info.TYPE_HDMI MediaRoute2Info.TYPE_HDMI_ARC MediaRoute2Info.TYPE_HDMI_EARC MediaRoute2Info.TYPE_LINE_DIGITAL MediaRoute2Info.TYPE_LINE_ANALOG MediaRoute2Info.TYPE_AUX_LINE MediaRoute2Info.TYPE_USB_DEVICE MediaRoute2Info.TYPE_USB_ACCESSORY MediaRoute2Info.TYPE_DOCK MediaRoute2Info.TYPE_USB_HEADSET MediaRoute2Info.TYPE_HEARING_AID MediaRoute2Info.TYPE_BLE_HEADSET MediaRoute2Info.TYPE_MULTICHANNEL_SPEAKER_GROUP MediaRoute2Info.TYPE_REMOTE_TV MediaRoute2Info.TYPE_REMOTE_SPEAKER MediaRoute2Info.TYPE_REMOTE_AUDIO_VIDEO_RECEIVER MediaRoute2Info.TYPE_REMOTE_TABLET MediaRoute2Info.TYPE_REMOTE_TABLET_DOCKED MediaRoute2Info.TYPE_REMOTE_COMPUTER MediaRoute2Info.TYPE_REMOTE_GAME_CONSOLE MediaRoute2Info.TYPE_REMOTE_CAR MediaRoute2Info.TYPE_REMOTE_SMARTWATCH MediaRoute2Info.TYPE_REMOTE_SMARTPHONE MediaRoute2Info.TYPE_GROUP

Returns

Attributes

Remarks

Sets the route's type.

Android reference for android.media.MediaRoute2Info.Builder.setType.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to