Android APIs
public final class

CustomTabsSession

extends Object
java.lang.Object
   ↳ android.support.customtabs.CustomTabsSession

Class Overview

A class to be used for Custom Tabs related communication. Clients that want to launch Custom Tabs can use this class exclusively to handle all related communication.

Summary

Public Methods
boolean mayLaunchUrl(Uri url, Bundle extras, List<Bundle> otherLikelyBundles)
Tells the browser of a likely future navigation to a URL.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean mayLaunchUrl (Uri url, Bundle extras, List<Bundle> otherLikelyBundles)

Tells the browser of a likely future navigation to a URL. The most likely URL has to be specified first. Optionally, a list of other likely URLs can be provided. They are treated as less likely than the first one, and have to be sorted in decreasing priority order. These additional URLs may be ignored. All previous calls to this method will be deprioritized.

Parameters
url Most likely URL.
extras Reserved for future use.
otherLikelyBundles Other likely destinations, sorted in decreasing likelihood order. Inside each Bundle, the client should provide a Uri using KEY_URL with putParcelable(String, android.os.Parcelable).
Returns
  • true for success.