Functions and constants for doing inter-app communication.
These API:s only exist on mobile platforms.
iac type
set iac listener
Sets the listener function for inter-app communication events.
listener -
function(self, payload, type) listener callback function. Pass an empty function if you no longer wish to receive callbacks.
selfobject The current object.
payloadtable The iac payload.
typeconstant The type of iac, an iac.TYPE_
Set the iac listener.
local function iac_listener(self, payload, type) if type == iac.TYPE_INVOCATION then -- This was an invocation print(payload.origin) -- origin may be empty string if it could not be resolved print(payload.url) end end local init(self) ... iac.set_listener(iac_listener) end