DestinationsSupport
@MainActor
public final class DestinationsSupport
A singleton object which contains global options and an internal logger for Destinations. If you wish to interact with this class, please use the shared
reference.
-
Logger used for Destinations debug log entries.
Declaration
Swift
@MainActor public static let logger: PMLogger
-
A singleton reference. Any interactions with this class should be through this instance.
Declaration
Swift
@MainActor public static var shared: DestinationsSupport { get }
-
Determines whether Destinations should output debug statements.
Declaration
Swift
@MainActor public var shouldShowDebugStatements: Bool { get set }
-
Logs a Destinations error.
Declaration
Swift
@MainActor public static func logError(error: Error)
-
Returns an error message for the specified
DestinationsError
type.Declaration
Swift
@MainActor public static func errorMessage(for error: DestinationsError) -> String
Parameters
error
The
DestinationsError
type to create a message for.Return Value
An error message.