Skip to content
v1
文档/Android SDK/用户

读取本地用户资料

接口

kotlin
suspend fun getLocalUser(userId: String): BimUserInfo?

代码示例

kotlin
val user = BimImManager.getInstance().userService.getLocalUser("u10002")
if (user == null) {
    println("local profile is not available")
}

该方法只读取当前账号隔离的本地资料,不发起网络请求。需要刷新服务端资料时使用 queryUser