[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/view/displayhash/DisplayHashManager [Back]  [Original]

DisplayHashManager  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 31

DisplayHashManager


public final class DisplayHashManager
extends Object

java.lang.Object
   ↳ android.view.displayhash.DisplayHashManager


Manages DisplayHash requests. The manager object can be retrieved by calling Context.getSystemService(Context.DISPLAY_HASH_SERVICE)

Summary

Public methods

Set<String> getSupportedHashAlgorithms()

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.

Inherited methods

Public methods

getSupportedHashAlgorithms

Added in API level 31
public Set<String> getSupportedHashAlgorithms ()

Get a Set of DisplayHash algorithms that the device supports.

Returns
Set<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
public VerifiedDisplayHash verifyDisplayHash (DisplayHash displayHash)

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.

Returns
VerifiedDisplayHash a VerifiedDisplayHash if the hash was generated by the system or null if the hash cannot be verified.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page