提醒 Remind

获取提醒列表

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

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 字段说明:

参数 类型 必要? 说明
id int 闹钟Id
year int
month int
day int
hour int 小时
minute int 分钟
content String 提醒内容

删除提醒

删除一个提醒:

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)) {
    // ...
}];

results matching ""

    No results matching ""