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. See Extract Referrer Information section for more information.
Public Method Summary
boolean | |
Uri | |
String | |
int |
hashCode()
|
static AndroidAppUri | |
String |
toString()
|
Inherited Method Summary
Public Methods
public boolean equals (Object object)
public String getPackageName ()
Returns
- package name.
public int hashCode ()
public static AndroidAppUri newAndroidAppUri (Uri uri)
Creates a new AndroidAppUri
object.
Parameters
uri | Uri with
android-app scheme. |
---|
Returns
- new
AndroidAppUri
object.
Throws
IllegalArgumentException | if the provided URI is not a valid android-app URI. |
---|