Show pagesource Old revisions Backlinks Export to PDF Rename Page ODT export Add to book Table of Contents Lua API Introduction Live Documentation Api-Functions Shared state Book Creator Add this page to your book Book Creator Remove this page from your book Manage book (0 page(s)) Help Lua API Introduction The D-Series phones provide a Lua 5.2 environment. The basic functions and modules ''bit32'', ''math'', ''string'' and ''table'' are available. With version 1.4 we've included the following libraries that you can access in your script by using require. eg: local stringx = require “pl.stringx” pl.List pl.Map pl.MultiMap pl.OrderedMap pl.Set pl.class pl.compat pl.lexer pl.strict pl.stringx pl.tablex pl.types pl.utils You can also provide custom libraries, i.e. common code that you can access in all lua-scripts. For this you need to provision the luaLibraries. Per default these currently hold a single additional lib that is used by some of our key-templates and is included via require callforward. Live Documentation Since 1.4 you can use lua-code to inquire which api functions there are and how they work. Api-Functions since Firmware Version 1.6 before Version 1.6 Shared state Provides a table that can be used from every key. shared Table that can contain arbitrary data.