initCallWithApiKey method

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

Implementation

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