1# Resource Scheduler Subsystem Changelog
2
3
4## cl.resourceschedule.reminderAgent.1
5
6The reminder agent allows you to customize buttons for system applications. Clicking a custom button will redirect you to the specified application page.
7
8**Change Impact**
9
10For system applications developed based on OpenHarmony 4.0.7.1 and later SDK versions, you can set custom buttons for reminders.
11
12**Key API/Component Changes**
13
14| Module| Class| Method/Attribute/Enum/Constant| Change Type|
15|  -- | -- | -- | -- |
16| reminderAgentManager | ActionButtonType  | ACTION_BUTTON_TYPE_CUSTOM = 2 | Added|
17| reminderAgentManager | ActionButton  | wantAgent?: WantAgent | Added|
18| reminderAgentManager | WantAgent  | uri?: string | Added|
19| reminderAgentManager | ReminderRequest   | actionButton?: [ActionButton?, ActionButton?, ActionButton?] | Changed|
20
21**Adaptation Guide**
22
23```ts
24import reminderAgentManager from '@ohos.reminderAgentManager';
25
26let targetReminderAgent: reminderAgentManager.ReminderRequestAlarm = {
27    reminderType: reminderAgentManager.ReminderType.REMINDER_TYPE_ALARM, // The reminder type is alarm clock.
28    ...
29    actionButton: [
30        {
31            title: 'Remind later',
32            type: reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_SNOOZE
33        },
34        {
35            title: 'Close',
36            type: reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_CLOSE
37        },
38        {
39            title: 'Custom',
40            type: reminderAgentManager.ActionButtonType.ACTION_BUTTON_TYPE_CUSTOM,
41            wantAgent: {
42                pkgName: "com.example.myapplication",
43                abilityName: "EntryAbility",
44            }
45        },
46    ]
47}
48```
49