Prologue
The engineering team at LiveCode recently published a technical whitepaper on how we’d like to make LiveCode Builder interoperate better with other languages by improving its so-called ‘foreign function interface’.
In this post, I’d like to work through an example of how Infinite LiveCode, once it is funded, might be used to write an extension for an ability the engine does not have: battery status monitoring on iOS.
There are several steps involved in working out how to build an extension which hooks into foreign APIs:
- Define what you want to be able to do
- Find the foreign APIs that you need to use and figure out how they work
- Work out a suitable set of functionality to expose to LiveCode Script
- Wrap the foreign APIs for use from LiveCode Builder
- Write a LiveCode Builder module which uses the wrapped foreign APIs to build the LiveCode Script functionality.
I’ll go through each of these five steps in turn.
read more
Recent Comments