Added in API level 31

VerifiedDisplayHash

class VerifiedDisplayHash : Parcelable
kotlin.Any
   ↳ android.view.displayhash.VerifiedDisplayHash

The verified display hash used to validate information about what was present on screen.

Summary

Inherited constants
Public constructors
VerifiedDisplayHash(timeMillis: Long, boundsInWindow: Rect, hashAlgorithm: String, imageHash: ByteArray)

Creates a new VerifiedDisplayHash.

Public methods
Int

Rect

The bounds of the requested area to generate the hash.

String

The selected hash algorithm that generated the image hash.

ByteArray

The image hash generated when creating the DisplayHash.

Long

The timestamp when the hash was generated.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<VerifiedDisplayHash!>

Public constructors

VerifiedDisplayHash

Added in API level 31
VerifiedDisplayHash(
    timeMillis: Long,
    boundsInWindow: Rect,
    hashAlgorithm: String,
    imageHash: ByteArray)

Creates a new VerifiedDisplayHash.

Parameters
timeMillis Long: The timestamp when the hash was generated. Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.
boundsInWindow Rect: The bounds of the requested area to generate the hash. This is in window space passed in by the client. This value cannot be null.
hashAlgorithm String: The selected hash algorithm that generated the image hash. This value cannot be null.
imageHash ByteArray: The image hash generated when creating the DisplayHash. This value cannot be null.

Public methods

describeContents

Added in API level 31
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getBoundsInWindow

Added in API level 31
fun getBoundsInWindow(): Rect

The bounds of the requested area to generate the hash. This is in window space passed in by the client.

Return
Rect This value cannot be null.

getHashAlgorithm

Added in API level 31
fun getHashAlgorithm(): String

The selected hash algorithm that generated the image hash.

Return
String This value cannot be null.

getImageHash

Added in API level 31
fun getImageHash(): ByteArray

The image hash generated when creating the DisplayHash.

Return
ByteArray This value cannot be null.

getTimeMillis

Added in API level 31
fun getTimeMillis(): Long

The timestamp when the hash was generated.
Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.

Return
Long Value is a non-negative timestamp measured as the number of milliseconds since 1970-01-01T00:00:00Z.

toString

Added in API level 31
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 31
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 31
static val CREATOR: Parcelable.Creator<VerifiedDisplayHash!>