1e41f4b71Sopenharmony_ci# @ohos.reminderAgentManager (后台代理提醒)(系统接口)
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci本模块提供后台代理提醒的能力,即当应用被冻结或应用退出时,计时和提醒的功能将被系统服务代理。在开发过程中,开发者可以调用本模块接口创建定时提醒,提醒类型支持倒计时、日历、闹钟三种。
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **说明:**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
8e41f4b71Sopenharmony_ci>
9e41f4b71Sopenharmony_ci> 当前页面仅包含本模块的系统接口,其他公开接口请参见[@ohos.reminderAgentManager (后台代理提醒)](js-apis-reminderAgentManager.md)。
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci## 导入模块
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci```ts
15e41f4b71Sopenharmony_ciimport reminderAgentManager from '@ohos.reminderAgentManager';
16e41f4b71Sopenharmony_ci```
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci## ActionButtonType
19e41f4b71Sopenharmony_ci
20e41f4b71Sopenharmony_ci按钮的类型。
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci**系统能力**:SystemCapability.Notification.ReminderAgent
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci| 名称 | 值 | 说明 |
25e41f4b71Sopenharmony_ci| -------- | -------- | -------- |
26e41f4b71Sopenharmony_ci| ACTION_BUTTON_TYPE_CUSTOM<sup>10+</sup>  | 2 | 表示自定义的按钮。 |
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ci## ActionButton
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci弹出的提醒通知中按钮的类型和标题。
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ci**系统能力**:SystemCapability.Notification.ReminderAgent
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ci| 名称 | 类型 | 必填 | 说明 |
35e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
36e41f4b71Sopenharmony_ci| wantAgent<sup>10+</sup> | [WantAgent](./js-apis-reminderAgentManager.md#wantagent) | 否 | 点击按钮跳转的ability信息。 |
37e41f4b71Sopenharmony_ci| dataShareUpdate<sup>11+</sup> | [DataShareUpdate](#datashareupdate11) | 否 | 点击按钮将更新应用数据库。 |
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci## DataShareUpdate<sup>11+</sup>
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci更新数据库需要的参数信息。<br/>
42e41f4b71Sopenharmony_ci数据提供方需要在module.json5中的proxyDatas节点定义要共享的表的标识,读写权限和基本信息。配置方式请见[数据代理](../../database/share-data-by-silent-access.md)。
43e41f4b71Sopenharmony_ci
44e41f4b71Sopenharmony_ci**系统能力**:SystemCapability.Notification.ReminderAgent
45e41f4b71Sopenharmony_ci
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci| 名称 | 类型 | 必填 | 说明 |
48e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- |
49e41f4b71Sopenharmony_ci| uri | string | 是 | 数据使用的URI,是跨应用数据访问的唯一标识。 |
50e41f4b71Sopenharmony_ci| equalTo | Record<string, number \| string \| boolean> | 是 | 指示筛选条件,当前仅支持通过等于筛选。|
51e41f4b71Sopenharmony_ci| value | [ValueBucket](../apis-arkdata/js-apis-data-valuesBucket.md#valuesbucket) | 是 | 指示要更新的数据。 |
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci## ReminderRequestCalendar
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci日历实例对象,用于设置提醒的时间。
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci**系统能力**:SystemCapability.Notification.ReminderAgent
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci| 名称                         | 类型                                                     | 必填 | 说明                                               |
60e41f4b71Sopenharmony_ci| ---------------------------- | -------------------------------------------------------- | ---- | -------------------------------------------------- |
61e41f4b71Sopenharmony_ci| rruleWantAgent<sup>12+</sup> | [WantAgent](./js-apis-reminderAgentManager.md#wantagent) | 否   | 自定义重复日程,指明需要拉起的 Service Extension。 |