updateContact static method
updateContact
Updates a session's user data.
Params
gleapUserSession
The updated user data.
Available Platforms
Android, iOS, Web
Implementation
static Future<void> updateContact({
required GleapUserProperty userProperties,
}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint(
'updateContact is not available for current operating system',
);
return;
}
await _channel.invokeMethod(
'updateContact',
{
'userProperties': userProperties.toJson(),
},
);
}