An open API service indexing awesome lists of open source software.

https://github.com/txchen/intenthelper

cordova-plugin-intenthelper
https://github.com/txchen/intenthelper

Last synced: 10 months ago
JSON representation

cordova-plugin-intenthelper

Awesome Lists containing this project

README

          

# intenthelper
cordova-plugin-intenthelper

## Usage

Install the plugin:

```
cordova plugin add cordova-plugin-intenthelper --save
```

Send broadcast intent:

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

Get ads info:

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

}
)
```

Check if a package is installed or not:

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