Classes
The following classes are available globally.
-
See moreLCLiquidView
exposes anLCMicroService
through a UI. AnLCMicroService
attaches to a UI in JavaScript by callingLiquidCore.attach(surface, callback)
wheresurface
is a string representing theLCSurface
class canonical name (e.g.org.liquidplayer.surfaces.console.ConsoleSurface
) andcallback
is a callback function which accepts anerror
parameter. Iferror
isundefined
, then theLCSurface
was attached correctly and is ready for use. Otherwise,error
is a descriptive error message.Declaration
Objective-C
@interface LCLiquidView : UIView
Swift
class LCLiquidView : UIView
-
An
See moreLCMicroService
is the basic building block of LiquidCore. It encapsulates the runtime environment for a client-side micro app. AnLCMicroService
is a complete virtual machine whose operation is defined by the code referenced by the service URI. When anLCMicroService
is instantiated, its Node.js environment is set up, its code downloaded (or fetched from cache) from the URI, and is executed in a VM. The host may interact with the VM via a simple message-based API, or a UI may be exposed by attaching to anLCSurface
.Declaration
Objective-C
@interface LCMicroService : NSObject
Swift
class LCMicroService