Skip to content
This repository has been archived by the owner on Oct 26, 2019. It is now read-only.

Commit

Permalink
Add documentation for CustomTabsIntentEditor.
Browse files Browse the repository at this point in the history
  • Loading branch information
artdent committed Apr 27, 2017
1 parent 3bec177 commit 999131e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,27 @@ ChromeCustomTabsClient.mayLaunchUrl('http://i.imgur.com/6ogeF96.gif');
ChromeCustomTabsClient.launchCustomTab('http://i.imgur.com/xjdem.gif');
```

## Customization

You can supply a `CustomTabsIntentEditor` to customize the CustomTabsIntent produced by
this package.

```java
new ChromeCustomTabsPackage(new CustomTabsIntentEditor() {
@Override
public void customize(Context context, CustomTabsIntent.Builder builder) {
builder
.addDefaultShareMenuItem()
.setShowTitle(true)
.enableUrlBarHiding()
}
})
```

For a full description of the available options, see the official documentation for
[CustomTabsIntent.Builder](https://developer.android.com/reference/android/support/customtabs/CustomTabsIntent.Builder.html)
and the [custom tabs implementation guide](https://developer.chrome.com/multidevice/android/customtabs#implementationguide).

## License

MIT

0 comments on commit 999131e

Please sign in to comment.