public final class

ProtoLayoutViewInstance.Config

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.renderer.impl.ProtoLayoutViewInstance.Config

Overview

Config class for ProtoLayoutViewInstance.

Summary

Methods
public booleangetAdaptiveUpdateRatesEnabled()

Returns whether adaptive updates are enabled.

public booleangetAllowLayoutChangingBindsWithoutDefault()

Sets whether a "layout changing" data bind can be applied without the "value_for_layout" field being filled in, or being set to zero / empty.

public booleangetAnimationEnabled()

Returns whether animations are enabled.

public ListeningExecutorServicegetBgExecutorService()

Returns ExecutorService for background tasks.

public java.lang.StringgetClickableIdExtra()

Returns extra used for storing clickable id.

public ProtoLayoutExtensionViewProvidergetExtensionViewProvider()

Returns provider for renderer extension.

public booleangetIsViewFullyVisible()

Returns whether view is fully visible.

public ProtoLayoutViewInstance.LoadActionListenergetLoadActionListener()

Returns listener for load actions.

public LoggingUtilsgetLoggingUtils()

Returns the debug logger.

public java.util.Map<PlatformDataProvider, java.util.Set>getPlatformDataProviders()

Returns the registered platform data providers.

public ProtoLayoutThemegetProtoLayoutTheme()

Returns theme used for this instance.

public ProviderStatsLoggergetProviderStatsLogger()

Returns the provider stats logger used for telemetry.

public ResourcesgetRendererResources()

Returns the Android Resources object for the renderer package.

public ProtoLayoutViewInstance.ResourceResolversProvidergetResourceResolversProvider()

Returns provider for resolving resources.

public intgetRunningAnimationsLimit()

Returns how many animations can be concurrently run.

public StateStoregetStateStore()

Returns state store.

public ContextgetUiContext()

Returns UI Context used for interacting with the UI.

public ListeningExecutorServicegetUiExecutorService()

Returns ExecutorService for UI tasks.

public booleangetUpdatesEnabled()

Returns whether updates are enabled.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public Context getUiContext()

Returns UI Context used for interacting with the UI.

public Resources getRendererResources()

Returns the Android Resources object for the renderer package.

public ProtoLayoutViewInstance.ResourceResolversProvider getResourceResolversProvider()

Returns provider for resolving resources.

public ProtoLayoutTheme getProtoLayoutTheme()

Returns theme used for this instance.

public java.util.Map<PlatformDataProvider, java.util.Set> getPlatformDataProviders()

Returns the registered platform data providers.

public StateStore getStateStore()

Returns state store.

public ProtoLayoutViewInstance.LoadActionListener getLoadActionListener()

Returns listener for load actions.

public ListeningExecutorService getUiExecutorService()

Returns ExecutorService for UI tasks.

public ListeningExecutorService getBgExecutorService()

Returns ExecutorService for background tasks.

public ProtoLayoutExtensionViewProvider getExtensionViewProvider()

Returns provider for renderer extension.

public java.lang.String getClickableIdExtra()

Returns extra used for storing clickable id.

public LoggingUtils getLoggingUtils()

Returns the debug logger.

public ProviderStatsLogger getProviderStatsLogger()

Returns the provider stats logger used for telemetry.

public boolean getAnimationEnabled()

Returns whether animations are enabled.

public int getRunningAnimationsLimit()

Returns how many animations can be concurrently run.

public boolean getUpdatesEnabled()

Returns whether updates are enabled.

public boolean getAdaptiveUpdateRatesEnabled()

Returns whether adaptive updates are enabled.

public boolean getIsViewFullyVisible()

Returns whether view is fully visible.

public boolean getAllowLayoutChangingBindsWithoutDefault()

Sets whether a "layout changing" data bind can be applied without the "value_for_layout" field being filled in, or being set to zero / empty. Defaults to false.

This is to support legacy apps which use layout-changing data bind before the full support was built.