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,
truemeans can add continually, whilefalsewill 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,
truemeans can delete continually, whilefalsewill 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,
truemeans can add continually, whilefalsewill 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.