Stay organized with collections
Save and categorize content based on your preferences.
DomainVerificationManager
class DomainVerificationManager
System service to access domain verification APIs. Applications should use getDomainVerificationUserState(java.lang.String)
if necessary to check if/how they are verified for a domain, which is required starting from platform android.os.Build.VERSION_CODES#S
in order to open Intent
s which declare Intent#CATEGORY_BROWSABLE
or no category and also match against Intent#CATEGORY_DEFAULT
android.content.IntentFilter
s, either through an explicit declaration of Intent#CATEGORY_DEFAULT
or through the use of android.content.pm.PackageManager#MATCH_DEFAULT_ONLY
, which is usually added for the caller when using Context#startActivity(Intent)
and similar.
Summary
Public methods
getDomainVerificationUserState
fun getDomainVerificationUserState(packageName: String): DomainVerificationUserState?
Retrieve the user state for the given package and the Context
's user.
Parameters |
packageName |
String: The app to query state for. This value cannot be null . |
Return |
DomainVerificationUserState? |
The user selection verification data for the given package for the user, or null if the package does not declare any HTTP/HTTPS domains. |
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 2024-04-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-04-04 UTC.",
"state": ""
}