initWithDIDRequestMessageLoop method

dynamic initWithDIDRequestMessageLoop(
  1. Context context,
  2. int loopTimeSeconds,
  3. dynamic loopCallback(
    1. String encodedMessage
    )
)

Initializes the agent with a DID request message loop and connects to the server.

context - The context object. loopTimeSeconds - The time interval in seconds between each loop iteration. loopCallback - The callback function that takes an encoded message as a parameter and is called in each loop iteration.

Implementation

initWithDIDRequestMessageLoop(
  Context context,
  int loopTimeSeconds,
  Function(String encodedMessage) loopCallback,
) {
  didConnectRequestLoop(this, context, loopTimeSeconds, loopCallback);
}