registerCallback static method

void registerCallback(
  1. B2COperationSource source,
  2. AzureB2CCallback callback
)

Register a callback to manage result of AzureB2C asynchronous operations.

The source argument is a B2COperationSource enum and set which result the callback is interested in. The callback is an AzureB2CCallback.

See also:

Note:

  • consider to maintain a reference to the callback itself in case in your scenario it is necessary to unregister it.

Implementation

static void registerCallback(
    B2COperationSource source, AzureB2CCallback callback) {
  _callbacks[source]!.add(callback);
}