Module android

Java Native Interface (JNI) wrapper.

Functions

asset_loader (modulename) A loader function for Lua which will look for assets when loading modules.
deplib_loader (modulename) This loader function just loads dependency libraries for the C module.
getProduct () Device identification.
getFlavor () Build identification.
getScreenWidth () Gets screen width.
getScreenHeight () Gets screen height.
canWriteSettings () Android permission check.


Functions

asset_loader (modulename)
A loader function for Lua which will look for assets when loading modules.

Parameters:

Returns:

    module or error message
deplib_loader (modulename)
This loader function just loads dependency libraries for the C module.

Parameters:

Returns:

    bool success or failure
getProduct ()
Device identification.

Returns:

    string product
getFlavor ()
Build identification.

Returns:

    string flavor
getScreenWidth ()
Gets screen width.

Returns:

    int screen width
getScreenHeight ()
Gets screen height.

Returns:

    int screen height
canWriteSettings ()
Android permission check.

Returns:

    bool hasWriteSettingsPermission
generated by LDoc 1.4.6 Last updated 2019-09-14 22:30:13