Classes

The following classes are available globally.

  • LCLiquidView exposes an LCMicroService through a UI. An LCMicroService attaches to a UI in JavaScript by calling LiquidCore.attach(surface, callback) where surface is a string representing the LCSurface class canonical name (e.g. org.liquidplayer.surfaces.console.ConsoleSurface) and callback is a callback function which accepts an error parameter. If error is undefined, then the LCSurface was attached correctly and is ready for use. Otherwise, error is a descriptive error message.

    See more

    Declaration

    Objective-C

    @interface LCLiquidView : UIView

    Swift

    class LCLiquidView : UIView
  • An LCMicroService is the basic building block of LiquidCore. It encapsulates the runtime environment for a client-side micro app. An LCMicroService is a complete virtual machine whose operation is defined by the code referenced by the service URI. When an LCMicroService 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 an LCSurface.

    See more

    Declaration

    Objective-C

    @interface LCMicroService : NSObject

    Swift

    class LCMicroService
  • An LCSurface must register itself with LiquidCore to become available to micro services.

    See more

    Declaration

    Objective-C

    @interface LCSurfaceRegistration : NSObject

    Swift

    class LCSurfaceRegistration : NSObject