ActionStackTracker
public class ActionStackTracker : DebugReportable
This tracker maintains the list of active Action Stacks across all ActionSession(s).
It is responsible for vending new stacks when required, or existing ones that are not closed.
-
Undocumented
Declaration
Swift
public static let instance: ActionStackTracker
-
Returns a safe copy of all the currently open Action Stacks
Declaration
Swift
public func allActionStacks() -> [ActionStack]
-
Returns a safe copy of all the currently open Action Stacks for the given session
Declaration
Swift
public func allActionStacks(in session: ActionSession) -> [ActionStack]
-
Returns the existing Action Stack for a given feature (in any session), or nil if there isn’t one
Declaration
Swift
public func actionStack(for feature: FeatureDefinition.Type) -> ActionStack?
-
Debug function to output the state of the active stacks
Declaration
Swift
public func dumpActionStacks() -> String
-
Undocumented
Declaration
Swift
public func writeHumanReadableReport(to data: inout Data, userInitiatedOnly: Bool)
-
Undocumented
Declaration
Swift
public func writeJSONReport(to data: inout Data, userInitiatedOnly: Bool)
-
Undocumented
Declaration
Swift
func copyReport(to path: URL, options: Set<DebugReportOption>)