mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-04-14 03:01:03 +00:00
cherry pick 72efb26 from https://gitee.com/zhaobaoxin1/interface_sdk-js_2/pulls/13467
update Signed-off-by: z30053788 <zhaobaoxin1@huawei.com> Change-Id: Iaabc165be2947f431276ca3b66f4a65e2ef697f1
This commit is contained in:
parent
c2fdd9ac4b
commit
51a857f1df
6
api/@ohos.events.emitter.d.ts
vendored
6
api/@ohos.events.emitter.d.ts
vendored
@ -221,7 +221,7 @@ declare namespace emitter {
|
|||||||
function off(eventId: string): void;
|
function off(eventId: string): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unsubscribe specified callback function from an event.
|
* Unsubscribe from an event.
|
||||||
*
|
*
|
||||||
* @param { number } eventId - indicates ID of the event to unsubscribe from.
|
* @param { number } eventId - indicates ID of the event to unsubscribe from.
|
||||||
* @param { Callback<EventData> } callback - indicates callback used to receive the event.
|
* @param { Callback<EventData> } callback - indicates callback used to receive the event.
|
||||||
@ -229,7 +229,7 @@ declare namespace emitter {
|
|||||||
* @since 10
|
* @since 10
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Unsubscribe specified callback function from an event.
|
* Unsubscribe from an event.
|
||||||
*
|
*
|
||||||
* @param { number } eventId - indicates ID of the event to unsubscribe from.
|
* @param { number } eventId - indicates ID of the event to unsubscribe from.
|
||||||
* @param { Callback<EventData> } callback - indicates callback used to receive the event.
|
* @param { Callback<EventData> } callback - indicates callback used to receive the event.
|
||||||
@ -250,7 +250,7 @@ declare namespace emitter {
|
|||||||
function off(eventId: number, callback: Callback<EventData>): void;
|
function off(eventId: number, callback: Callback<EventData>): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unsubscribe specified callback function from an event.
|
* Unsubscribe from an event.
|
||||||
*
|
*
|
||||||
* @param { string } eventId - indicates ID of the event to unsubscribe from.
|
* @param { string } eventId - indicates ID of the event to unsubscribe from.
|
||||||
* @param { Callback<EventData> } callback - indicates callback used to receive the event.
|
* @param { Callback<EventData> } callback - indicates callback used to receive the event.
|
||||||
|
20
api/notification/notificationRequest.d.ts
vendored
20
api/notification/notificationRequest.d.ts
vendored
@ -528,16 +528,6 @@ export interface NotificationRequest {
|
|||||||
*/
|
*/
|
||||||
badgeNumber?: number;
|
badgeNumber?: number;
|
||||||
|
|
||||||
/**
|
|
||||||
* Notification control flags.
|
|
||||||
*
|
|
||||||
* @type { ?number }
|
|
||||||
* @syscap SystemCapability.Notification.Notification
|
|
||||||
* @systemapi
|
|
||||||
* @since 12
|
|
||||||
*/
|
|
||||||
notificationControlFlags?: number;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the notification need to be agent display.
|
* Whether the notification need to be agent display.
|
||||||
*
|
*
|
||||||
@ -567,6 +557,16 @@ export interface NotificationRequest {
|
|||||||
* @since 12
|
* @since 12
|
||||||
*/
|
*/
|
||||||
unifiedGroupInfo?: UnifiedGroupInfo;
|
unifiedGroupInfo?: UnifiedGroupInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Notification control flags.
|
||||||
|
*
|
||||||
|
* @type { ?number }
|
||||||
|
* @syscap SystemCapability.Notification.Notification
|
||||||
|
* @systemapi
|
||||||
|
* @since 12
|
||||||
|
*/
|
||||||
|
notificationControlFlags?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user