cordova-plugin-hello-kotlin
v0.1.0
Published
![npm](https://img.shields.io/npm/dt/cordova-plugin-hello-kotlin) ![npm](https://img.shields.io/npm/v/cordova-plugin-hello-kotlin) ![GitHub package.json version](https://img.shields.io/github/package-json/v/andreszs/cordova-plugin-hello-kotlin?color=FF6D0
Downloads
1
Maintainers
Readme
cordova-plugin-hello-kotlin
A simple example of a Cordova plugin that uses Kotlin (instead of Java) to implement the native Cordova plugin interface on Android.
Requirements
- Cordova Android 9.0.0
Install
Install from NPM:
cordova plugin add cordova-plugin-hello-kotlin
The plugin will add these settings into your project's config.xml file:
GradlePluginKotlinEnabled = true
GradlePluginKotlinVersion = 1.5.20
Test method
This sample plugin provides a single hello method added to the cordova.plugins scope.
var onSuccess = function(output){
console.log(output);
};
var onFailure = function(output){
console.error(output);
}
cordova.plugins.HelloKotlin.hello("Plugin Test", onSuccess, onFailure);