public final class

ResourceBuilders.ImageResource.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ResourceBuilders.ImageResource.Builder

Overview

Builder for ResourceBuilders.ImageResource

Summary

Constructors
publicBuilder()

Creates an instance of ResourceBuilders.AndroidImageResourceByResId.Builder.

Methods
public ResourceBuilders.ImageResourcebuild()

Builds an instance from accumulated values.

public ResourceBuilders.ImageResource.BuildersetAndroidAnimatedResourceByResId(ResourceBuilders.AndroidAnimatedImageResourceByResId androidAnimatedResourceByResId)

Sets a non-seekable animated image resource that maps to an Android drawable by resource ID.

public ResourceBuilders.ImageResource.BuildersetAndroidResourceByResId(ResourceBuilders.AndroidImageResourceByResId androidResourceByResId)

Sets an image resource that maps to an Android drawable by resource ID.

public ResourceBuilders.ImageResource.BuildersetAndroidSeekableAnimatedResourceByResId(ResourceBuilders.AndroidSeekableAnimatedImageResourceByResId androidSeekableAnimatedResourceByResId)

Sets a seekable animated image resource that maps to an Android drawable by resource ID.

public ResourceBuilders.ImageResource.BuildersetInlineResource(ResourceBuilders.InlineImageResource inlineResource)

Sets an image resource that contains the image data inline.

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

Constructors

public Builder()

Creates an instance of ResourceBuilders.AndroidImageResourceByResId.Builder.

Methods

public ResourceBuilders.ImageResource.Builder setAndroidResourceByResId(ResourceBuilders.AndroidImageResourceByResId androidResourceByResId)

Sets an image resource that maps to an Android drawable by resource ID.

Sets an image resource that contains the image data inline.

public ResourceBuilders.ImageResource.Builder setAndroidAnimatedResourceByResId(ResourceBuilders.AndroidAnimatedImageResourceByResId androidAnimatedResourceByResId)

Sets a non-seekable animated image resource that maps to an Android drawable by resource ID. The animation is started with given trigger, fire and forget.

public ResourceBuilders.ImageResource.Builder setAndroidSeekableAnimatedResourceByResId(ResourceBuilders.AndroidSeekableAnimatedImageResourceByResId androidSeekableAnimatedResourceByResId)

Sets a seekable animated image resource that maps to an Android drawable by resource ID. The animation progress is bound to the provided dynamic float.

Builds an instance from accumulated values.