Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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