本文整理汇总了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);
}