â–¸ addPhoneCalendar(options): Promise<{}>
description Add events to the system calendar
remark supported jssdk > 4.47.0
example
Code
Parameters
| Name | Type |
|---|---|
options | AddPhoneCalendarOptions |
Returns
Promise<{}>
Interface: AddPhoneCalendarOptions
| Name | Type | Description |
|---|---|---|
| title | string | Event title, required |
| startTime | number | Start time as a Unix timestamp, required |
| allDay? | boolean | Whether the event lasts all day, default is false |
| description? | string | Event description |
| location? | string | Event location |
| endTime? | number | End time as a Unix timestamp, defaults to startTime if not provided |
| alarm? | boolean | Whether to set an alarm, default is true |
| alarmOffset? | number | Alarm offset in seconds, default 0 means alarm at start time |
Was this page helpful?
Last modified on