observerValidation

fun ShieldCert.observerValidation(callback: (ValidationEvent) -> 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.observerValidation { [weak self] value in
DispatchQueue.main.async {
self?.observateValidate = value.description
}
}