0.1.0 • Published 3 years ago
cordova-plugin-hello-kotlin v0.1.0
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);
Test app screenshot
0.1.0
3 years ago