InboxListenerSetters.on<TActivity extends Activity>(type: new (...args: any[]) => TActivity,listener: InboxListener<TContextData, TActivity>,): InboxListenerSetters<TContextData>
Registers a listener for a specific incoming activity type.
TActivity extends Activity
listener: InboxListener<TContextData, TActivity>
A callback to handle an incoming activity.
InboxListenerSetters<TContextData>
The setters object so that settings can be chained.