observerUpdate

fun ShieldCert.observerUpdate(callback: (UpdateEvent) -> Unit): Job

Observes validation events related to certificate pinning.

Return

A Flow that emits ValidationEvent objects.

// Collect the flow in a coroutine scope

ShieldCert.shared.observerUpdate { [weak self] value in
DispatchQueue.main.async {
self?.observateUpdate = value.description
}
}