AmityCoreClient class
Amity Core Client to do primary Setup
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifications(
) → AmityNotification -
toString(
) → String -
A string representation of this object.
inherited
-
updateUser(
) → UserUpdateQueryBuilder - API to update the user
-
validateTexts(
List< String> texts) → Future<bool> -
validateUrls(
List< String> urls) → Future<bool>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- analyticsEngine ↔ AnalyticsEngine?
-
getter/setter pair
Static Methods
-
disconnect(
) → void - temporarily disconnect chat real-time events from the system,
-
getAnalyticsEngine(
) → AnalyticsEngine? -
getConfiguration(
) → AmityClientConfiguration -
getCurrentUser(
) → AmityUser - Get logged in user if user is not logged in this method will Through AmityException
-
getUserId(
) → String - Get logged in user id if user is not logged in this method will Through AmityException
-
hasPermission(
AmityPermission permission) → AmityPermissionValidator - Check if Current user have the permissions
-
isUserLoggedIn(
) → bool - Check if user is logged in
-
login(
String userId) → LoginQueryBuilder - Login with userId, this will create user session
-
logout(
) → Future< void> - Logout will wipe out all the data AmityCoreClient holds.
-
newFileRepository(
) → AmityFileRepository - Create new File Repository
-
newUserRepository(
) → UserRepository - Create new User Repository
-
registerDeviceNotification(
String fcmToken) → Future - Register the devie to receive FCM token
-
setup(
{required AmityCoreClientOption option, bool sycInitialization = false}) → Future - Do the intial set
-
setupSessionComponents(
) → void -
unregisterDeviceNotification(
) → Future - Unregister the device with FCM