public static enum AppLinkNavigation.NavigationResult extends java.lang.Enum<AppLinkNavigation.NavigationResult>
AppLinkNavigation.navigate(android.content.Context)
on an
AppLinkNavigation
.Enum Constant and Description |
---|
APP
Indicates that the navigation succeeded by opening the URL in an app on the device.
|
FAILED
Indicates that the navigation failed and no app was opened.
|
WEB
Indicates that the navigation succeeded by opening the URL in the browser.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
boolean |
isSucceeded() |
static AppLinkNavigation.NavigationResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AppLinkNavigation.NavigationResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AppLinkNavigation.NavigationResult FAILED
public static final AppLinkNavigation.NavigationResult WEB
public static final AppLinkNavigation.NavigationResult APP
public static AppLinkNavigation.NavigationResult[] values()
for (AppLinkNavigation.NavigationResult c : AppLinkNavigation.NavigationResult.values()) System.out.println(c);
public static AppLinkNavigation.NavigationResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getCode()
public boolean isSucceeded()