AndroidAppUri Stay organized with collections Save and categorize content based on your preferences.
Represents an Android app URI.
An Android app URI can refer to an Android app or a deep link into an Android app. The following format is used: android-app://{package_id}/{scheme}/{host_path}, where the scheme and host_path parts are optional.
This class helps with extracting referrer URIs from various sources, including Chrome, Google App, Googlebot and etc. SeeExtract Referrer Information section for more information.
Public Method Summary
| boolean | |
| Uri | |
| String | |
| int | hashCode() |
| staticAndroidAppUri | |
| String | toString() |
Inherited Method Summary
Public Methods
public booleanequals(Object object)
publicStringgetPackageName()
Returns
- package name.
public inthashCode()
public staticAndroidAppUrinewAndroidAppUri(Uri uri)
Creates a newAndroidAppUri object.
Parameters
| uri | Uri with android-app scheme. |
|---|
Returns
- new
AndroidAppUriobject.
Throws
| IllegalArgumentException | if the provided URI is not a valid android-app URI. |
|---|
publicStringtoString()
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.