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