补充系统api注释

Signed-off-by: swg3156201044 <shiweigang2@huawei.com>
This commit is contained in:
swg3156201044 2024-05-23 08:44:40 +00:00
parent bd1293c36a
commit 4df76d1fe1
3 changed files with 12 additions and 0 deletions

View File

@ -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>): 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<void>;

View File

@ -780,6 +780,7 @@ declare namespace osAccount {
* <br> 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<number>): void;
@ -794,6 +795,7 @@ declare namespace osAccount {
* <br> 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<number>;
@ -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<number>): 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<number>;

View File

@ -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',