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 | toString() | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<VerifiedDisplayHash!> | |
Public constructors
VerifiedDisplayHash
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
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getBoundsInWindow
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
fun getHashAlgorithm(): String
The selected hash algorithm that generated the image hash.
| Return | |
|---|---|
| String | This value cannot be null. | 
getImageHash
fun getImageHash(): ByteArray
The image hash generated when creating the DisplayHash.
| Return | |
|---|---|
| ByteArray | This value cannot be null. | 
getTimeMillis
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
fun toString(): String
| Return | |
|---|---|
| String | a string representation of the object. | 
writeToParcel
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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
