sendTerminateRequest method

Future<void> sendTerminateRequest()

Sends a terminate request to a running application.

This API can be only used to terminate sub-applications launched by the caller application as a group. To terminate background applications not launched as a group, use AppRunningContext.terminate of the tizen_app_manager package instead.

Applications that were launched by the callee application as a group will be terminated by this API as well.

Implementation

Future<void> sendTerminateRequest() async {
  await _setAppControlData();

  final Map<String, dynamic> args = <String, dynamic>{'id': _id};
  await _methodChannel.invokeMethod<void>('sendTerminateRequest', args);
}