Added in API level 31
DisplayHashManager
class DisplayHashManager
| kotlin.Any | |
| ↳ | android.view.displayhash.DisplayHashManager |
Manages DisplayHash requests. The manager object can be retrieved by calling Context.getSystemService(Context.DISPLAY_HASH_SERVICE)
Summary
| Public methods | |
|---|---|
| MutableSet<String!> |
Get a Set of DisplayHash algorithms that the device supports. |
| VerifiedDisplayHash? |
verifyDisplayHash(displayHash: DisplayHash)Call to verify that the DisplayHash passed in was generated by the system. |
Public methods
getSupportedHashAlgorithms
Added in API level 31
fun getSupportedHashAlgorithms(): MutableSet<String!>
Get a Set of DisplayHash algorithms that the device supports.
| Return | |
|---|---|
MutableSet<String!> |
a String Set of supported hashing algorithms. The String value of one algorithm should be used when requesting to generate the DisplayHash. This value cannot be null. |
verifyDisplayHash
Added in API level 31
fun verifyDisplayHash(displayHash: DisplayHash): VerifiedDisplayHash?
Call to verify that the DisplayHash passed in was generated by the system.
| Parameters | |
|---|---|
displayHash |
DisplayHash: The hash to verify that it was generated by the system. This value cannot be null. |
| Return | |
|---|---|
VerifiedDisplayHash? |
a VerifiedDisplayHash if the hash was generated by the system or null if the hash cannot be verified. |