Native

API ReferenceRendererNative

Source


Native.New()

Static method of
Native
Parameters
  • options — Objectoptional
Returns
Native

Source


Native.defineProperty()

Static method of
Native
Parameters
  • config — Object

Defines new property with the given name.

For each property, signal onXYZChange is created, where XYZ is the given name.

config parameter must be an object with specified keys:

  • enabled - whether it's supported on current platform,
  • name - name of the property,
  • type - type of predefined condifuration described below,
  • defaultValue,
  • setter,
  • getter,
  • developmentSetter
  • implementationValue - function returning value passed to the implementation.

Predefined types

Source

text

Source

number

Source

boolean

Source

color

Source

item

Source


constructor()

Extends
Item
Returns
Native

Source


set()

Parameters
  • propName — String
  • val — Any

Source


call()

Parameters
  • funcName — String
  • args... — Any

Source


on()

Parameters
  • eventName — String
  • listener — Function

Source

results matching ""

    No results matching ""