ContextIdComponent
open class ContextIdComponent : ContextIdComponentProtocol, @unchecked Sendable
Top-level API for the context_id component
-
Declaration
Swift
required public init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer)
-
Construct a new [ContextIDComponent].
If no creation timestamp is provided, the current time will be used.
Declaration
Swift
public convenience init(initContextId: String, creationTimestampS: Int64, runningInTestAutomation: Bool, callback: ContextIdCallback)
-
Regenerate the context ID.
Declaration
Swift
open func forceRotation() throws
-
Return the current context ID string.
Declaration
Swift
open func request(rotationDaysInS: UInt8) throws -> String
-
Unset the callbacks set during construction, and use a default no-op ContextIdCallback instead.
Declaration
Swift
open func unsetCallback() throws