register

fun register()

Registers all declared event handlers for this state and then calls onRegister.