TvInputService.HardwareSession.HardwareInputId Property
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.
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.