# Function: getSetting

getSetting(params?: GetSettingParams): Promise‹GetSettingRes

获取用户的当前设置

description 返回值中只会出现小程序已经向用户请求过的权限。

# 参数:

属性 类型
params? GetSettingParams

GetSettingParams

属性 类型 描述
withSubscriptions? boolean 是否同时获取用户订阅消息的订阅状态
complete? Method 接口调用结束的回调函数(调用成功、失败都会执行)
fail? Method 接口调用失败的回调函数
success? Method 接口调用成功的回调函数

# 返回值:

Promise‹GetSettingRes