public final class
AndroidAppUri
extends Object
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. See the App Indexing documentation for more information.
Public Method Summary
boolean | |
Uri | |
String | |
int |
hashCode()
|
static AndroidAppUri | |
static AndroidAppUri | |
String |
toString()
|
Uri |
toUri()
|
Inherited Method Summary
Public Methods
public int hashCode ()
public static AndroidAppUri newAndroidAppUri (String packageName, Uri deepLink)
Creates a new AndroidAppUri
object.
Returns
- new
AndroidAppUri
object.
Throws
IllegalArgumentException | if the provided packageName or deepLink is not valid. |
---|
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. |
---|