DarkMatterCore

  • A class representing a DarkMatter error.

    See more

    Declaration

    Swift

    @objc public class DarkMatterError: NSObject, Error
  • Error codes for DarkMatter errors.

    See more

    Declaration

    Swift

    @objc public enum DarkMatterErrorCode: Int
  • Data class containing an error code and an error message string.

    See more

    Declaration

    Swift

    @objc public class ErrorData: NSObject
  • A service for mananging dark errors accross all dark matter services.

    See more

    Declaration

    Swift

    @objc public class DarkMatterErrorService: NSObject
  • Hive node that initializes the DarkMatter system.

    Important

    This node must be subclassed by the app to override the processNode behavior and provide the proper tokens.
    See more

    Declaration

    Swift

    open class DarkMatterNode: HiveDrone
  • The Core DarkMatter class interface. stores ids and keys for the app.

    See more

    Declaration

    Swift

    @objc public protocol IDarkMatter: NSObjectProtocol
  • Interface for managing network requests.

    See more

    Declaration

    Swift

    public protocol INetworkManager
  • Interface for a network request.

    See more

    Declaration

    Swift

    public protocol IRequest
  • A NetworkManager object lets you send network requests. When it receives a request to send it will be added to a queue and the queue is processed one request at a time in a FIFO manner.

    When an error is received in a response the request will be automatically retried if the status code supports retries as determined by calling the DarkMatterError.shouldRetry(code:) method.

    See more

    Declaration

    Swift

    @objc public class NetworkManager: NSObject, INetworkManager
  • The Options class represents options for configuring the timeout and retry behavior of a network request.

    See more

    Declaration

    Swift

    @objc public class Options: NSObject
  • A Request object represents a network request.

    See more

    Declaration

    Swift

    @objc public class Request: NSObject, IRequest
  • A Response object represents the response from a network request.

    See more

    Declaration

    Swift

    @objc public class Response: NSObject