From 9d9df0137d027bcb780648f0accd0f4b306aae68 Mon Sep 17 00:00:00 2001 From: verystone Date: Fri, 24 Sep 2021 20:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9updateOsAccountDistributedInf?= =?UTF-8?q?o=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E=E5=80=BC=E4=B8=BAvoid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: verystone --- api/@ohos.account.distributedaccount.d.ts | 55 +++++++++++++---------- 1 file changed, 31 insertions(+), 24 deletions(-) mode change 100755 => 100644 api/@ohos.account.distributedaccount.d.ts diff --git a/api/@ohos.account.distributedaccount.d.ts b/api/@ohos.account.distributedaccount.d.ts old mode 100755 new mode 100644 index 6dc7516931..294ca7fe1b --- a/api/@ohos.account.distributedaccount.d.ts +++ b/api/@ohos.account.distributedaccount.d.ts @@ -15,53 +15,60 @@ import {AsyncCallback} from './basic' -/** - * Defines distributed account functions and interfaces. - * - * @name distributedAccount - * @since 5 - * @syscap SystemCapability.Account.OsAccount - * @devices phone - * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS - */ declare namespace distributedAccount { /** * Get the ability of the distributed account. - * - * @syscap SystemCapability.Account.OsAccount - * @devices phone - * @param NA + * @since 7 + * @sysCap SystemCapability.Account.OsAccount + * @devices phone, tablet, tv, wearable, car + * @permission N/A * @return Ability to manage operations of distributed account. */ function getDistributedAccountAbility(): DistributedAccountAbility; + /** + * Defines distributed account functions and interfaces. + * + * @name DistributedAccountAbility + * @since 7 + * @sysCap SystemCapability.Account.OsAccount + * @devices phone, tablet, tv, wearable, car + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS + */ interface DistributedAccountAbility { /** * Queries the distributed information of the current OS account. * - * @syscap SystemCapability.Account.OsAccount - * @devices phone - * @param NA + * @since 7 + * @devices phone, tablet, tv, wearable, car * @return The distributed information of the current OS account. + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. */ queryOsAccountDistributedInfo(callback: AsyncCallback): void; - queryOsAccountDistributedInfo(): Promise; /** * Updates the distributed information of the OS account. * - * @syscap SystemCapability.Account.OsAccount - * @devices phone + * @since 7 + * @devices phone, tablet, tv, wearable, car * @param accountInfo Indicates the information of the OS account used for a distributed system. - * @return Returns {@code true} if the distributed information of the account is updated; - * returns {@code false} otherwise. + * @return void + * @permission ohos.permission.MANAGE_LOCAL_ACCOUNTS. */ - updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback): void; - - updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise; + updateOsAccountDistributedInfo(accountInfo: DistributedInfo, callback: AsyncCallback): void; + updateOsAccountDistributedInfo(accountInfo: DistributedInfo): Promise; } + /** + * Provides the distributed information of the OS account. + * + * @name DistributedInfo + * @since 7 + * @sysCap SystemCapability.Account.OsAccount + * @devices phone, tablet, tv, wearable, car + * @permission N/A + */ interface DistributedInfo { /** * The name in the distributed information of the OS account. -- Gitee