diff --git a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md index b1829017a23a63db793d20d0e5f35112379da2f0..b2f2eb3b59403442f297316f9acd35237247c1d1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md @@ -57,7 +57,7 @@ addAccount(name: string, callback: AsyncCallback<void>): void; ### addAccount -addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>): void +addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>): void; 将此应用程序的帐号名和额外信息添加到帐号管理服务中,使用callback回调异步返回结果。 @@ -84,7 +84,7 @@ addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>) ### addAccount -addAccount(name: string, extraInfo?: string): Promise<void> +addAccount(name: string, extraInfo?: string): Promise<void>; 将此应用的帐号名或额外信息添加到帐号管理服务中,使用Promise方式异步返回结果。 @@ -116,7 +116,7 @@ addAccount(name: string, extraInfo?: string): Promise<void> ### deleteAccount -deleteAccount(name: string, callback: AsyncCallback<void>): void +deleteAccount(name: string, callback: AsyncCallback<void>): void; 从帐号管理服务中删除应用帐号,使用callback回调异步返回结果。 @@ -138,7 +138,7 @@ deleteAccount(name: string, callback: AsyncCallback<void>): void ### deleteAccount -deleteAccount(name: string): Promise<void> +deleteAccount(name: string): Promise<void>; 从帐号管理服务中删除应用帐号,使用Promise方式异步返回结果。 @@ -167,7 +167,7 @@ deleteAccount(name: string): Promise<void> ### disableAppAccess -disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void +disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void; 禁止指定第三方应用帐户的名称访问指定包名称的第三方应用,使用callback回调异步返回结果。 @@ -190,7 +190,7 @@ disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<vo ### disableAppAccess -disableAppAccess(name: string, bundleName: string): Promise<void> +disableAppAccess(name: string, bundleName: string): Promise<void>; 禁止指定第三方应用帐户的名称访问指定包名称的第三方应用,使用Promise方式异步返回结果。 @@ -220,7 +220,7 @@ disableAppAccess(name: string, bundleName: string): Promise<void> ### enableAppAccess -enableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void +enableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void; 允许指定第三方应用帐户的名称访问指定包名称的第三方应用,使用callback回调异步返回结果。 @@ -243,7 +243,7 @@ enableAppAccess(name: string, bundleName: string, callback: AsyncCallback<voi ### enableAppAccess -enableAppAccess(name: string, bundleName: string): Promise<void> +enableAppAccess(name: string, bundleName: string): Promise<void>; 允许指定第三方应用帐户的名称访问指定包名称的第三方应用,使用Promise方式异步返回结果。 @@ -272,7 +272,7 @@ enableAppAccess(name: string, bundleName: string): Promise<void> ### checkAppAccountSyncEnable -checkAppAccountSyncEnable(name: string, callback: AsyncCallback<boolean>): void +checkAppAccountSyncEnable(name: string, callback: AsyncCallback<boolean>): void; 检查指定应用帐号是否允许应用数据同步,使用callback回调异步返回结果。 @@ -295,7 +295,7 @@ checkAppAccountSyncEnable(name: string, callback: AsyncCallback<boolean>): ### checkAppAccountSyncEnable -checkAppAccountSyncEnable(name: string): Promise<boolean> +checkAppAccountSyncEnable(name: string): Promise<boolean>; 检查指定应用帐号是否允许应用数据同步,使用Promise方式异步返回结果。 @@ -324,7 +324,7 @@ checkAppAccountSyncEnable(name: string): Promise<boolean> ### setAccountCredential -setAccountCredential(name: string, credentialType: string, credential: string,callback: AsyncCallback<void>): void +setAccountCredential(name: string, credentialType: string, credential: string,callback: AsyncCallback<void>): void; 设置此应用程序帐号的凭据,使用callback回调异步返回结果。 @@ -348,7 +348,7 @@ setAccountCredential(name: string, credentialType: string, credential: string,ca ### setAccountCredential -setAccountCredential(name: string, credentialType: string, credential: string): Promise<void> +setAccountCredential(name: string, credentialType: string, credential: string): Promise<void>; 设置此应用程序帐号的凭据,使用Promise方式异步返回结果。 @@ -379,7 +379,7 @@ setAccountCredential(name: string, credentialType: string, credential: string): ### setAccountExtraInfo -setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback<void>): void +setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback<void>): void; 设置此应用程序帐号的额外信息,使用callback回调异步返回结果。 @@ -402,7 +402,7 @@ setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback< ### setAccountExtraInfo -setAccountExtraInfo(name: string, extraInfo: string): Promise<void> +setAccountExtraInfo(name: string, extraInfo: string): Promise<void>; 设置此应用程序帐号的额外信息,使用Promise方式异步返回结果。 @@ -432,7 +432,7 @@ setAccountExtraInfo(name: string, extraInfo: string): Promise<void> ### setAppAccountSyncEnable -setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback<void>): void +setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback<void>): void; 设置指定的应用程序帐号是否允许应用程序数据同步,使用callback回调异步返回结果。 @@ -455,7 +455,7 @@ setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback ### setAppAccountSyncEnable -setAppAccountSyncEnable(name: string, isEnable: boolean): Promise<void> +setAppAccountSyncEnable(name: string, isEnable: boolean): Promise<void>; 设置指定的应用程序帐号是否允许应用程序数据同步,使用Promise方式异步返回结果。 @@ -485,7 +485,7 @@ setAppAccountSyncEnable(name: string, isEnable: boolean): Promise<void> ### setAssociatedData -setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback<void>): void +setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback<void>): void; 设置与此应用程序帐号关联的数据,使用callback回调异步返回结果。 @@ -508,7 +508,7 @@ setAssociatedData(name: string, key: string, value: string, callback: AsyncCallb ### setAssociatedData -setAssociatedData(name: string, key: string, value: string): Promise<void> +setAssociatedData(name: string, key: string, value: string): Promise<void>; 设置与此应用程序帐号关联的数据,使用Promise方式异步返回结果。 @@ -539,7 +539,7 @@ setAssociatedData(name: string, key: string, value: string): Promise<void> ### getAccountCredential -getAccountCredential(name: string, credentialType: string, callback: AsyncCallback<string>): void +getAccountCredential(name: string, credentialType: string, callback: AsyncCallback<string>): void; 获取此应用帐号的凭据,使用callback回调异步返回结果。 @@ -563,7 +563,7 @@ getAccountCredential(name: string, credentialType: string, callback: AsyncCallba ### getAccountCredential -getAccountCredential(name: string, credentialType: string): Promise<string> +getAccountCredential(name: string, credentialType: string): Promise<string>; 获取此应用程序帐号的凭据,使用Promise方式异步返回结果。 @@ -593,7 +593,7 @@ getAccountCredential(name: string, credentialType: string): Promise<string> ### getAccountExtraInfo -getAccountExtraInfo(name: string, callback: AsyncCallback<string>): void +getAccountExtraInfo(name: string, callback: AsyncCallback<string>): void; 获取此应用帐号的额外信息,使用callback回调异步返回结果。 @@ -616,7 +616,7 @@ getAccountExtraInfo(name: string, callback: AsyncCallback<string>): void ### getAccountExtraInfo -getAccountExtraInfo(name: string): Promise<string> +getAccountExtraInfo(name: string): Promise<string>; 获取此应用程序帐号的额外信息,使用Promise方式异步返回结果。 @@ -645,7 +645,7 @@ getAccountExtraInfo(name: string): Promise<string> ### getAssociatedData -getAssociatedData(name: string, key: string, callback: AsyncCallback<string>): void +getAssociatedData(name: string, key: string, callback: AsyncCallback<string>): void; 获取与此应用程序帐号关联的数据,使用callback回调异步返回结果。 @@ -669,7 +669,7 @@ getAssociatedData(name: string, key: string, callback: AsyncCallback<string&g ### getAssociatedData -getAssociatedData(name: string, key: string): Promise<string> +getAssociatedData(name: string, key: string): Promise<string>; 获取与此应用程序帐号关联的数据,使用Promise方式异步返回结果。