OnItemVisibilityChangedDelegate
@CarProtocol
public interface OnItemVisibilityChangedDelegate
A host-side delegate for sending androidx.car.app.model.ItemList.OnItemVisibilityChangedListener events to the car app.
Summary
Public methods |
|
|---|---|
abstract void |
sendItemVisibilityChanged(Notifies that the items in the list within the specified indices have become visible. |
Public methods
sendItemVisibilityChanged
abstract void sendItemVisibilityChanged(
int startIndex,
int endIndex,
@NonNull OnDoneCallback callback
)
Notifies that the items in the list within the specified indices have become visible.
The start index is inclusive, and the end index is exclusive. For example, if only the first item in a list is visible, the start and end indices would be 0 and 1, respectively.
| Parameters | |
|---|---|
int startIndex |
the index (inclusive) of the first visible element |
int endIndex |
the index (exclusive) of the last visible element |
@NonNull OnDoneCallback callback |
the |