current.txt revision 97ee4f3f353309991efd3ceca369548b485e9a5f
1package android.support.customtabs {
2
3  public class CustomTabsCallback {
4    ctor public CustomTabsCallback();
5    method public void onNavigationEvent(int, android.os.Bundle);
6    field public static final int NAVIGATION_FINISHED = 2; // 0x2
7    field public static final int NAVIGATION_STARTED = 1; // 0x1
8  }
9
10  public class CustomTabsClient {
11    method public static boolean bindCustomTabsService(android.content.Context, java.lang.String, android.support.customtabs.CustomTabsServiceConnection);
12    method public android.support.customtabs.CustomTabsSession newSession(android.support.customtabs.CustomTabsCallback);
13    method public boolean warmup(long);
14  }
15
16  public final class CustomTabsIntent {
17    method public void launchUrl(android.app.Activity, android.net.Uri);
18    field public static final java.lang.String EXTRA_ACTION_BUTTON_BUNDLE = "android.support.customtabs.extra.ACTION_BUTTON_BUNDLE";
19    field public static final java.lang.String EXTRA_CLOSE_BUTTON_ICON = "android.support.customtabs.extra.CLOSE_BUTTON_ICON";
20    field public static final java.lang.String EXTRA_EXIT_ANIMATION_BUNDLE = "android.support.customtabs.extra.EXIT_ANIMATION_BUNDLE";
21    field public static final java.lang.String EXTRA_MENU_ITEMS = "android.support.customtabs.extra.MENU_ITEMS";
22    field public static final java.lang.String EXTRA_SESSION = "android.support.customtabs.extra.SESSION";
23    field public static final java.lang.String EXTRA_TITLE_VISIBILITY_STATE = "android.support.customtabs.extra.TITLE_VISIBILITY";
24    field public static final java.lang.String EXTRA_TOOLBAR_COLOR = "android.support.customtabs.extra.TOOLBAR_COLOR";
25    field public static final java.lang.String KEY_ICON = "android.support.customtabs.customaction.ICON";
26    field public static final java.lang.String KEY_MENU_ITEM_TITLE = "android.support.customtabs.customaction.MENU_ITEM_TITLE";
27    field public static final java.lang.String KEY_PENDING_INTENT = "android.support.customtabs.customaction.PENDING_INTENT";
28    field public static final int NO_TITLE = 0; // 0x0
29    field public static final int SHOW_PAGE_TITLE = 1; // 0x1
30    field public final android.content.Intent intent;
31    field public final android.os.Bundle startAnimationBundle;
32  }
33
34  public static final class CustomTabsIntent.Builder {
35    ctor public CustomTabsIntent.Builder();
36    ctor public CustomTabsIntent.Builder(android.support.customtabs.CustomTabsSession);
37    method public android.support.customtabs.CustomTabsIntent.Builder addMenuItem(java.lang.String, android.app.PendingIntent);
38    method public android.support.customtabs.CustomTabsIntent build();
39    method public android.support.customtabs.CustomTabsIntent.Builder setActionButton(android.graphics.Bitmap, android.app.PendingIntent);
40    method public android.support.customtabs.CustomTabsIntent.Builder setCloseButtonIcon(android.graphics.Bitmap);
41    method public android.support.customtabs.CustomTabsIntent.Builder setExitAnimations(android.content.Context, int, int);
42    method public android.support.customtabs.CustomTabsIntent.Builder setShowTitle(boolean);
43    method public android.support.customtabs.CustomTabsIntent.Builder setStartAnimations(android.content.Context, int, int);
44    method public android.support.customtabs.CustomTabsIntent.Builder setToolbarColor(int);
45  }
46
47  public abstract class CustomTabsService extends android.app.Service {
48    ctor public CustomTabsService();
49    method protected boolean cleanUpSession(android.support.customtabs.CustomTabsSessionToken);
50    method protected abstract boolean mayLaunchUrl(android.support.customtabs.CustomTabsSessionToken, android.net.Uri, android.os.Bundle, java.util.List<android.os.Bundle>);
51    method protected abstract boolean newSession(android.support.customtabs.CustomTabsSessionToken);
52    method public android.os.IBinder onBind(android.content.Intent);
53    method protected abstract boolean warmup(long);
54    field public static final java.lang.String ACTION_CUSTOM_TABS_CONNECTION = "android.support.customtabs.action.CustomTabsService";
55    field public static final java.lang.String KEY_URL = "android.support.customtabs.otherurls.URL";
56  }
57
58  public abstract class CustomTabsServiceConnection implements android.content.ServiceConnection {
59    ctor public CustomTabsServiceConnection();
60    method public abstract void onCustomTabsServiceConnected(android.content.ComponentName, android.support.customtabs.CustomTabsClient);
61    method public final void onServiceConnected(android.content.ComponentName, android.os.IBinder);
62  }
63
64  public final class CustomTabsSession {
65    method public boolean mayLaunchUrl(android.net.Uri, android.os.Bundle, java.util.List<android.os.Bundle>);
66  }
67
68  public class CustomTabsSessionToken {
69    method public android.support.customtabs.CustomTabsCallback getCallback();
70  }
71
72}
73
74