getRegisteredUsers static method
Future<void>
getRegisteredUsers({
- required bool fetchFromServer,
- required dynamic flyCallback(
- FlyResponse response
This method fetches the list of users registered on the Mirrorfly platform under the license key.
Parameters:
fetchFromServer - A boolean value that determines the source of the user list.
If true, the list is fetched from the server. If false, the list is fetched from the local.
Returns:
A Future<void> that completes when the operation is finished.
Example usage:
await Mirrorfly.getRegisteredUsers(
fetchFromServer: true,
flyCallback: (response) {
if (response.isSuccess) {
print("Successfully fetched registered users: ${response.data}");
} else {
print("Failed to fetch registered users: ${response.errorMessage}");
}
},
);
Implementation
static Future<void> getRegisteredUsers(
{required bool fetchFromServer,
required Function(FlyResponse response) flyCallback}) {
return FlyChatFlutterPlatform.instance
.getRegisteredUsers(fetchFromServer, flyCallback);
}