# Function: setGameSoundStatus

setGameSoundStatus(params: SetGameSoundStatusParams): Promise‹SetGameSoundStatusRes

设置游戏音效开启状态。仅于 cymini 平台可用。 注意:调用此接口会触发 mogs.onGameSoundStatusChange

# 参数:

属性 类型 描述
params SetGameSoundStatusParams 设置游戏音效开启状态参数

SetGameSoundStatusParams

属性 类型 描述
enabled boolean 游戏音效是否开启
complete? Method 接口调用结束的回调函数(调用成功、失败都会执行)
fail? Method 接口调用失败的回调函数
success? Method 接口调用成功的回调函数

# 返回值:

Promise‹SetGameSoundStatusRes