Image

public final class Image


An ad image asset.

Summary

Public constructors

Image(Drawable drawable, @NonNull Uri uri, double scale)

Public methods

final Drawable

The drawable representing the image.

final double

The scale for this image, which denotes the ratio of pixels to dp.

final @NonNull Uri

The URI for this image.

Public constructors

Image

public Image(Drawable drawable, @NonNull Uri uri, double scale)
Parameters
Drawable drawable

The drawable representing the image.

@NonNull Uri uri

The URI for this image.

double scale

The scale for this image, which denotes the ratio of pixels to dp.

Public methods

getDrawable

public final Drawable getDrawable()

The drawable representing the image.

getScale

public final double getScale()

The scale for this image, which denotes the ratio of pixels to dp.

getUri

public final @NonNull Uri getUri()

The URI for this image.