On this page
Calendar
addPhoneCalendar
TIP
The API usage is as follows: wx.addPhoneCalendar(Object object)
- Functional description: Add events to system calendar
- Parameters and descriptions: Object object。
Properties Type Default value Required Description title string - Yes Calendar event title startTime number - Yes Unix timestamp of start time allDay boolean - No Is it an all-day event, default is false description string - No Event description location string - No Event location endTime string - No Unix timestamp of end time, default is the same as start time alarm boolean - No Whether to remind, default is true alarmOffset number - No Reminder advance, unit: seconds, default 0 means reminder at the beginning success Function - No Callback function for successful interface call fail Function - No Callback function for failed interface call complete Function - No Callback function for interface call completion (executed regardless of success or failure)
addPhoneRepeatCalendar
TIP
The API usage is as follows: wx.addPhoneRepeatCalendar(Object object)
Functional description: Add recurring events to system calendar
Parameters and descriptions: Object object。
Properties Type Default value Required Description title string - Yes Calendar event title startTime number - Yes Unix timestamp of start time allDay boolean - No Is it an all-day event, default is false description string - No Event description location string - No Event location endTime string - No Unix timestamp of end time, default is the same as start time alarm boolean - No Whether to remind, default is true alarmOffset number - No Reminder advance, unit: seconds, default 0 means reminder at the beginning repeatInterval string - No Repeat cycle, default month means repeat every month repeatEndTime number - No Unix timestamp of end time of repeat cycle, if not filled in means repeating all the time success Function - No Callback function for successful interface call fail Function - No Callback function for failed interface call complete Function - No Callback function for interface call completion (executed regardless of success or failure) repeatInterval
Legal value Description day Repeat every day week Repeat every week month Repeat every month The mode date cannot be greater than 28 days year Repeat every year