ImageObject
@Document(name = "builtin:ImageObject")
public final class ImageObject extends Thing
java.lang.Object | ||
↳ | androidx.appsearch.builtintypes.Thing | |
↳ | androidx.appsearch.builtintypes.ImageObject |
Represents an image file.
See http://schema.org/ImageObject for more context.
Summary
Nested types |
---|
public final class ImageObject.Builder Builder for |
Public methods |
|
---|---|
boolean |
|
@Nullable byte[] |
getBytes() 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 |
int |
hashCode() |
Inherited methods |
||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Public methods
getBytes
public @Nullable byte[] getBytes()
Returns the byte representation of this image or video. Can be a compressed bitmap (e.g. JPEG or PNG).
getKeywords
public @NonNull List<Keyword> getKeywords()
Keywords or tags used to describe some item.
See http://schema.org/keywords for more context.
getSha256
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
public @Nullable String getThumbnailSha256()
Returns the sha256
for the thumbnail of this image or video.