@Test public void getReturnUrlScheme_returnsExpectedUrlScheme() { assertEquals(mPopupBridge.getReturnUrlScheme(), mAppCompatActivity.getApplicationContext().getPackageName() + ".popupbridge"); }
@Override public String getReturnUrlScheme() { return mReturnUrlScheme; }
PopupBridge extends BrowserSwitchFragment { @Override public String getReturnUrlScheme() { return mReturnUrlScheme; } }
PopupBridge extends BrowserSwitchFragment { @Override public String getReturnUrlScheme() { return mReturnUrlScheme; } PopupBridge(); }
PopupBridge extends BrowserSwitchFragment { @Override public String getReturnUrlScheme() { return mReturnUrlScheme; } PopupBridge(); @SuppressLint("SetJavaScriptEnabled") static PopupBridge newInstance(AppCompatActivity activity, WebView webView); @SuppressLint("SetJavaScriptEnabled") static PopupBridge newInstance(FragmentActivity activity, WebView webView); @Override void onAttach(@NonNull Context context); @Override void onCreate(Bundle savedInstanceState); @Override void onBrowserSwitchResult(int requestCode, BrowserSwitchResult result, @Nullable Uri returnUri); @Override String getReturnUrlScheme(); @JavascriptInterface String getReturnUrlPrefix(); @JavascriptInterface void open(String url); @JavascriptInterface void sendMessage(String messageName); @JavascriptInterface void sendMessage(String messageName, String data); void setNavigationListener(PopupBridgeNavigationListener listener); void setMessageListener(PopupBridgeMessageListener listener); }
PopupBridge extends BrowserSwitchFragment { @Override public String getReturnUrlScheme() { return mReturnUrlScheme; } PopupBridge(); @SuppressLint("SetJavaScriptEnabled") static PopupBridge newInstance(AppCompatActivity activity, WebView webView); @SuppressLint("SetJavaScriptEnabled") static PopupBridge newInstance(FragmentActivity activity, WebView webView); @Override void onAttach(@NonNull Context context); @Override void onCreate(Bundle savedInstanceState); @Override void onBrowserSwitchResult(int requestCode, BrowserSwitchResult result, @Nullable Uri returnUri); @Override String getReturnUrlScheme(); @JavascriptInterface String getReturnUrlPrefix(); @JavascriptInterface void open(String url); @JavascriptInterface void sendMessage(String messageName); @JavascriptInterface void sendMessage(String messageName, String data); void setNavigationListener(PopupBridgeNavigationListener listener); void setMessageListener(PopupBridgeMessageListener listener); static final String POPUP_BRIDGE_NAME; static final String POPUP_BRIDGE_URL_HOST; }