new TargetRouteEntryUtils(mainRouterInstance)
Parameters:
Name | Type | Description |
---|---|---|
mainRouterInstance |
MainRouter |
Members
currentInflatedTargetRouteEntry :InflatedRoutingInfo
Type:
- InflatedRoutingInfo
currentTargetRouteEntry :ExtendedRoutingInfo
Type:
- ExtendedRoutingInfo
historyStack :Object
Holds previous entries used in back pop to get data for restoration of stateUpdated on consolidation, but sent back in consolidation data before pop, if url given for new inflated EXACTLY matches previous and is a pop (back event specifically). If not, then state not saved and warn (should not be the case btw, if state well saved. Or maybe opened the app afresh)
Type:
- Object
tempInflatedTargetRouteEntry :InflatedRoutingInfo
Has a valid value only when route is different
Type:
- InflatedRoutingInfo
tempTargetRouteEntry :RoutingInfo
Has a valid value only when route is different
Type:
- RoutingInfo
Methods
consolidateTargetRouteEntry(args) → {RouteBuildInfo}
Parameters:
Name | Type | Description |
---|---|---|
args |
RouteBuildPipelineArgs |
Returns:
- Type
- RouteBuildInfo
flushTemps()
Removes all temps
getDiffTargetEntry(targetRouteEntry) → {DiffTargetEntryInfo}
INTERNAL
Purpose of algo is to determine from where we'll start inflating new fragments
Return the diff and diffInfo? ie. { diffTargetEntry, childDiffIndex }
If childDiffIndex is not undefined (-1), then use currentInflatedTargetRouteEntry
to source target and all inflated children before index, then add to array inflated children
from childDiffIndex to end of diffTargetEntry nestedChildren array inclusive childDiffIndex
Parameters:
Name | Type | Description |
---|---|---|
targetRouteEntry |
RoutingInfo |
Returns:
- Type
- DiffTargetEntryInfo
saveRouteStates(savedState)
Parameters:
Name | Type | Description |
---|---|---|
savedState |
SavedFragmentState |
(static) defaultInflatedTargetRouteEntry(fullUrl) → {InflatedRoutingInfo}
Parameters:
Name | Type | Description |
---|---|---|
fullUrl |
string |
Returns:
- Type
- InflatedRoutingInfo