npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-plugin-colored-browser-tabs

v1.0.0

Published

Cordova Plugin to open Chrome Custom Tabs on Android or Safaris SFSafariViewController on iOS

Downloads

41

Readme

cordova-plugin-colored-browser-tabs

Cordova Plugin to open Chrome Custom Tabs on Android or Safaris SFSafariViewController on iOS

Features

You can define the Toolbar color of the browser tabs, and set if browser tabs should open with an animation or not (Several animations are only available on Android, on iOS you can just define if the default animation should be shown on start)

You don't have to add http or https at the beginning of your url, the plugin will handle this for you (default is https)

The colors you pass in the plugin need to be hex colors, for example: '#000000'

Installation

  1. Install the Cordova and Ionic Native Plugins
$ ionic cordova plugin add cordova-plugin-colored-browser-tabs
$ npm install --save @ionic-native/colored-browser-tabs

the bridge will be available with the next ionic native release, the pull request was already merged

  1. Add this plugin to your app's module

Supported Platforms

  • Android
  • iOS

Usage

import { ColoredBrowserTabs } from '@ionic-native/colored-browser-tabs';

  constructor(
    private browserTabs: ColoredBrowserTabs
  ) {}

  ...
  // Without animation and default color
  this.browserTabs.openTab("https://www.google.com").subscribe();
  or
  // Without animation and custom color
  this.browserTabs.openTab("https://www.google.com", "#ff0000").subscribe();

  // With animation and default color
  this.browserTabs.openTabWithAnimation("https://www.google.com", "slide_x").subscribe();
  or
  this.browserTabs.openTabWithAnimation("https://www.google.com", "slide_y").subscribe();
  or
  this.browserTabs.openTabWithAnimation("https://www.google.com", "fade").subscribe();
  or
  // With animation and custom color
  this.browserTabs.openTabWithAnimation("https://www.google.com", "slide_x", "#ff0000").subscribe();

Instance Members

openTab(url: string, color?: string)

opens Tab with specific url and color | Param | Type | Details| |----------------|----------------|----------------| | url | string | the url you want to open| | color | string | (Optional) the color you want the tab to have |

openTabWithAnimation(url: string, anim: string, color?: string)

opens Tab with an animation | Param | Type | Details| |----------------|----------------|----------------| | url | string | the url you want to open| | anim | string | the animation you want to show - for android you can chose between "slide_x", "slide_y" and "fade" - iOS will always show the default animation | | color | string | (Optional) the color you want the tab to have |