java.lang.Object |
↳ |
com.google.firebase.appindexing.AndroidAppUri |
Class Overview
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.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
public
boolean
equals
(Object object)
public
Uri
getDeepLinkUri
()
Returns |
Uri |
deep link Uri or null , if it does not have a deep link. |
public
String
getPackageName
()
Returns |
String |
package name. |
public
static
AndroidAppUri
newAndroidAppUri
(Uri uri)
Creates a new AndroidAppUri
object.
Parameters |
uri |
Uri :
Uri with android-app scheme. |
Throws |
IllegalArgumentException |
if the provided URI is not a valid android-app URI.
|
public
String
toString
()