setPublicServiceProfileProvider

设置公众服务账号信息的提供者,供 RongIM 调用获公众服务账号名称,头像信息和公众服务号菜单。 目前 sdk 默认的公众号服务不需要开发者设置,这个接口提供了另外一种从 app 层设置公众服务账号信息的方式 设置后,当 sdk 界面展示用户信息时,会回调 getPublicServiceProfile 使用者只需要根据对应的publicServiceType, publicServiceId 提供对应的公众服务账号信息。 如果需要异步从服务器获取公众服务账号信息,使用者可以在此方法中发起异步请求,然后返回 null 信息。 在异步请求结果返回后,根据返回的结果调用 refreshPublicServiceProfile 刷新公众号信息。

Parameters

publicServiceProfileProvider

公众服务账号信息的提供者 PublicServiceProfileProvider