当前位置: 首页 > 文档资料 > Rokid IOS SDK 文档 >

云提醒

优质
小牛编辑
132浏览
2023-12-01

获取提醒列表

请求获取设备上的提醒列表:

Swift:

RokidMobileSDK.skill?.remind.getCloudList(deviceId: String,
                           completion: @escaping (_ error: RKError?, _ reminds: [SDKRemind]?) -> Void)

Objc:

[RokidMobileSDK.skill.remind getCloudListWithDeviceId:self.device.id completion:^(RKError * error, NSArray<SDKRemind *> * remindArr) {
    // ... 
}];

SDKRemind 字段说明:

参数类型必要?说明
idint闹钟Id
yearint
monthint
dayint
hourint小时
minuteint分钟
contentString提醒内容

删除提醒

删除一个提醒:

Swift:

RokidMobileSDK.skill?.remind.deleteCloud(deviceId: String, remind: SDKRemind, completion: @escaping (success: Bool?) -> Void)))

Objc:

[RokidMobileSDK.skill.remind deleteCloudWithDeviceId:@"XXX" remind:reminder completion:^(BOOL succeed)) {
    // ...
}];