# Function: requestSubscribeSystemMessage

requestSubscribeSystemMessage(params: RequestSubscribeSystemMessageParams): Promise‹RequestSubscribeSystemMessageRes

调起小游戏系统订阅消息界面 返回用户订阅消息的操作结果

description 当用户勾选了订阅面板中的"总是保持以上选择,不再询问"时,模板消息会被添加到用户的小游戏设置页,通过 getSetting` 接口可获取用户对相关模板消息的订阅状态。

description 注意事项:

  • 需要在 touchend 事件的回调中调用;
  • 使用前建议阅读 小游戏系统订阅消息使用指引;
  • 系统订阅消息只需要订阅一次,永久有效;

# 参数:

属性 类型
params RequestSubscribeSystemMessageParams

RequestSubscribeSystemMessageParams

属性 类型 描述
msgTypeList keyof string[] 系统订阅消息类型列表
complete? Method 接口调用结束的回调函数(调用成功、失败都会执行)
fail? Method 接口调用失败的回调函数
success? Method 接口调用成功的回调函数

# 返回值:

Promise‹RequestSubscribeSystemMessageRes