startCallWithUUID method

Future<int> startCallWithUUID(
  1. String uuid,
  2. bool isVideo
)

Implementation

Future<int> startCallWithUUID(
  String uuid,
  bool isVideo,
) async {
  final microphoneRequest = await Permission.microphone.request();
  if (microphoneRequest.isGranted) {
    final action =
        OmiAction(actionName: OmiActionName.START_CALL_WITH_UUID, data: {
      'usrUuid': uuid,
      'isVideo': isVideo,
    });
    return await _controller.action(action);
  }
  return OmiStartCallStatus.permissionDenied.rawValue;
}