TIMUIKitProfileController

Introduction

Used to control the user profile.

Parameter introduction

deleteFriend

  • Parameter type : Future< V2TimFriendOperationResult? > Function(String userID)

  • Supported Platform: All

  • Parameter description : Remove a user from friend or contact.

pinedConversation

  • Parameter type : Future< V2TimCallback > Function(bool isPined, String convID)

  • Supported Platform: All

  • Parameter description : Pin the conversation to the top.

addUserToBlackList

  • Parameter type : Future< List< V2TimFriendOperationResult >? > Function(bool shouldAdd, String userID)

  • Supported Platform: All

  • Parameter description : Add a user to block list.

changeFriendVerificationMethod

  • Parameter type : Future< V2TimCallback > Function(int allowType)

  • Supported Platform: All

  • Parameter description : Change the friend adding request verification method, 0 represents "Accept all friend request", 1 represents "Require approval for friend requests", 2 represents "reject all friend requests".

updateRemarks

  • Parameter type : Future< V2TimCallback > Function(String userID, String remark)

  • Supported Platform: All

  • Parameter description : Update the remarks for other users.

setMessageDisturb

  • Parameter type : Future< V2TimCallback > Function(String userID, bool isDisturb)

  • Supported Platform: All

  • Parameter description : Set the message from a specific user as not disturb, mute notification.

showTextInputBottomSheet

  • Parameter type : void Function(BuildContext context, String title, String tips, void Function(String) onSubmitted)

  • Supported Platform: All

  • Parameter description : Show the text input bottom sheet.

loadData

  • Parameter type : void Function(String userID)

  • Supported Platform: All

  • Parameter description : Load the profile data.

dispose

  • Parameter type : void Function()

  • Supported Platform: All

  • Parameter description : Dispose it.

addFriend

  • Parameter type : Future< V2TimFriendOperationResult? > Function(String userID)

  • Supported Platform: All

  • Parameter description : Add a user as friend or contact.

results matching ""

    No results matching ""