App/android/plugin/src/main/java/plugin/library/LuaLoader.java
/**
	 * Called when this plugin is being loaded via the Lua require() function.
	 * <p>
	 * Note that this method will be called every time a new CoronaActivity has been launched.
	 * This means that you'll need to re-initialize this plugin here.
	 * <p>
	 * Warning! This method is not called on the main UI thread.
	 * @param L Reference to the Lua state that the require() function was called from.
	 * @return Returns the number of values that the require() function will return.
	 *         <p>
	 *         Expected to return 1, the library that the require() function is loading.
	 */
Called when this plugin is being loaded via the Lua require() function.

Note that this method will be called every time a new CoronaActivity has been launched.
This means that you'll need to re-initialize this plugin here.

Warning. This method is not called on the main UI thread.
@param L Reference to the Lua state that the require() function was called from.
@return Returns the number of values that the require() function will return.

Expected to return 1, the library that the require() function is loading.
Called when this plugin is being loaded via the Lua require () function . Note that this method will be called every time a new CoronaActivity has been launched . This means that you ' ll need to re - initialize this plugin here . Warning . This method is not called on the main UI thread . @param L Reference to the Lua state that the require () function was called from . @return Returns the number of values that the require () function will return . Expected to return 1 the library that the require () function is loading .
@Override
	public int invoke(LuaState L) {
		NamedJavaFunction[] luaFunctions = new NamedJavaFunction[] {
			new InitWrapper(),
			new ShowWrapper(),
		};
		String libName = L.toString( 1 );
		L.register(libName, luaFunctions);
		return 1;
	}
@ Override public int invoke ( LuaState L ) { NamedJavaFunction [ ] luaFunctions = new NamedJavaFunction [ ] { new InitWrapper ( ) , new ShowWrapper ( ) , } ; String libName = L . toString ( 1 ) ; L . register ( libName , luaFunctions ) ; return 1 ; }
Called when this plugin is being loaded via the Lua require() function.
Called when this plugin is being loaded via the Lua require () function .
// Register this plugin into Lua with the following functions. // Returning 1 indicates that the Lua require() function will return the above Lua library.