inviteByPhone method
Invite the specified user to join the session by phone.
countryCode
The country code of the specified user must be in the support list.
phoneNumber
The phone number of specified user.
name
The screen name of the specified user in the session.
Return ZoomVideoSDKError_Success
if the function succeeds. Otherwise, this function returns an error.
Implementation
@override
Future<String> inviteByPhone(
String countryCode, String phoneNumber, String name) async {
var params = <String, dynamic>{};
params.putIfAbsent("countryCode", () => countryCode);
params.putIfAbsent("phoneNumber", () => phoneNumber);
params.putIfAbsent("name", () => name);
return await methodChannel
.invokeMethod<String>('inviteByPhone', params)
.then<String>((String? value) => value ?? "");
}