HandlerFactory
Stentor API Reference / stentor-handler-factory/src / HandlerFactory
Class: HandlerFactory
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:34
Constructorsβ
Constructorβ
new HandlerFactory(
props?):HandlerFactory
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:39
Parametersβ
props?β
Returnsβ
HandlerFactory
Methodsβ
fromProps()β
fromProps(
props):AbstractHandler<Content,Data,Forward,Redirect> |undefined
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:87
Converts handler properties to the appropriate Handler.
Parametersβ
propsβ
Returnsβ
AbstractHandler<Content, Data, Forward, Redirect> | undefined
Staticβ
from()β
from(
request,context):AbstractHandler<Content,Data,Forward,Redirect> |undefined
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:118
Gets the correct handler from storage.
Depending on if audio is playing or not, the correct handler is picked off the storage if it is available or not.
Parametersβ
requestβ
contextβ
Returnsβ
AbstractHandler<Content, Data, Forward, Redirect> | undefined