All Projects → saurabharora90 → Customtabs Kotlin

saurabharora90 / Customtabs Kotlin

Licence: mit
Helpers of the Chrome Custom tabs re-written in Kotlin and with Architecture Components to offer a simpler API

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Customtabs Kotlin

Andorid Litehybrid Webview
A android hybrid framework, works for H5 and native interactions via webview.
Stars: ✭ 39 (-18.75%)
Mutual labels:  webview
Browserpass Legacy
Legacy Browserpass repo, development is now happening at:
Stars: ✭ 1,020 (+2025%)
Mutual labels:  chrome
Gmail Fixed Font
Use your browser's monospace font for message body text in Gmail
Stars: ✭ 44 (-8.33%)
Mutual labels:  chrome
Duplicate Tab
Press Alt+Shift+D to duplicate the current tab (Option+Shift+D on Mac).
Stars: ✭ 40 (-16.67%)
Mutual labels:  chrome
Justmytrello
Chrome extension - Filter the cards that are assigned to you on Trello
Stars: ✭ 42 (-12.5%)
Mutual labels:  chrome
Devtools Timeline Images
Extract images from Chrome DevTools report.
Stars: ✭ 44 (-8.33%)
Mutual labels:  chrome
Gayhub
An awesome chrome extension for github
Stars: ✭ 995 (+1972.92%)
Mutual labels:  chrome
Android File Chooser
Handle Android file chooser click actions on all Android versions
Stars: ✭ 46 (-4.17%)
Mutual labels:  webview
Github Awesome Autocomplete
Add instant search capabilities to GitHub's search bar
Stars: ✭ 1,015 (+2014.58%)
Mutual labels:  chrome
Adguardbrowserextension
AdGuard browser extension
Stars: ✭ 1,018 (+2020.83%)
Mutual labels:  chrome
Ferrum
Headless Chrome Ruby API
Stars: ✭ 1,009 (+2002.08%)
Mutual labels:  chrome
Google Access Helper
谷歌访问助手破解版
Stars: ✭ 7,640 (+15816.67%)
Mutual labels:  chrome
Youtubetv
📺 YouTube embedded player library for Android TV
Stars: ✭ 44 (-8.33%)
Mutual labels:  webview
Anyway.tab
一款 Chrome 的新建 Tab 插件,显示 Anyway.FM 节目中的语录、参考链接和更新提醒。
Stars: ✭ 40 (-16.67%)
Mutual labels:  chrome
Puppeteer Deep
Puppeteer, Headless Chrome;爬取《es6标准入门》、自动推文到掘金、站点性能分析;高级爬虫、自动化UI测试、性能分析;
Stars: ✭ 1,033 (+2052.08%)
Mutual labels:  chrome
Gowitness
🔍 gowitness - a golang, web screenshot utility using Chrome Headless
Stars: ✭ 996 (+1975%)
Mutual labels:  chrome
Cookie Autodelete
Firefox and Chrome WebExtension that deletes cookies and other browsing site data as soon as the tab closes, domain changes, browser restarts, or a combination of those events.
Stars: ✭ 1,015 (+2014.58%)
Mutual labels:  chrome
Analog
Replace your new tab page with a minimal analog clock
Stars: ✭ 46 (-4.17%)
Mutual labels:  chrome
Advent Of Code Charts
Inject charts in your private leaderboard page for Advent of Code
Stars: ✭ 46 (-4.17%)
Mutual labels:  chrome
Forpda
Alternative client for 4pda.ru
Stars: ✭ 43 (-10.42%)
Mutual labels:  webview

Chrome Custom Tabs - Kotlin and Lifecycle Aware

This is a rewrite of the helpers offered by Google.

The ones offered by Google are written in JAVA and require integration with the Activity lifecycle if the user needs to support warmup of the browser for performance gains.

  • This new implementaion uses Lifecycle to hide away the service binding logic.
  • Rewritting in Kotlin makes the code consixe and offers a cleaner and easier to work with API, espcially with the support of optional paramters.

Usage

Add a dependency to your build.gradle:

dependencies {
    implementation 'com.saurabharora.customtabs:customtabs:1.1'
}

Now in your Activity/Fragment from where you want to launch the Chrome Custom Tabs:

private val  customTabActivityHelper: CustomTabActivityHelper =
    CustomTabActivityHelper(context = this, lifecycle = lifecycle, connectionCallback = this)
    
//If you know the potential URL that will be loaded:
customTabActivityHelper.mayLaunchUrl(uri)
    
val customTabsIntent = CustomTabsIntent.Builder(customTabActivityHelper.session)
                       .build()
                       
customTabsIntent.launchWithFallback(activity = this, uri = uri)

See the demo app for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].