Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for SuggestedDeviceInfo.
Summary
| Public constructors |
|
Constructor.
|
Public constructors
Builder
Builder(
deviceDisplayName: String,
routeId: String,
type: Int)
Constructor.
| Parameters |
deviceDisplayName |
String: The display name. This value cannot be null. |
routeId |
String: The route ID. This value cannot be null. |
type |
Int: The route type. Value is android.media.MediaRoute2Info#TYPE_UNKNOWN, android.media.MediaRoute2Info#TYPE_BUILTIN_SPEAKER, android.media.MediaRoute2Info#TYPE_WIRED_HEADSET, android.media.MediaRoute2Info#TYPE_WIRED_HEADPHONES, android.media.MediaRoute2Info#TYPE_BLUETOOTH_A2DP, android.media.MediaRoute2Info#TYPE_HDMI, android.media.MediaRoute2Info#TYPE_HDMI_ARC, android.media.MediaRoute2Info#TYPE_HDMI_EARC, android.media.MediaRoute2Info#TYPE_LINE_DIGITAL, android.media.MediaRoute2Info#TYPE_LINE_ANALOG, android.media.MediaRoute2Info#TYPE_AUX_LINE, android.media.MediaRoute2Info#TYPE_USB_DEVICE, android.media.MediaRoute2Info#TYPE_USB_ACCESSORY, android.media.MediaRoute2Info#TYPE_DOCK, android.media.MediaRoute2Info#TYPE_USB_HEADSET, android.media.MediaRoute2Info#TYPE_HEARING_AID, android.media.MediaRoute2Info#TYPE_BLE_HEADSET, android.media.MediaRoute2Info#TYPE_REMOTE_TV, android.media.MediaRoute2Info#TYPE_REMOTE_SPEAKER, android.media.MediaRoute2Info#TYPE_REMOTE_AUDIO_VIDEO_RECEIVER, android.media.MediaRoute2Info#TYPE_REMOTE_TABLET, android.media.MediaRoute2Info#TYPE_REMOTE_TABLET_DOCKED, android.media.MediaRoute2Info#TYPE_REMOTE_COMPUTER, android.media.MediaRoute2Info#TYPE_REMOTE_GAME_CONSOLE, android.media.MediaRoute2Info#TYPE_REMOTE_CAR, android.media.MediaRoute2Info#TYPE_REMOTE_SMARTWATCH, android.media.MediaRoute2Info#TYPE_REMOTE_SMARTPHONE, or android.media.MediaRoute2Info#TYPE_GROUP |
Public methods
build
fun build(): SuggestedDeviceInfo
Creates a new SuggestedDeviceInfo. The device display name, route ID, and type must be set. The extras cannot be null, but default to an empty Bundle.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-09-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-17 UTC."],[],[]]