HiveManager

@objc public class HiveManager: NSObject

Manages the initialization queue and ensures that a node is not processed until all of it’s dependencies are complete.

  • The singleton shared instance.

    Declaration

    Swift

    public static let instance = HiveManager()
  • Stores the string from the CFBundleShortVersionString key in the Info.plist file. If that can’t be loaded defaults to the empty string.

    Declaration

    Swift

    public private(set) var bundleVersion: String
  • Stores the string from the CFBundleName key in the Info.plist file. If that can’t be loaded defaults to the empty string.

    Declaration

    Swift

    public private(set) var productName: String
  • This property tells the HiveManager what nodes should be initialized and must be set by the app before calling the initialize() method.

    The type is specified by calling self on a class that extends HiveDrone.

    HiveManager.instance.requiredNodes = [DarkMatterNode.self, GameServiceNode.self]
    

    Declaration

    Swift

    public var requiredNodes: [HiveDrone.Type] = []
  • Adds a hive initialization complete delegate.

    Declaration

    Swift

    public func addInitializationDelegate(_ delegate: HiveInitializationCompleteDelegate)

    Parameters

    delegate

    The delegate to add.

  • Removes a hive initialization complete delegate.

    Declaration

    Swift

    public func removeInitializationDelegate(_ delegate: HiveInitializationCompleteDelegate)

    Parameters

    delegate

    The delegate to remove.

  • Adds a hive process progress delegate.

    Declaration

    Swift

    public func addProgressDelegate(_ delegate: HiveProcessesProgressDelegate)

    Parameters

    delegate

    The delegate to add.

  • Removes a hive process progress delegate.

    Declaration

    Swift

    public func removeProgressDelegate(_ delegate: HiveProcessesProgressDelegate)

    Parameters

    delegate

    The delegate to remove.

  • Begins processing the initialization queue. The preInitialize() method will be called on the nodes before processing starts.

    Declaration

    Swift

    public func initialize()
  • Reinitializes a queue that has already been initialized. The preInitialize() method will not be called on the nodes.

    Declaration

    Swift

    public func retryQueue(forceReloadAll: Bool)

    Parameters

    forceReloadAll

    If true then reset() will be called on the nodes before initialization starts.