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