Store to encapsulate all the native functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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