arbiter static method

Runs the loaded candidates in configuration through Trusted Arbiter and returns the selected platform.

Call it once every candidate has settled (loaded or failed), ahead of the placement, and store the result; show the stored winner at the placement without another network call. The native SDK owns the timeout and the fallback and always completes: a single bid wins without a service call, and on timeout, error or an unavailable service the highest locally comparable USD bid wins. CloudXArbiterPlatform.none means no winner. Requires initialize to have completed.

Implementation

static Future<CloudXArbiterResult> arbiter(
  CloudXArbiterConfiguration configuration,
) async {
  final result = await _invokeMethod<Map<dynamic, dynamic>>(
    'arbiter',
    configuration.toMap(),
  );
  return CloudXArbiterResult.fromMap(result);
}