From 70784326d0804ef57e75fdef3ee3bbec4105cb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=87=AF?= Date: Mon, 22 Dec 2025 14:53:12 +0000 Subject: [PATCH 1/4] =?UTF-8?q?add=20=E8=BF=90=E5=8A=A8=E8=A1=A8=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=BC=80=E5=8F=91/=E6=8E=A5=E5=8F=A3/interface/@ohos.?= =?UTF-8?q?calendarManager.d.ts.=20add=20calendarManager=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵凯 --- .../interface/@ohos.calendarManager.d.ts" | 712 ++++++++++++++++++ 1 file changed, 712 insertions(+) create mode 100644 "\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" diff --git "a/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" new file mode 100644 index 0000000..b8a9005 --- /dev/null +++ "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" @@ -0,0 +1,712 @@ +/* + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit CalendarKit + */ +import { AsyncCallback } from './@ohos.base'; +import type Context from './application/Context'; +/** + * This provides calendar data access abilities. + * @namespace calendarManager + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ +/** + * This provides calendar data access abilities. + * @namespace calendarManager + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ +declare namespace calendarManager { + /** + * Defines the CalendarManager class and provides functions to access the calendar data. + * + * @typedef CalendarManager + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Defines the CalendarManager class and provides functions to access the calendar data. + * + * @typedef CalendarManager + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + export interface CalendarManager { + /** + * Create calendar instance. + * + * @permission ohos.permission.WRITE_CALENDAR + * @param { CalendarAccount } calendarAccount - calendar account to create calendar + * @param { AsyncCallback } callback - the callback of createCalendar + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + createCalendar(calendarAccount: CalendarAccount, callback: AsyncCallback): void; + /** + * Delete calendar instance. + * + * @permission ohos.permission.WRITE_CALENDAR + * @param { Calendar } calendar - calendar to be deleted + * @param { AsyncCallback } callback - the callback of deleteCalendar + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + deleteCalendar(calendar: Calendar, callback: AsyncCallback): void; + /** + * Get calendar instance from database by specified account. + * + * @permission ohos.permission.READ_CALENDAR + * @param { CalendarAccount } calendarAccount - specify calendar account to retrieve + * @param { AsyncCallback } callback - the callback of getCalendar + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Get calendar instance from database by specified account. + * + * @permission ohos.permission.READ_CALENDAR + * @param { CalendarAccount } calendarAccount - specify calendar account to retrieve + * @param { AsyncCallback } callback - the callback of getCalendar + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + getCalendar(calendarAccount: CalendarAccount, callback: AsyncCallback): void; + /** + * Get default calendar instance from database. + * + * @permission ohos.permission.READ_CALENDAR + * @param { AsyncCallback } callback - the callback of getCalendar with default calendar instance + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Get default calendar instance from database. + * + * @permission ohos.permission.READ_CALENDAR + * @param { AsyncCallback } callback - the callback of getCalendar with default calendar instance + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + getCalendar(callback: AsyncCallback): void; + /** + * Get all calendar instance. + * + * @permission ohos.permission.READ_CALENDAR + * @param {AsyncCallback} callback - the callback of getAllCalendars + * @throws { BusinessError } 201 - Permission denied. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + getAllCalendars(callback: AsyncCallback): void; + } + /** + * Describes a calendar instance. + * @typedef Calendar + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Describes a calendar instance. + * @typedef Calendar + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + export interface Calendar { + /** + * Id of the calendar + * @type { number } + * @readonly + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Id of the calendar + * @type { number } + * @readonly + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + readonly id: number; + /** + * Add a single event. + * @param { Event } event - a single event to add. + * @param { AsyncCallback } callback - callback of addEvent. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Add a single event. + * @param { Event } event - a single event to add. + * @param { AsyncCallback } callback - callback of addEvent. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + addEvent(event: Event, callback: AsyncCallback): void; + /** + * Add multiple events. + * @param { Event[] } events - Indicates the information about multiple events. + * @param { AsyncCallback } callback - The callback of addEvents + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + addEvents(events: Event[], callback: AsyncCallback): void; + /** + * Delete a single event. + * @param { number } id - Indicates the ID of an event. + * @param {AsyncCallback} callback - The callback of deleteEvent. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + deleteEvent(id: number, callback: AsyncCallback): void; + /** + * Delete multiple events. + * @param { number[] } ids - Indicates the IDs of multiple events. + * @param {AsyncCallback} callback - The callback of deleteEvents. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + deleteEvents(ids: number[], callback: AsyncCallback): void; + /** + * Update a single event. + * @param { Event } event - Indicates the information about a single event. + * @param { AsyncCallback } callback - The callback of updateEvent. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + updateEvent(event: Event, callback: AsyncCallback): void; + /** + * Query the event with id from current calendar instance. + * @param { AsyncCallback } callback - The callback of getEvent with the event. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + getEvent(eventId: id, callback: AsyncCallback): void; + /** + * Query all events with all column from current calendar instance. + * @param { AsyncCallback } callback - The callback of getEvents with all events. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + getEvents(callback: AsyncCallback): void; + /** + * Get calendar configure. + * @returns { CalendarConfig } configure of current calendar. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + getConfig(): CalendarConfig; + /** + * Set calendar configure. + * @param { CalendarConfig } config - calendar config to set + * @param { AsyncCallback } callback - callback of setConfig + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + setConfig(config: CalendarConfig, callback: AsyncCallback): void; + /** + * Get calendar account. + * @returns { CalendarAccount } calendar account of current calendar. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + getAccount(): CalendarAccount; + } + /** + * Describes a calendar account. + * @typedef CalendarAccount + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Describes a calendar account. + * @typedef CalendarAccount + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + interface CalendarAccount { + /** + * Name of the calendar + * @type { string } + * @readonly + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Name of the calendar + * @type { string } + * @readonly + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + readonly name: string; + /** + * Type of the calendar + * @type { CalendarType } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Type of the calendar + * @type { CalendarType } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + type: CalendarType; + /** + * DisplayName of the calendar + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * DisplayName of the calendar + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + displayName?: string; + } + /** + * Describes a calendar configuration. + * @typedef CalendarConfig + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + interface CalendarConfig { + /** + * Whether the calendar provides a reminder + * @type { ?boolean } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + enableReminder?: boolean; + /** + * Color of the calendar + * @type { ?(number | string) } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + color?: number | string; + } + /** + * Describes an event information. + * @typedef Event + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Describes an event information. + * @typedef Event + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + interface Event { + /** + * Id of the event + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Id of the event + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + id?: number; + /** + * Type of the event + * @type { EventType } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Type of the event + * @type { EventType } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + type: EventType; + /** + * Title of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Title of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + title?: string; + /** + * Location of the event + * @type { ?Location } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Location of the event + * @type { ?Location } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + location?: Location; + /** + * start time of the event + * @type { number } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * start time of the event + * @type { number } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + startTime: number; + /** + * end time of the event + * @type { number } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * end time of the event + * @type { number } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + endTime: number; + /** + * Whether the event is allDay + * @type { ?boolean } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Whether the event is allDay + * @type { ?boolean } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + isAllDay?: boolean; + /** + * Attendees of the event + * @type { ?Attendee[] } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Attendees of the event + * @type { ?Attendee[] } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + attendee?: Attendee[]; + /** + * TimeZone of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * TimeZone of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + timeZone?: string; + /** + * Reminder time of the event + * @type { ?number[] } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Reminder time of the event + * @type { ?number[] } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + reminderTime?: number[]; + /** + * recurrenceFrequency of the event + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * recurrenceFrequency of the event + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + recurrenceFrequency?: number; + /** + * Description of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Description of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + eventContent?: string; + } + /** + * Enum for all calendar type. + * @enum { string } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Enum for all calendar type. + * @enum { string } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + enum CalendarType { + /** + * Local calendar + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Local calendar + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + LOCAL = 'local', + /** + * Email calendar + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Email calendar + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + EMAIL = 'email', + /** + * Birthday calendar + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Birthday calendar + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + BIRTHDAY = 'birthday', + /** + * CalDAV calendar + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * CalDAV calendar + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + CALDAV = 'caldav', + /** + * Subscribed calendar + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Subscribed calendar + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + SUBSCRIBED = 'subscribed' + } + /** + * Location of an event. + * @typedef Location + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Location of an event. + * @typedef Location + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + interface Location { + /** + * Location of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Location of the event + * @type { ?string } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + location?: string; + /** + * Longitude of the location + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Longitude of the location + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + longitude?: number; + /** + * Latitude of the location + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Latitude of the location + * @type { ?number } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + latitude?: number; + } + /** + * Enum for supported events type. + * @enum { number } + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * Enum for supported events type. + * @enum { number } + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + enum EventType { + /** + * normal event. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * normal event. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + NORMAL = 'Normal', + /** + * important event. + * @syscap SystemCapability.Applications.CalendarData + * @since 10 + */ + /** + * important event. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + IMPORTANT = 'Important', + /** + * Meeting event. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + DATE = 'DATE', + /** + * Meeting event. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + MEETING = 'Meeting', + /** + * Meeting event. + * @syscap SystemCapability.Applications.CalendarData + * @atomicservice + * @since 11 + */ + COMMEMORATION = 'Commemoration' + } +} +export default calendarManager; \ No newline at end of file -- Gitee From 43ff16f409eefd6bdbe639c59b3f7becf5e749e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=87=AF?= Date: Tue, 23 Dec 2025 06:24:08 +0000 Subject: [PATCH 2/4] =?UTF-8?q?update=20=E8=BF=90=E5=8A=A8=E8=A1=A8?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=BC=80=E5=8F=91/=E6=8E=A5=E5=8F=A3/interfa?= =?UTF-8?q?ce/@ohos.calendarManager.d.ts.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵凯 --- .../interface/@ohos.calendarManager.d.ts" | 1 - 1 file changed, 1 deletion(-) diff --git "a/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" index b8a9005..f2cfe96 100644 --- "a/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" +++ "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" @@ -17,7 +17,6 @@ * @kit CalendarKit */ import { AsyncCallback } from './@ohos.base'; -import type Context from './application/Context'; /** * This provides calendar data access abilities. * @namespace calendarManager -- Gitee From a87f6fa865193b91b83b0cbde6c4d9b470067c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=87=AF?= Date: Tue, 23 Dec 2025 08:07:35 +0000 Subject: [PATCH 3/4] =?UTF-8?q?update=20=E8=BF=90=E5=8A=A8=E8=A1=A8?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=BC=80=E5=8F=91/=E6=8E=A5=E5=8F=A3/interfa?= =?UTF-8?q?ce/@ohos.calendarManager.d.ts.=201=E3=80=81=E8=A3=81=E5=89=AAAt?= =?UTF-8?q?tendee=202=E3=80=81=E4=BF=AE=E6=94=B9id=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=EF=BC=9AgetEvent(eventId:=20number,=20callback:=20AsyncCallbac?= =?UTF-8?q?k):=20void;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵凯 --- .../interface/@ohos.calendarManager.d.ts" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" index f2cfe96..a7fc9b0 100644 --- "a/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" +++ "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" @@ -215,12 +215,12 @@ declare namespace calendarManager { */ updateEvent(event: Event, callback: AsyncCallback): void; /** - * Query the event with id from current calendar instance. + * Query the event with EventId from current calendar instance. * @param { AsyncCallback } callback - The callback of getEvent with the event. * @syscap SystemCapability.Applications.CalendarData * @since 10 */ - getEvent(eventId: id, callback: AsyncCallback): void; + getEvent(eventId: number, callback: AsyncCallback): void; /** * Query all events with all column from current calendar instance. * @param { AsyncCallback } callback - The callback of getEvents with all events. @@ -457,7 +457,7 @@ declare namespace calendarManager { * @atomicservice * @since 11 */ - attendee?: Attendee[]; + // attendee?: Attendee[]; /** * TimeZone of the event * @type { ?string } -- Gitee From a523e17365a1874aae544f8a1b89ea0254816f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=87=AF?= Date: Wed, 24 Dec 2025 08:01:09 +0000 Subject: [PATCH 4/4] =?UTF-8?q?update=20=E8=BF=90=E5=8A=A8=E8=A1=A8?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=BC=80=E5=8F=91/=E6=8E=A5=E5=8F=A3/interfa?= =?UTF-8?q?ce/@ohos.calendarManager.d.ts.=20=E6=9B=B4=E6=96=B0EventType?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赵凯 --- .../interface/@ohos.calendarManager.d.ts" | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git "a/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" index a7fc9b0..3da5bf2 100644 --- "a/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" +++ "b/\350\277\220\345\212\250\350\241\250\345\272\224\347\224\250\345\274\200\345\217\221/\346\216\245\345\217\243/interface/@ohos.calendarManager.d.ts" @@ -686,12 +686,12 @@ declare namespace calendarManager { */ IMPORTANT = 'Important', /** - * Meeting event. + * Date event. * @syscap SystemCapability.Applications.CalendarData * @atomicservice * @since 11 */ - DATE = 'DATE', + DATE = 'Date', /** * Meeting event. * @syscap SystemCapability.Applications.CalendarData @@ -700,7 +700,7 @@ declare namespace calendarManager { */ MEETING = 'Meeting', /** - * Meeting event. + * Commemoration event. * @syscap SystemCapability.Applications.CalendarData * @atomicservice * @since 11 -- Gitee