restartAgent static method

Future<void> restartAgent()

Restarts sending beacons to the collector.

Data will start flowing from the agent immediately. No change will occur if the shutdownAgent call has not been made.

Method might throw Exception.

See also shutdownAgent.

Implementation

static Future<void> restartAgent() async {
  try {
    await channel.invokeMethod<void>('restartAgent');
  } on PlatformException catch (e) {
    throw Exception(e.details);
  }
}