2015-05-29 49 views

回答

1

现在看起来像mayLaunchUrl的额外套件仅供将来使用。所以,似乎没有一个键列表。

的群众演员现场上mayLaunchUrl:留作将来使用

  • @param演员。
1

只有一个额外的mayLaunchUrl目前正在实施: “org.chromium.chrome.browser.referrer_id”。

0

This class看起来很有希望:

public final class CustomTabsIntent { 
    method public void launchUrl(android.app.Activity, android.net.Uri); 
    field public static final java.lang.String EXTRA_ACTION_BUTTON_BUNDLE = "android.support.customtabs.extra.ACTION_BUTTON_BUNDLE"; 
    field public static final java.lang.String EXTRA_CLOSE_BUTTON_ICON = "android.support.customtabs.extra.CLOSE_BUTTON_ICON"; 
    field public static final java.lang.String EXTRA_EXIT_ANIMATION_BUNDLE = "android.support.customtabs.extra.EXIT_ANIMATION_BUNDLE"; 
    field public static final java.lang.String EXTRA_MENU_ITEMS = "android.support.customtabs.extra.MENU_ITEMS"; 
    field public static final java.lang.String EXTRA_SESSION = "android.support.customtabs.extra.SESSION"; 
    field public static final java.lang.String EXTRA_TITLE_VISIBILITY_STATE = "android.support.customtabs.extra.TITLE_VISIBILITY"; 
    field public static final java.lang.String EXTRA_TOOLBAR_COLOR = "android.support.customtabs.extra.TOOLBAR_COLOR"; 
    field public static final java.lang.String KEY_DESCRIPTION = "android.support.customtabs.customaction.DESCRIPTION"; 
    field public static final java.lang.String KEY_ICON = "android.support.customtabs.customaction.ICON"; 
    field public static final java.lang.String KEY_MENU_ITEM_TITLE = "android.support.customtabs.customaction.MENU_ITEM_TITLE"; 
    field public static final java.lang.String KEY_PENDING_INTENT = "android.support.customtabs.customaction.PENDING_INTENT"; 
    field public static final int NO_TITLE = 0; // 0x0 
    field public static final int SHOW_PAGE_TITLE = 1; // 0x1 
    field public final android.content.Intent intent; 
    field public final android.os.Bundle startAnimationBundle; 
    } 

“可能发动的URL”,听起来非常相似的myLaunchUrl()方法:

最后但并非最不重要的,使用mayLaunchUrl()方法来通知浏览器如有必要,可能导航到某个网址或网址列表。它还会返回一个布尔值来通知您的自定义选项卡是否会启动。如果为false,则用户没有可用的最新版Chrome,并且您需要决定是要在外部启动Chrome还是使用Web视图作为后备。请注意,作为最佳做法,请在mayLaunchUrl()之前调用warmup()。

参见:An Introduction to Chrome Custom Tabs for Android