ChronosManager

@objc public class ChronosManager: NSObject

Manages the Chronos system.

  • Singleton shared instance

    Declaration

    Swift

    public static let instance = ChronosManager()
  • Undocumented

    Declaration

    Swift

    public func preInitialize()
  • Adds a list of Sequences for Chronos to keep track of.

    Declaration

    Swift

    public static func addSequences(interval: [TimeSequence])

    Parameters

    interval

    An array of sequences to add.

  • Removes a sequence from Chronos.

    Declaration

    Swift

    public static func removeSequence(interval: TimeSequence)

    Parameters

    interval

    The sequence to remove.

  • This will clear sequences from the queue.

    Declaration

    Swift

    public static func clearSequences(clearUserCreated: Bool)

    Parameters

    clearUserCreated

    If true this will clear all sequences, if false will clear only sequences that were created from the manifest.

  • The current Unix time that Chronos has.

    Declaration

    Swift

    public static var currentTime: Double
  • This takes a string for a Time Sequence and returns back that one with that name.

    Declaration

    Swift

    public static func getTimeSequence(name: String) -> TimeSequence?

    Parameters

    name

    The name of the Time Sequence to get.

    Return Value

    The Time Sequence with the given name or nil if none are found.

  • Gets a list of all the currently active time sequences.

    Declaration

    Swift

    public static func getActiveTimeSequences() -> [TimeSequence]

    Return Value

    A list of Time Sequences that are active now.