本文整理匯總了Java中com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs類的典型用法代碼示例。如果您正苦於以下問題:Java SimpleChromeCustomTabs類的具體用法?Java SimpleChromeCustomTabs怎麽用?Java SimpleChromeCustomTabs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SimpleChromeCustomTabs類屬於com.novoda.simplechromecustomtabs包,在下文中一共展示了SimpleChromeCustomTabs類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: openCustomTabsIfPossible
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
private void openCustomTabsIfPossible(final Story story, IntentCustomizer intentCustomizer) {
SimpleChromeCustomTabs.getInstance().withFallback(
new NavigationFallback() {
@Override
public void onFallbackNavigateTo(Uri url) {
Intent articleIntent = new Intent(activity, StoryActivity.class);
articleIntent.putExtra(StoryActivity.ARG_STORY, story);
ActivityCompat.startActivity(activity, articleIntent, null);
}
}
)
.withIntentCustomizer(intentCustomizer)
.navigateTo(Uri.parse(story.getUrl()), activity);
}
示例2: onCreate
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
@Override
public void onCreate() {
super.onCreate();
context = this;
Firebase.setAndroidContext(this);
SimpleChromeCustomTabs.initialize(this);
Inject.using(new DefaultDependenciesFactory(this));
startup();
}
示例3: onResume
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
@Override
protected void onResume() {
super.onResume();
SimpleChromeCustomTabs.getInstance().connectTo(this);
refreshHeader();
trackCurrentPage();
}
示例4: onResume
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
@Override
protected void onResume() {
super.onResume();
checkForPackageAvailable();
SimpleChromeCustomTabs.getInstance().mayLaunch(WEB_URL);
SimpleChromeCustomTabs.getInstance().connectTo(this);
}
示例5: onResume
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
@Override
protected void onResume() {
super.onResume();
checkForPackageAvailable();
SimpleChromeCustomTabs.getInstance().connectTo(this);
}
示例6: onPause
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
@Override
public void onPause() {
SimpleChromeCustomTabs.getInstance().disconnectFrom(this);
super.onPause();
}
示例7: checkForPackageAvailable
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
private void checkForPackageAvailable() {
SimpleChromeCustomTabs.getInstance().findBestPackage(packageFoundCallback, this);
}
示例8: onPause
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
@Override
protected void onPause() {
SimpleChromeCustomTabs.getInstance().disconnectFrom(this);
super.onPause();
}
示例9: navigateTo
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
private void navigateTo(Uri webUrl) {
SimpleChromeCustomTabs.getInstance().withFallback(navigationFallback)
.withIntentCustomizer(intentCustomizer)
.navigateTo(webUrl, ExtendedDemoActivity.this);
}
示例10: onClick
import com.novoda.simplechromecustomtabs.SimpleChromeCustomTabs; //導入依賴的package包/類
@Override
public void onClick(View v) {
SimpleChromeCustomTabs.getInstance().withFallback(navigationFallback)
.navigateTo(WEB_URL, SimpleDemoActivity.this);
}