OnChildSelectedListener
interfaceOnChildSelectedListener
androidx.leanback.widget.OnChildSelectedListener |
Interface for receiving notification when a child of this ViewGroup has been selected.
Summary
Public methods | |
---|---|
abstract Unit |
onChildSelected(parent: ViewGroup!, view: View!, position: Int, id: Long) Callback method to be invoked when a child of this ViewGroup has been selected. |
Public methods
onChildSelected
abstract fun onChildSelected(
parent: ViewGroup!,
view: View!,
position: Int,
id: Long
): Unit
Callback method to be invoked when a child of this ViewGroup has been selected.
Parameters | |
---|---|
parent |
ViewGroup!: The ViewGroup where the selection happened. |
view |
View!: The view within the ViewGroup that is selected, or null if no view is selected. |
position |
Int: The position of the view in the adapter, or NO_POSITION if no view is selected. |
id |
Long: The id of the child that is selected, or NO_ID if no view is selected. |