Skip to content

Custom Tabs

Non-Visible component
Category Requires Version
Experimental API 19, Android 4.4 - 4.4.4 KitKat 2

Overview

A non-visible component that opens web pages as custom tabs on Google Chrome.

Methods

Add Menu Item Open App

Use this block to add a menu item with the given title to open any app you want with the package name. The package name can be as example 'com.instagram.android' to open Instagram on the menu item click. If the app is not installed the menu item will not be added.

Params
title Text
package Name Text

Add Menu Item Open Page

Use this block to add a menu item with the given title and page link. The page can be as example 'https://www.instagram.com/kodular/'. If the user have Instagram installed,the page will then be opened in the official Instagram app. Else in the default browser.

Params
title Text
page Text

Open Custom Tab

Use this block to open the custom tab.

Properties

Default Share Menu Item

Boolean Default: True ➖ Write - Designer

Whether or not to add the default share menu item into the menu.

Instant Apps Enabled

Boolean Default: True ➖ Read Write - Designer Blocks

Whether or not to enable instant apps.

Show Title

Boolean Default: True ➖ Read Write - Designer Blocks

Whether or not to show the title.

Toolbar Color

Color Default: #3F51B5FF  ➖ Read Write - Designer Blocks

Specifies the color of the toolbar.

URL

Text ➖ Read Write - Designer Blocks

The URL to load in the custom tab. The URL must start with 'http://' or 'https://'

Url Bar Hiding On Scroll

Boolean Default: False ➖ Write - Designer

Whether or not to hide the url bar on scrolling.


Last update: January 27, 2020