@qubic-connect/detect-iab
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

detect-iab

TODO: description

Usage

import { showBlockerWhenIab, openExternalBrowserWhenLineIab } from '@qubic-connect/detect-iab';

showBlockerWhenIab({ redirectUrl?: string, shouldAlwaysShowCopyUI?: boolean }): void

shows a blocker when detected in iab

shows relative hint when in instagram (due to maintaining reason we support only instagram now)

relative

shows a copy box when not in instagram, or when shouldAlwaysShowCopyUI is true

relative

if redirectUrl is given, show and copy redirectUrl instead of current url

openExternalBrowserWhenLineIab(): void

when in line iab, auto opens native browser (chrome / google for android, safari for ios) with same url

Preview deploy

After sending a PR,a link will be created after netlify generates a deploy-preview website

relative

Post in on apps to preview PR's work

Dependencies (6)

Dev Dependencies (5)

Package Sidebar

Install

npm i @qubic-connect/detect-iab

Weekly Downloads

26

Version

1.2.1

License

ISC

Unpacked Size

143 kB

Total Files

24

Last publish

Collaborators

  • tim101
  • amis.kevin
  • roadmanfong