提交 59e27391 编写于 作者: X xinking129

fix code sample

Signed-off-by: Nxinking129 <xinxin13@huawei.com>
上级 c0e18735
......@@ -607,6 +607,10 @@ setStaticSubscriberState(enable: boolean, callback: AsyncCallback<void>): void;
```ts
CommonEventManager.setStaticSubscriberState(true, (err) => {
if (!err) {
console.info(`Set static subscriber state callback failed, err is null.`);
return;
}
if (err.code) {
console.info(`Set static subscriber state callback failed, errCode: ${err.code}, errMes: ${err.message}`);
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册