new MainRoutingPipeline(mainRouter, accessCallback)
Parameters:
- Source:
Members
Type:
- Source:
Type:
- Source:
Type:
- Source:
Methods
buildFragments(args)
Parameters:
Name |
Type |
Description |
args |
BuildStatePipelineArgs
|
|
- Source:
(async) buildRoutePipeline(args)
Asynchronous. Builds the routing pipeline and starts build
Parameters:
Name |
Type |
Description |
args |
RouteBuildPipelineArgs
|
|
- Source:
canStartRouting()
Tell whether can start routing. Else, throws error
Can only start routing if pipeline building or complete
- Source:
clearActiveBuildInfo(clearCancel)
Clears the buildStack only. cancelStack cleared after cancelling build
Parameters:
Name |
Type |
Description |
clearCancel |
boolean
|
|
- Source:
onStateBuildCancelled(args)
WORK ON THIS NEXT
BUILD FRAGMENTS FIRST
Parameters:
Name |
Type |
Description |
args |
RouteBuildPipelineArgs
|
|
- Source:
onStateBuildStarting(args)
Parameters:
Name |
Type |
Description |
args |
BuildStatePipelineArgs
|
|
- Source:
onStateBuilding(args)
State callback for transition to building
Parameters:
Name |
Type |
Description |
args |
BuildStatePipelineArgs
|
|
- Source:
onStateComplete(args)
Parameters:
Name |
Type |
Description |
args |
RouteBuildPipelineArgs
|
|
- Source:
onStateConsent(argsOLD, args)
Parameters:
Name |
Type |
Description |
argsOLD |
RouteBuildPipelineArgs
|
|
args |
BuildStatePipelineArgs
|
|
- Source:
onStateConsentDenied(args)
Parameters:
Name |
Type |
Description |
args |
RouteBuildPipelineArgs
|
|
- Source:
requestDestroy(destroyFragmentStack, cb)
Parameters:
- Source:
startRoutingBuildPipeline(args)
Called by main router to start routing. ONLY command for routing
Throws a build error if pipeline was in consenting state. Cannot cancel a consent
Use when popping states to forward or reverse the pop request to current consenting path
Parameters:
Name |
Type |
Description |
args |
RouteBuildPipelineArgs
|
|
- Source:
transitionPipelineState(newState, args)
Handle pipeline state transitions. Ensures the transition is valid
Calls state callbacks if any is needed
Parameters:
Name |
Type |
Description |
newState |
number
|
|
args |
RouteBuildPipelineArgs
|
|
- Source:
(static) getNameofPipelineState(state) → {string}
Get the name of a pipeline state
Parameters:
Name |
Type |
Description |
state |
number
|
|
- Source:
Returns:
-
Type
-
string