TabCallbackDelegate

@CarProtocol
@RequiresCarApi(value = 6)
public interface TabCallbackDelegate


A host-side delegate for sending androidx.car.app.model.TabTemplate.TabCallback events to the car app.

Summary

Public methods

abstract void
sendTabSelected(
    @NonNull String tabContentId,
    @NonNull OnDoneCallback callback
)

Notifies that the user has selected a tab.

Public methods

sendTabSelected

Added in 1.3.0
abstract void sendTabSelected(
    @NonNull String tabContentId,
    @NonNull OnDoneCallback callback
)

Notifies that the user has selected a tab.

Note that the callback relates to UI events and will be executed on the main thread using getMainLooper.

Parameters
@NonNull String tabContentId

the content ID of the selected tab

@NonNull OnDoneCallback callback

the OnDoneCallback to trigger when the client finishes handling the event