Diagnostics
@objc
public class Diagnostics : NSObject, InitializationStateProvider
Class to perform diagnostics
-
The version of the runtime library using a dotted string representation (e.g. 1.0.0).
Declaration
Swift
public static var runtimeVersion: Result<String, Error> { get }
-
Provides the BlackBerry App Container ID.
Please provide this value to BlackBerry Support to aid in identifying uploaded logs.
Declaration
Swift
public static var appContainerID: Result<String, Error> { get }
-
Send recent logs to BlackBerry Support.
Recent logs from the runtime are stored encrypted in the BlackBerry secure container. A developer may upload these securely to BlackBerry to assist with troubleshooting. After uploading please provide your BlackBerry App Container ID when contacting BlackBerry Support.
Declaration
Swift
public static func uploadLogs(reason: String, listener: ((LogsUploadStatus) -> Void)? = nil) throws
Parameters
reason
Recommended to be provided as an aid to log analysis. This could be a user entered reason, or some internal identifier from the developer to help locate the logs.
listener
Callback to be invoked when the log upload process finishes.