register

fun register(type: String, block: () -> Callback)

Registers a callback with the specified type.

Parameters

type

The type of the callback.

block

A lambda function that returns an instance of the callback.