set User Info Provider
Sets the user information provider for RongIM to retrieve user names and avatar information. After setting, when the SDK interface displays user information, it will call back getUserInfo. The implementer only needs to provide the corresponding user information based on the userId. If asynchronous retrieval of user information from the server is required, the implementer can initiate an asynchronous request within this method and return null initially. Once the asynchronous request returns, the implementer should call refreshUserInfoCache to refresh the user information based on the result.
Parameters
The user information provider UserDataProvider.UserInfoProvider.
Specifies whether IMKit should cache user information.If the App's UserInfoProvider always requires network requests to fetch user data instead of caching it locally, it may slow down the loading of user information;In such cases, it is recommended to set this parameter to true, allowing IMKit to cache the user information.