TabCallbackDelegate


@CarProtocol
@RequiresCarApi(value = 6)
interface TabCallbackDelegate


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

Summary

Public functions

Unit
sendTabSelected(tabContentId: String, callback: OnDoneCallback)

Notifies that the user has selected a tab.

Public functions

sendTabSelected

Added in 1.3.0
fun sendTabSelected(tabContentId: String, callback: OnDoneCallback): Unit

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
tabContentId: String

the content ID of the selected tab

callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event