Entry points specific to Image Effect plugins

publishedInteractActions

See discussion of equivalent for Element plugins.

renderEditingCanvasPreview(canvas, sourceImage, transformMatrix)

Render a preview of the effect in the host application's editing UI.

The canvas parameter is a Canvas object similar to the HTML5 Canvas API. (See renderIcon() discussion above.)

writeIOSCustomInterfaceCode()

Allows to write additional code such as properties to the interface of the generated class.

Example:

this.writeIOSCustomInterfaceCode = function () {
  return ""
    + "@property (nonatomic) float filterIntensity;\n";
}

writeIOSCustomImplementationCode()

Allows to write additional code such as methods to the implementation of the generated class.

Example:

this.writeIOSCustomImplementationCode = function () {
  return ""
    + "- (void)setFilterIntensity:(float)filterIntensity\n"
    + "{\n"
    + "    _filterIntensity = filterIntensity;\n"
    + "    [self setNeedsDisplay];\n"
    + "}\n";
}

writeIOSCodeForInit(varName)

Allows to write additional code to the initialization method of the generated class.

Example:

this.writeIOSCodeForInit = function (viewVarName) {
  return ""
    + "_filterIntensity = " + this._data.effectIntensity + ";\n";
}

writeIOSLayoutUpdateCode(varName)

Allows to write additional code to the layout update method of the generated class.

Example:

this.writeIOSLayoutUpdateCode = function () {
  return ""
    + "// some code\n";
}

writeIOSCodeForScrolling(scrollViewCode, layerCode)

Allows to write additional code to the method which called when the element is scrolled by the user.

Example:

this.writeIOSCodeForScrolling = function (scrollViewCode, layerCode, horizontal) {
    return ""
      + "// some code\n";
}

writeIOSCodeForImageFilter(imageVarName, contextVarName)

Allows to write additional code to the display update method of the generated class.

Example:

this.writeIOSCodeForImageFilter = function (imageVarName, contextVarName) {
  return ""
    + "// some code\n";
}

writeIOSCodeForPublishedInteractAction(actionId, exporter, varName, arg)

See discussion of equivalent for Element plugins.

writeIOSTakeValuesFromDataSheetCode(exporter, clipVarName, columnName)

See discussion of equivalent for Element plugins.

writeAndroidInitCode(varName)

Allows to write additional code to the initialization method of the generated class.

Example:

this.writeAndroidInitCode = function (viewVarName) {
  return ""
    + "// some code\n";
}

writeAndroidPreDrawCode()

Allows to write additional code to the drawing method of the generated class.

Example:

this.writeAndroidPreDrawCode = function () {
  return ""
    + "// some code\n";
}

writeAndroidPostDrawCode()

Allows to write additional code to the drawing method of the generated class.

Example:

this.writeAndroidPostDrawCode = function () {
  return ""
    + "// some code\n";
}

writeAndroidTakeValuesFromDataSheetCode(exporter, clipVarName, columnName)

See discussion of equivalent for Element plugins.