logo

/App Loader|v2.1.6

Class

new AppLoader(options)appLoader.jsline 47

Mobile App loader

SEES
  • AppLoader#exec
PARAMETERS
NameTypeDescription

options

object

Option object

PROPERTIES
NameTypeDescription

usageStatistics

boolean = true

Let us know the hostname. If you don't want to send the hostname, please set to false.

EXAMPLES

node, commonjs

// ES6
import AppLoader from 'tui-app-loader'; // ES6

// CommonJS
const AppLoader = require('tui-app-loader'); // CommonJS

// Browser
const appLoader = new tui.AppLoader();

const appLoader = new AppLoader();
appLoader.exec(...);

Instance Methods

exec(options)appLoader.jsline 186

Call app

PARAMETERS
NameTypeDescription

options

object

The option for app

PROPERTIES
NameTypeDescription

ios

object

IOS app information

android

object

Android information

timerSet

object

A timer time set for callback deley time

etcCallback

Function

If unsupportable mobile

notFoundCallback

Function

It not found

EXAMPLES
const loader = new AppLoader();
loader.exec({
     ios: {
         scheme: '<app-scheme>://', // iphone app scheme
         url: 'https://itunes.apple.com/app/<id-app>', // app store url,
         universalLink: 'app:///<universal-link>/'
     },
     android: {
         intentURI: 'intent://<action>#Intent;scheme=<app-scheme>;package=<package-name>;end' // android intent uri
     },
     timerSet: { // optional values
         ios: 2000, // default: 2000
         android: 1000 // default: 800
     },
     notFoundCallback: function() { // if not installed
         alert('not found');
     },
     etcCallback: function() { // if not mobile
         alert('etc');
     }
});
Resizable