MediaRoute2Info.Builder.SetType(MediaRoute2Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: Unknown BuiltinSpeaker WiredHeadset WiredHeadphones BluetoothA2dp Hdmi HdmiArc HdmiEarc LineDigital LineAnalog AuxLine UsbDevice UsbAccessory Dock UsbHeadset HearingAid BleHeadset MultichannelSpeakerGroup RemoteTv RemoteSpeaker RemoteAudioVideoReceiver RemoteTablet RemoteTabletDocked RemoteComputer RemoteGameConsole RemoteCar RemoteSmartwatch RemoteSmartphone Group
Returns
A route builder with the supplied route type recorded.
- 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.