Back

_CreatePlugin

JS Py
Hello World
Content:
- Methods

Creates a new plugin object to interact with a dynamically loaded java plugin.

plg = _CreatePlugin( name, options ) → Object: Plugin

See WritingDSPlugins for more plugin information

Methods

The following methods are available on the Plugin object:

CreateObj( type, p1?, p2?, p3?, p4?, p5?, p6?, p7?, p8? ) → String
GetType() → String: “Plugin”
Send( cmd, p1?, p2?, p3?, p4?, p5?, p6?, p7?, p8? ) → String
SendCam( cmd, cam ) → String
SendImg( cmd, img?, width?, height? ) → String
SendObj( cmd, obj, p1?, p2?, p3?, p4?, p5?, p6?, p7?, p8? ) → String
all types
String
Number: integer
String: “Package Name”
app object: CameraView
app object: Image
plg.CreateObj
Requests to create a new object in the java plugin with up to 8 parameters, and expects a unique identifier as return value in return
plg.Destroy
Calls the destroy methon on the java plugin
plg.GetType
Returns the type of the control
plg.Send
Call a function in the java plugin with up to 8 parameters
plg.SendCam
Sends a camera view to the java plugin
plg.SendImg
Sends an image to the java plugin
plg.SendObj
Calls a command on an internal java object with up to 8 parameters