Skip to content

Instantly share code, notes, and snippets.

@initishbhatt
Last active April 12, 2018 12:23
Embed
What would you like to do?
Store to encapsulate all the native functions
class NativeStore {
/**
* A native method that is implemented by the 'native-lib' native library,
* which is packaged with this application.
*/
external fun stringFromJNI(): String
companion object {
// Used to load the 'native-lib' library on application startup.
init {
System.loadLibrary("native-lib")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment