initCallWithApiKey method

Future<bool> initCallWithApiKey({
  1. String? usrName,
  2. String? usrUuid,
  3. String? apiKey,
  4. String? phone,
  5. String? fcmToken,
  6. bool isVideo = true,
  7. String projectId = "",
})

Implementation

Future<bool> initCallWithApiKey({
  String? usrName,
  String? usrUuid,
  String? apiKey,
  String? phone,
  String? fcmToken,
  bool isVideo = true,
  String projectId = "",
}) async {
  final action =
      OmiAction(actionName: OmiActionName.INIT_CALL_API_KEY, data: {
    'fullName': usrName,
    'usrUuid': usrUuid,
    'apiKey': apiKey,
    'phone': phone,
    'isVideo': isVideo,
    'fcmToken':fcmToken,
    'projectId': projectId
  });
  return await _controller.action(action);
}