txchen / intenthelper

cordova-plugin-intenthelper

Home Page:https://www.npmjs.com/package/cordova-plugin-intenthelper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

intenthelper

cordova-plugin-intenthelper

Usage

Install the plugin:

cordova plugin add cordova-plugin-intenthelper --save

Send broadcast intent:

intenthelper.sendBroadcast('com.xzy.abc.ACTION_NAME',
  { extraName1: 'extraValue1', extraName2: 'extraValue2' })

Get ads info:

intenthelper.getAdsInfo(
  function (info) {
    // now get info.adsid and info.adslimittracking
  },
  function (error) {

  }
)

Check if a package is installed or not:

intenthelper.checkPackage('com.awesome.pkg', function (installed) {
  // installed is boolean
})

About

cordova-plugin-intenthelper

https://www.npmjs.com/package/cordova-plugin-intenthelper

License:MIT License


Languages

Language:Java 86.9%Language:JavaScript 13.1%