HandlerFactory
Stentor API Reference / stentor-handler-factory/src / HandlerFactory
Class: HandlerFactory
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:32
Constructorsβ
Constructorβ
new HandlerFactory(
props?):HandlerFactory
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:37
Parametersβ
props?β
Returnsβ
HandlerFactory
Methodsβ
fromProps()β
fromProps(
props):AbstractHandler\<Content,Data,Forward,Redirect>
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:84
Converts handler properties to the appropriate Handler.
Parametersβ
propsβ
Returnsβ
AbstractHandler\<Content, Data, Forward, Redirect>
Staticβ
from()β
from(
request,context):AbstractHandler\<Content,Data,Forward,Redirect>
Defined in: packages/stentor-handler-factory/src/HandlerFactory.ts:115
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.