mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
补充系统api注释
Signed-off-by: swg3156201044 <shiweigang2@huawei.com>
This commit is contained in:
parent
bd1293c36a
commit
4df76d1fe1
2
api/@ohos.account.distributedAccount.d.ts
vendored
2
api/@ohos.account.distributedAccount.d.ts
vendored
@ -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>;
|
||||
|
4
api/@ohos.account.osAccount.d.ts
vendored
4
api/@ohos.account.osAccount.d.ts
vendored
@ -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>;
|
||||
|
6
api/@ohos.commonEventManager.d.ts
vendored
6
api/@ohos.commonEventManager.d.ts
vendored
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user