Protocols
The following protocols are available globally.
-
Supported addons must expose an object that implements this protocol.
See moreDeclaration
Objective-C
@protocol LCAddOn <NSObject>
Swift
protocol LCAddOn : NSObjectProtocol
-
An
See moreLCMicroService
may have an optional delegate to listen for events on start, exit and error conditions.Declaration
Objective-C
@protocol LCMicroServiceDelegate <NSObject>
Swift
protocol LCMicroServiceDelegate
-
Clients of an
LCMicroService
communicate with the JavaScript service through an event emitter interface. To listen for specific events, callLCMicroService.-addEventListener:listener:
. The delegates will be called through this protocol.In JavaScript, Node.js services trigger events by calling
See moreLiquidCore.emit(event, payload)
. Thepayload
can be any JavaScript object and will get converted to the appropriate object in the host language (Swift/Objective-C).Declaration
Objective-C
@protocol LCMicroServiceEventListener <NSObject>
Swift
protocol LCMicroServiceEventListener
-
Clients must subclass an
See moreLCProcessDelegate
to get state change information from the node.js processDeclaration
Objective-C
@protocol LCProcessDelegate <NSObject>
Swift
protocol LCProcessDelegate : NSObjectProtocol