update user data
change username
when user change his name then you need to update his name in v chat also to change his name in rooms
try {
await VChatController.instance.updateUserName(name: "new name");
} on VChatSdkException catch (err) {
//handle Errors
}
change user image
try {
await VChatController.instance.updateUserImage( imagePath: file.path!);
} on VChatSdkException catch (err) {
//handle Errors
}
stop/enable notifications
//stop
await VChatController.instance.stopAllNotification();
// enable
await VChatController.instance.enableAllNotification();
logOut
- will delete local cash data
await VChatController.instance.logOut();