账号状态
方法总览
| 方法名称 | 行为 | 含义描述 |
|---|---|---|
| CancelCurrentDndActivity | 调用 | 关闭当前的DND功能 |
| SetDndActivityTimeForMinute | 调用 | 设置DND功能的时间;nTime: 要设置的DND时间 |
| GetDndActivityLeftTimeSeconds | 调用 | 获取DND功能的剩余时间/秒; |
CancelCurrentDndActivity
接口描述
关闭当前的DND功能
接口定义
YLSDKERR CancelCurrentDndActivity();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
SetDndActivityTimeForMinute
接口描述
设置DND功能的时间
接口定义
YLSDKERR SetDndActivityTimeForMinute(int64_t nTime);
参数描述
| 参数 | 类型 | 含义 |
|---|---|---|
| nTime | int64_t | 要设置的DND时间 |
返回值描述
| 类型 | 含义 |
|---|---|
| YLSDKERR | 错误码,详情见错误码 YLSDKERR 的定义 |
GetDndActivityLeftTimeSeconds
接口描述
获取DND功能的剩余时间/秒;
接口定义
int64_t GetDndActivityLeftTimeSeconds();
参数描述
无参数。
返回值描述
| 类型 | 含义 |
|---|---|
| int64_t | 无 |