RootHintsPopulator


@ExperimentalCarApi
public final class RootHintsPopulator


Populates Root hints Bundle for MediaBrowserServiceCompat.BrowserRoot returned in onGetRoot.

RootExtras can be updated after onGetRoot with a call to setExtras.

See also
onGetRoot
setExtras

Summary

Public constructors

Public methods

@NonNull RootHintsPopulator
setAnalyticsOptIn(boolean analyticsOptIn)

Sets analytics opt in state.

@NonNull RootHintsPopulator
setShareOem(boolean shareOem)

Sets flag to share diagnostic analytics with OEM

@NonNull RootHintsPopulator
setSharePlatform(boolean sharePlatform)

Sets flag to share diagnostic analytics with the platform

Public constructors

RootHintsPopulator

Added in 1.7.0-beta02
public RootHintsPopulator(@NonNull Bundle rootHints)

Public methods

setAnalyticsOptIn

Added in 1.7.0-beta02
public @NonNull RootHintsPopulator setAnalyticsOptIn(boolean analyticsOptIn)

Sets analytics opt in state.

Parameters
boolean analyticsOptIn

boolean value indicating opt-in to receive analytics.

setShareOem

Added in 1.7.0-beta02
public @NonNull RootHintsPopulator setShareOem(boolean shareOem)

Sets flag to share diagnostic analytics with OEM

Parameters
boolean shareOem

boolean value indicating opt-in to share diagnostic analytics with OEM.

setSharePlatform

Added in 1.7.0-beta02
public @NonNull RootHintsPopulator setSharePlatform(boolean sharePlatform)

Sets flag to share diagnostic analytics with the platform

Parameters
boolean sharePlatform

boolean value indicating opt-in to share diagnostic analytics with the platform.