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
DestinationsErrortype.Declaration
Swift
@MainActor public static func errorMessage(for error: DestinationsError) -> StringParameters
errorThe
DestinationsErrortype to create a message for.Return Value
An error message.
View on GitHub