Language

TvInputService.HardwareSession.HardwareInputId Property

Definition

Returns the hardware TV input ID the external device is connected to.

public abstract string? HardwareInputId { [Android.Runtime.Register("getHardwareInputId", "()Ljava/lang/String;", "GetGetHardwareInputIdHandler")] get; }
[<get: Android.Runtime.Register("getHardwareInputId", "()Ljava/lang/String;", "GetGetHardwareInputIdHandler")>]
member this.HardwareInputId : string

Property Value

Returns the hardware TV input ID the external device is connected to.

Attributes

Remarks

Returns the hardware TV input ID the external device is connected to.

TV input is expected to provide R.attr.setupActivity so that the application can launch it before using this TV input. The setup activity may let the user select the hardware TV input to which the external device is connected. The ID of the selected one should be stored in the TV input so that it can be returned here.

Android reference for android.media.tv.TvInputService.HardwareSession.getHardwareInputId.

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