@Document(name = "builtin:ImageObject")
public final class ImageObject extends Thing


Represents an image file.

See http://schema.org/ImageObject for more context.

Summary

Nested types

public final class ImageObject.Builder

Builder for ImageObject.

Public methods

boolean
@Nullable byte[]

Returns the byte representation of this image or video.

@NonNull List<Keyword>

Keywords or tags used to describe some item.

@Nullable String

The SHA-2 SHA256 hash of the content of the item.

@Nullable String

Returns the sha256 for the thumbnail of this image or video.

int

Inherited methods

From androidx.appsearch.builtintypes.Thing
@NonNull List<String>

Returns an unmodifiable list of aliases, if any, for this item.

long

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.

@Nullable String

Returns a description of this item.

int

Returns the intrinsic score (or importance) of this item.

long

Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.

@NonNull String

Returns the unique identifier for this item.

@Nullable String

Returns the URL for an image of this item.

@Nullable String

Returns the name of this item.

@NonNull String

Returns the namespace (or logical grouping) for this item.

@NonNull List<PotentialAction>

Returns the actions that can be taken on this object.

@Nullable String

Returns the deeplink URL of this item.

Public methods

equals

public boolean equals(Object o)

getBytes

Added in 1.1.0-alpha07
public @Nullable byte[] getBytes()

Returns the byte representation of this image or video. Can be a compressed bitmap (e.g. JPEG or PNG).

getKeywords

Added in 1.1.0-alpha07
public @NonNull List<KeywordgetKeywords()

Keywords or tags used to describe some item.

See http://schema.org/keywords for more context.

getSha256

Added in 1.1.0-alpha07
public @Nullable String getSha256()

The SHA-2 SHA256 hash of the content of the item. For example, a zero-length input has value 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'.

See http://schema.org/sha256 for more context.

getThumbnailSha256

Added in 1.1.0-alpha07
public @Nullable String getThumbnailSha256()

Returns the sha256 for the thumbnail of this image or video.

hashCode

public int hashCode()