public class CustomTabsCallback extends Object
Modifier and Type | Field and Description |
---|---|
static int |
NAVIGATION_ABORTED
Sent when loading was aborted by a user action before it finishes like clicking on a link
or refreshing the page.
|
static int |
NAVIGATION_FAILED
Sent when the tab couldn't finish loading due to a failure.
|
static int |
NAVIGATION_FINISHED
Sent when the tab has finished loading a page.
|
static int |
NAVIGATION_STARTED
Sent when the tab has started loading a page.
|
static int |
TAB_HIDDEN
Sent when the tab becomes hidden.
|
static int |
TAB_SHOWN
Sent when the tab becomes visible.
|
Constructor and Description |
---|
CustomTabsCallback() |
Modifier and Type | Method and Description |
---|---|
void |
extraCallback(String callbackName,
Bundle args)
Unsupported callbacks that may be provided by the implementation.
|
void |
onNavigationEvent(int navigationEvent,
Bundle extras)
To be called when a navigation event happens.
|
public static final int NAVIGATION_STARTED
public static final int NAVIGATION_FINISHED
public static final int NAVIGATION_FAILED
public static final int NAVIGATION_ABORTED
public static final int TAB_SHOWN
public static final int TAB_HIDDEN
public void onNavigationEvent(int navigationEvent, Bundle extras)
navigationEvent
- The code corresponding to the navigation event.extras
- Reserved for future use.public void extraCallback(String callbackName, Bundle args)
Note:Clients should never rely on this callback to be called and/or to have a defined behavior, as it is entirely implementation-defined and not supported.
This can be used by implementations to add extra callbacks, for testing or experimental purposes.
callbackName
- Name of the extra callback.args
- Arguments for the calback