ResourceResolvers.InlineImageResourceResolver

interface ResourceResolvers.InlineImageResourceResolver

Known direct subclasses
DefaultInlineImageResourceResolver

Resource resolver for inline resources.


Interface that can provide a Drawable for an InlineImageResource

Summary

Public methods

abstract @NonNull ListenableFuture<@NonNull Drawable>

Get the drawable as specified by {@code resource}.

abstract @NonNull Drawable

Should immediately return the drawable specified by {@code resource}.

Public methods

getDrawable

@NonNull
public abstract ListenableFuture<@NonNull DrawablegetDrawable(@NonNull ResourceProto.InlineImageResource resource)

Get the drawable as specified by {@code resource}.

getDrawableOrThrow

@NonNull
public abstract Drawable getDrawableOrThrow(@NonNull ResourceProto.InlineImageResource resource)

Should immediately return the drawable specified by {@code resource}.

Throws
androidx.wear.tiles.renderer.internal.ResourceResolvers.ResourceAccessException

If the drawable cannot be found, or has to be loaded asynchronously.