Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/videsk/customtabsexample
Example of CustomTabs Android
https://github.com/videsk/customtabsexample
Last synced: about 11 hours ago
JSON representation
Example of CustomTabs Android
- Host: GitHub
- URL: https://github.com/videsk/customtabsexample
- Owner: videsk
- Created: 2021-02-12T02:20:05.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T19:51:27.000Z (almost 3 years ago)
- Last Synced: 2024-11-12T03:35:55.934Z (2 months ago)
- Language: Java
- Homepage:
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CustomTabs example
`CustomTabs` allows to open video calls over native apps without compatibility issues of `WebView`.
# How to use
To open a custom tabs is ready easy, add this lines:
```java
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
CustomTabsIntent customTabsIntent = builder.build();
customTabsIntent.launchUrl(this, Uri.parse("https://website.com"));
```The example website is this codesandbox: https://codesandbox.io/s/customtabs-xfkumz
## Hints
To close programatically the `CustomTabs` we recommend you to execute on the website `window.close()`, that is the best way to do it.
# Documentation
Please follow this link to more information: https://developer.android.com/reference/androidx/browser/customtabs/package-summary