https://github.com/txchen/intenthelper
cordova-plugin-intenthelper
https://github.com/txchen/intenthelper
Last synced: 10 months ago
JSON representation
cordova-plugin-intenthelper
- Host: GitHub
- URL: https://github.com/txchen/intenthelper
- Owner: txchen
- License: mit
- Created: 2016-07-13T17:33:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T21:07:13.000Z (almost 10 years ago)
- Last Synced: 2025-01-15T06:47:48.210Z (over 1 year ago)
- Language: Java
- Homepage: https://www.npmjs.com/package/cordova-plugin-intenthelper
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
})
```