ContextIdComponent

Top-level API for the context_id component

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class>)
constructor(noPointer: NoPointer)

This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.

constructor(initContextId: String, creationTimestampS: Long, runningInTestAutomation: Boolean, callback: ContextIdCallback)

Construct a new ContextIDComponent.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun forceRotation()

Regenerate the context ID.

Link copied to clipboard
open override fun request(rotationDaysInS: UByte): String

Return the current context ID string.

Link copied to clipboard
fun uniffiClonePointer(): <Error class: unknown class>
Link copied to clipboard
open override fun unsetCallback()

Unset the callbacks set during construction, and use a default no-op ContextIdCallback instead.