ProfileLifeCycle
Introduction
The life cycle hooks for user profile business logic.
Parameter introduction
shouldAddToBlockList
Parameter type : Future< bool > Function(String userID)
Supported Platform: All
- Parameter description : Before adding a contact to block list,
true
means can add continually, whilefalse
will not add. You can make a second confirmation here by a modal, etc.
shouldDeleteFriend
Parameter type : Future< bool > Function(String userID)
Supported Platform: All
- Parameter description : Before deleting a contact or friend,
true
means can delete continually, whilefalse
will not delete. You can make a second confirmation here by a modal, etc.
shouldAddFriend
Parameter type : Future< bool > Function(String userID)
Supported Platform: All
- Parameter description : Before requesting to add a user as friend or a contact,
true
means can add continually, whilefalse
will not add. You can make a second confirmation here by a modal, etc.
didGetFriendInfo
Parameter type : Future< V2TimFriendInfo? > Function( V2TimFriendInfo? friendInfo)
Supported Platform: All
- Parameter description : After getting the user info of friend or contact, and before rendering it to the profile page.