Package com.yandex.runtime.image

Class AnimatedImageProvider

java.lang.Object
    ↳ com.yandex.runtime.image.AnimatedImageProvider

abstract class AnimatedImageProvider

Provides the animated image data.

Summary

Constructors

Signature and Description

AnimatedImageProvider()

Methods

Type and modifiers

Method and Description

abstract java.lang.String

getId()
Returns the unique identifier for the image.

abstract java.lang.Object

getImage()
Returns an animated image data buffer.

static AnimatedImageProvider

fromByteArray(byte[] image)
Returns an animated image provider based on the given data.

static AnimatedImageProvider

fromResource(android.content.Context context,
             int resourceId)

Returns an animated image provider based on a given resource.

static AnimatedImageProvider

fromAsset(android.content.Context context,
          java.lang.String assetName)

Returns an animated image provider based on a given asset (from the assets/ directory).

static AnimatedImageProvider

fromFile(java.lang.String fileName)
Returns an animated image provider based on an image file from the internal storage.

static AnimatedImageProvider

fromAnimatedImage(AnimatedImage image)
Returns an animated image provider.

Constuctors

AnimatedImageProvider

AnimatedImageProvider()


Methods

getId

java.lang.String getId()

Returns the unique identifier for the image.

Providers can be cached based on it.


getImage

java.lang.Object getImage()

Returns an animated image data buffer.


fromByteArray

AnimatedImageProvider fromByteArray(byte[] image)

Returns an animated image provider based on the given data.

Supports only APNG format.


fromResource

AnimatedImageProvider fromResource(android.content.Context context,
                                   int resourceId)

Returns an animated image provider based on a given resource.

Supports only APNG format.


fromAsset

AnimatedImageProvider fromAsset(android.content.Context context,
                                java.lang.String assetName)

Returns an animated image provider based on a given asset (from the assets/ directory).

Supports only APNG format.


fromFile

AnimatedImageProvider fromFile(java.lang.String fileName)

Returns an animated image provider based on an image file from the internal storage.

Supports only APNG format.


fromAnimatedImage

AnimatedImageProvider fromAnimatedImage(AnimatedImage image)

Returns an animated image provider.


Предыдущая
Следующая