Link Search Menu Expand Document

App

Represents the AlloApp.

Mediates communication with backend, and maintains the runloop. Create one of these, configure it, connect it and run it, and you have an alloapp.

Constructor

 local app = App(client)

Arguments

Name Type Description
client Client The AlloNet client wrapper

Returns

Nothing


Methods

App:scheduleAction (delay, repeats, callback)

Schedule work to be done later

Arguments

Name Type Description
delay number The time (in seconds) until the callback is called.
repeats boolean Whether The callback should repeat (with the same delay) or only occur once.
callback function The function to be called (with no arguments).

Returns

Nothing