Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取、设置音频的开关状态 enabled 值和实际相反 #7

Open
ekoooo opened this issue Jul 8, 2020 · 1 comment
Open

Comments

@ekoooo
Copy link

ekoooo commented Jul 8, 2020

获取音频开关状态 TTLockClient.getDefault().getMuteModeState 方法成功回调 onGetMuteModeStateSuccess(boolean enabled),但是 enabled 值和实际相反,有声音 enabledfalse,没有声音 enabled 值为 true.

同样,设置音频开关状态 TTLockClient.getDefault().setMuteMode 第一个参数 boolean enable 传入 true 实际效果是关闭音频,false 为开启音频。官网文档备注为 enable true – on, false – off,和实际相反?

@ttlock
Copy link
Owner

ttlock commented Dec 31, 2020

这个接口的意思是设置静音模式 并不是开启声音的意思。所以跟你理解的会相反

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants