Links

Get Connection Status and Connection Counter

Connection Status

Before following other users, it is important to verify the connection status of the target user. Our SDK provides three statuses to indicate the connection status of the target user:
  • accept: This status means that the target user has already connected.
  • pending: This status means that the target user has received a follow request, but has not yet accepted it. This status is only available when the connection method setting is With request process.
  • none: This status means that the target user has not yet connected.
  • blocked: This status means that the target user has been blocked by the current user. For further information regarding blocked/unblocked users, please visit Block and Unblock User.

Connection Counter

In addition to these statuses, our SDK also provides information about the following and follower count of the target user:
  • followingCount: This is the total number of users that the target user is following.
  • followerCount: This is the total number of users who are following the target user.
  • pendingCount: This is the total number of follow requests that the target user has received.
By providing this information, our product allows users to manage their social connections effectively and efficiently, based on their specific needs and preferences.
iOS
Android
JavaScript
TypeScript
Flutter
The follow feature functionalities are packed in AmityUserRepository and are able to be called via userRelationship.
To get the current user follow information, use getMyFollowInfo.
To get the other's user follow information, use getFollowInfo with the userId parameter.
To get the current user follow information, use the code below.
To get the other's user follow information, use the code below with the userId parameter.
Version 6
Beta (v0.0.1)
To get the current user follow information, use the code below.
To get the other's user follow information, use the code below with the userId parameter.
Last modified 1mo ago