awaitConfiguration method

  1. @override
Future<void> awaitConfiguration({
  1. int? timeoutMs,
  2. String? instanceId,
})
override

Waits until the pinning configuration has been fetched, signature- verified, and accepted by the SDK's integrity check — the explicit fail-closed gate that complements the now non-blocking setup.

When timeoutMs is non-null and positive, it bounds the wait; otherwise the native SDK's default timeout applies. When instanceId is null, the global default instance is used.

Implementation

@override
Future<void> awaitConfiguration({int? timeoutMs, String? instanceId}) async {
  await methodChannel.invokeMethod('awaitConfiguration', {
    'timeoutMs': timeoutMs,
    'instanceId': instanceId,
  });
}