判断SDK是否提供用户中心功能

业务场景

检查渠道是否支持用户中心的功能,根据返回结果是否【用户中心】的入口

注意事项

流程图

接口介绍

SDKManager.isUserCenterSupported(Object params)

调用示例

var params = {
  onSuccess: (res) => {
    // res.isSupported
  },
  onFailed: (errorInfo) => {
    // SDK不支持用户中心功能,游戏中将用户中心按钮设置为隐藏,用户中心功能不可用
  },
};
SDKManager.isUserCenterSupported(params);

参数说明

出参:params.onSuccess: res

参数名称类型说明最低版本
isSupportedBoolean是否支持,true-支持,false-不支持

错误码

FAQ