Editor.send

Sends a message to all attached editors.

In most cases, you won't have to manually specify template parameters, they should be inferred.

  1. void send(string key, DataType value)
  2. void send(string key, DataType value, void delegate(ResponseType) cb)
    class Editor
    final
    void
    send
    (
    DataType
    ResponseType
    )
    (
    string key
    ,
    DataType value
    ,
    void delegate(
    ResponseType
    )
    cb
    )

Parameters

key
Type: string

The key of the event.

value
Type: DataType

The data along side it.

cb
Type: void delegate(
ResponseType
)

The callback to call when a response is received.

Examples

// DataType inferred as string, ResponseType inferred as string.
editor.send( "my_key", "my_value", ( string response ) {
   // Handle response
} );

Meta