Compartir a través de


TvInputInfo.ParentId Property

Definition

Returns the parent input ID.

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

Property Value

the ID of the parent input, if exists. Returns null if the parent input is not specified.

Attributes

Remarks

Returns the parent input ID.

A TV input may have a parent input if the TV input is actually a logical representation of a device behind the hardware port represented by the parent input. For example, a HDMI CEC logical device, connected to a HDMI port, appears as another TV input. In this case, the parent input of this logical device is the HDMI port.

Applications may group inputs by parent input ID to provide an easier access to inputs sharing the same physical port. In the example of HDMI CEC, logical HDMI CEC devices behind the same HDMI port have the same parent ID, which is the ID representing the port. Thus applications can group the hardware HDMI port and the logical HDMI CEC devices behind it together using this method.

Java documentation for android.media.tv.TvInputInfo.getParentId().

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