Optionalbind
Specifies what this is bound to during hook
invocation.
OptionalinvokeLimits the number of times that the hook will be invoked. Once the hook has been invoked this many times, it is automatically deregistered.
Optionalpriority
Sets the priority of the registered hook
Hooks of the same type (onBefore, onStart, etc) are invoked in priority order. A hook with a higher priority is invoked before the hook with a lower priority.
The default hook priority is 0
These options may be provided when registering a Transition Hook (such as
onStart)