Skip to content

Commit

Permalink
Add isInitialized property
Browse files Browse the repository at this point in the history
  • Loading branch information
winsmith committed Dec 29, 2021
1 parent 79a9aa4 commit fb518b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/TelemetryClient/TelemetryClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ public final class TelemetryManagerConfiguration {
///
/// Use an instance of `TelemetryManagerConfiguration` to configure this at initialization and during its lifetime.
public class TelemetryManager {
/// Returns `true` when the TelemetryManager already has been initialized correctly, `false` otherwise.
public static var isInitialized: Bool {
initializedTelemetryManager != nil
}

public static func initialize(with configuration: TelemetryManagerConfiguration) {
initializedTelemetryManager = TelemetryManager(configuration: configuration)
}
Expand Down

0 comments on commit fb518b5

Please sign in to comment.