{"id":18458304,"url":"https://github.com/kaustubhpatange/customwebviewtabs","last_synced_at":"2026-03-10T06:03:54.273Z","repository":{"id":57733801,"uuid":"308235452","full_name":"KaustubhPatange/CustomWebviewTabs","owner":"KaustubhPatange","description":"CWT is an alternative for CustomTabs in Android works without the need for a service provider.","archived":false,"fork":false,"pushed_at":"2021-03-17T05:48:42.000Z","size":5347,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T08:57:02.636Z","etag":null,"topics":["android","chrome-custom-tabs","kotlin","library","webview"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KaustubhPatange.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-29T06:16:32.000Z","updated_at":"2023-09-08T18:14:14.000Z","dependencies_parsed_at":"2022-08-24T11:20:20.841Z","dependency_job_id":null,"html_url":"https://github.com/KaustubhPatange/CustomWebviewTabs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaustubhPatange%2FCustomWebviewTabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaustubhPatange%2FCustomWebviewTabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaustubhPatange%2FCustomWebviewTabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaustubhPatange%2FCustomWebviewTabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KaustubhPatange","download_url":"https://codeload.github.com/KaustubhPatange/CustomWebviewTabs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785919,"owners_count":20995641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","chrome-custom-tabs","kotlin","library","webview"],"created_at":"2024-11-06T08:17:47.820Z","updated_at":"2026-03-10T06:03:54.235Z","avatar_url":"https://github.com/KaustubhPatange.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CustomWebviewTabs (CWT)\n\n![build](https://github.com/KaustubhPatange/CustomWebviewTabs/workflows/build/badge.svg)\n![Maven Central](https://img.shields.io/maven-central/v/io.github.kaustubhpatange/cwt)\n\nCWT is an alternative for CustomTabs in Android without needing a service provider.\n\nInternally it uses `WebView` to load pages (also supports private browsing).\n\n\u003cimg height=\"500px\" width=\"250px\" src=\"art/demo.gif\" /\u003e\n\n## Usage\n\n- Check [sample](/sample) project to see complete implementation of the library.\n\n```kotlin\nCWT.Builder(context)\n    .onPageLoadListener { ... }\n    .onPageLoadingListener { ... }\n    .onWindowClosedListener { ... }\n    .apply {\n        /** Optionally set other settings (see below table) */\n\n        // lookFeel.primaryColor = getColor(R.color.colorPrimary)\n        // options.privateMode = true\n    }\n    .launch(urlString)\n```\n\n| Parameter                      | Task                                                            |\n| ------------------------------ | --------------------------------------------------------------- |\n| `lookFeel.primaryColor`        | Changes view that uses primary color eg: `Toolbar`.             |\n| `options.darkMode`             | Enable rendering pages in dark mode (API \u003e= 29).                |\n| `options.privateMode`          | Enable private browsing by not maintaining history and cookies. |\n| `options.lockToolbarScrolling` | Locks the toolbar on scroll so it won't hide.                   |\n\n## Download\n\nLibrary is available on `MavenCentral()`.\n\n```groovy\nimplementation \"io.github.kaustubhpatange:cwt:\u003cversion\u003e\"\n```\n\n## License\n\n- [The Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)\n\n```\nCopyright 2020 Kaustubh Patange\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaustubhpatange%2Fcustomwebviewtabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaustubhpatange%2Fcustomwebviewtabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaustubhpatange%2Fcustomwebviewtabs/lists"}