# wx.addPhoneCalendar(Object object)

Start from base library version 2.15.0. Please remaining backward compatible.

with Promise style call: Supported

Mini Program plugin: Not supported

Add events to the system calendar

# parameter

# Object object

attribute type Default values Required Introductions
title string yes Calendar Event Title
startTime number yes Start time unix timestamp
allDay boolean no All day event, default false
description string no Event explaination
location string no Event location
endTime string no End time unix Timestamp, the default is the same as the start time
alarm boolean no Whether to remind, default true
alarmOffset number no Reminder lead, unit seconds, default 0 Indicates a start reminder
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)