AmityCommunityTopic
AmityUserTopic
AmityCommentTopic
AmityPostTopic
AmityFollowTopic
community
- subscription to changes of the community objectposts
- subscription to changes of post objects in the communitycomments
- subscription to changes of comment objects in the communitypostAndComments
- subscription to changes of post and comment objects in the communitypost
- subscription to changes of the post objectcomments
- subscription to changes of comment objects on the postcomment
- subscription to changes of the comment objectuser
- subscription to changes of the user objectposts
- subscription to changes of post objects in the user feedcomments
- subscription to changes of comment objects in the user feedpostAndComments
- subscription to changes of post and comment objects in the user feedAmityTopicSubscription
to handle topic subscription and unsubscription.myFollowers
- subscription to changes related users that current user followsmyFollowing
- subscription to changes related users that follows current user
AmityTopicSubscription
class, you can subscribe and unsubscribe to any particular topic.subscribeEvent()
and unsubscribeEvent()
method for convenience in AmityCommunity
, AmityPost
, AmityUser
and AmityComment
models. These methods help you to subscribe to a particular event without creating a topic.subscribeEvent:
or subscribeTopic
with the same value multiple times, it will maintain only one subscription.unsubscribeTopic(...)
method from AmityTopicSubscription
class or use unsubscribeEvent(:_)
method from the model itself.logout()
method is called anytime, the current session will be destroyed and all existing subscriptions will be removed.