From 4df76d1fe14a2636ec30a0ac58331f790fcfa618 Mon Sep 17 00:00:00 2001 From: swg3156201044 Date: Thu, 23 May 2024 08:44:40 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=B3=BB=E7=BB=9Fapi?= =?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: swg3156201044 --- api/@ohos.account.distributedAccount.d.ts | 2 ++ api/@ohos.account.osAccount.d.ts | 4 ++++ api/@ohos.commonEventManager.d.ts | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/api/@ohos.account.distributedAccount.d.ts b/api/@ohos.account.distributedAccount.d.ts index 5313c4da2..1e8602805 100644 --- a/api/@ohos.account.distributedAccount.d.ts +++ b/api/@ohos.account.distributedAccount.d.ts @@ -172,6 +172,7 @@ declare namespace distributedAccount { * @throws { BusinessError } 12300002 - Invalid accountInfo. * @throws { BusinessError } 12300003 - Account not found. * @syscap SystemCapability.Account.OsAccount + * This API can be called only by system applications. * @since 9 */ setOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback): void; @@ -189,6 +190,7 @@ declare namespace distributedAccount { * @throws { BusinessError } 12300002 - Invalid accountInfo. * @throws { BusinessError } 12300003 - Account not found. * @syscap SystemCapability.Account.OsAccount + * This API can be called only by system applications. * @since 9 */ setOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise; diff --git a/api/@ohos.account.osAccount.d.ts b/api/@ohos.account.osAccount.d.ts index 68489273a..5932e5c15 100644 --- a/api/@ohos.account.osAccount.d.ts +++ b/api/@ohos.account.osAccount.d.ts @@ -780,6 +780,7 @@ declare namespace osAccount { *
2. Incorrect parameter types. * @throws { BusinessError } 12300001 - System service exception. * @syscap SystemCapability.Account.OsAccount + * This API can be called only by system applications. * @since 9 */ getOsAccountCount(callback: AsyncCallback): void; @@ -794,6 +795,7 @@ declare namespace osAccount { *
2. Incorrect parameter types. * @throws { BusinessError } 12300001 - System service exception. * @syscap SystemCapability.Account.OsAccount + * This API can be called only by system applications. * @since 9 */ getOsAccountCount(): Promise; @@ -948,6 +950,7 @@ declare namespace osAccount { * @throws { BusinessError } 12300001 - System service exception. * @throws { BusinessError } 12300002 - Invalid domainInfo. * @syscap SystemCapability.Account.OsAccount + * This API can be called only by system applications. * @since 9 */ getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback): void; @@ -964,6 +967,7 @@ declare namespace osAccount { * @throws { BusinessError } 12300001 - System service exception. * @throws { BusinessError } 12300002 - Invalid domainInfo. * @syscap SystemCapability.Account.OsAccount + * This API can be called only by system applications. * @since 9 */ getOsAccountLocalIdForDomain(domainInfo: DomainAccountInfo): Promise; diff --git a/api/@ohos.commonEventManager.d.ts b/api/@ohos.commonEventManager.d.ts index a9ba9d40e..3607fa2f4 100644 --- a/api/@ohos.commonEventManager.d.ts +++ b/api/@ohos.commonEventManager.d.ts @@ -781,6 +781,7 @@ declare namespace commonEventManager { * Remind new user of that the service has been switched to new user. * * @syscap SystemCapability.Notification.CommonEvent + * This API can be called only by system applications. * @since 9 */ COMMON_EVENT_USER_SWITCHED = 'usual.event.USER_SWITCHED', @@ -789,6 +790,7 @@ declare namespace commonEventManager { * Remind new user of that the service has been starting. * * @syscap SystemCapability.Notification.CommonEvent + * This API can be called only by system applications. * @since 9 */ COMMON_EVENT_USER_STARTING = 'usual.event.USER_STARTING', @@ -805,6 +807,7 @@ declare namespace commonEventManager { * Remind new user of that the service has been stopping. * * @syscap SystemCapability.Notification.CommonEvent + * This API can be called only by system applications. * @since 9 */ COMMON_EVENT_USER_STOPPING = 'usual.event.USER_STOPPING', @@ -1371,6 +1374,7 @@ declare namespace commonEventManager { * User added. * * @syscap SystemCapability.Notification.CommonEvent + * This API can be called only by system applications. * @since 9 */ COMMON_EVENT_USER_ADDED = 'usual.event.USER_ADDED', @@ -1379,6 +1383,7 @@ declare namespace commonEventManager { * User removed. * * @syscap SystemCapability.Notification.CommonEvent + * This API can be called only by system applications. * @since 9 */ COMMON_EVENT_USER_REMOVED = 'usual.event.USER_REMOVED', @@ -1683,6 +1688,7 @@ declare namespace commonEventManager { * This is a protected common event that can only be sent by system. * * @syscap SystemCapability.Notification.CommonEvent + * This API can be called only by system applications. * @since 9 */ COMMON_EVENT_ACCOUNT_DELETED = 'usual.event.data.ACCOUNT_DELETED',