setGroupInfoProvider

public void setGroupInfoProvider(GroupInfoProvider groupInfoProvider, boolean isCacheGroupInfo)

Sets the provider for group information.

Once set, when the SDK UI displays group information, it will call back to getGroupInfo. The implementer only needs to provide the corresponding group information based on the groupId. If asynchronous retrieval of group information from the server is required, the implementer can initiate an asynchronous request within this method and return null initially. Once the asynchronous request completes, the implementer should call refreshGroupInfoCache to refresh the information with the returned result.

Parameters

groupInfoProvider

The provider of group information.

isCacheGroupInfo

Specifies whether IMKit should cache the group information.If the GroupInfoProvider provided by the App always requires network requests to fetch group data instead of caching it locally, it may impact the loading speed of group information.In such cases, it is recommended to set this parameter to true, allowing IMKit to cache the group information.