https://github.com/frontmage/cordova-plugin-aar-integration
https://github.com/frontmage/cordova-plugin-aar-integration
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/frontmage/cordova-plugin-aar-integration
- Owner: FrontMage
- License: mit
- Created: 2022-11-08T01:50:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T01:51:35.000Z (over 3 years ago)
- Last Synced: 2025-02-05T16:39:39.556Z (over 1 year ago)
- Language: Java
- Size: 16.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-aar-integration
This is a cordova plugin to test the usage of aar within ionic
## Supported Platforms
- Android API all versions
## Installation
Ionic local build
# Newest versions
ionic cordova plugin add https://github.com/halkhateeb/cordova-plugin-aar-integration.git
## Usage in javascript
```js
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.plugins.aarintegration.check(successCallback, errorCallback);
}
function successCallback(result) {
console.log(result);
}
function errorCallback(error) {
console.log(error);
}
```
## Usage in typescript
```ts
(window).plugins.aarintegration.check((a) => this.successCallback(a), (b) => this.errorCallback(b));
successCallback(result) {
console.log(result);
}
errorCallback(error) {
console.log(error);
}
```