harmony(鸿蒙)帐号子系统JS API变更

2022-08-09 浏览 (943)

帐号子系统JS API变更

OpenHarmony 3.2 Beta2版本相较于OpenHarmony 3.2 Beta1版本,帐号子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.account.appAccountAuthenticatorgetRemoteObject(): rpc.RemoteObject;新增
ohos.account.appAccountAuthenticatorisAccountRemovable(name: string, callback: AuthenticatorCallback): void;新增
ohos.account.appAccountAuthenticatorcheckAccountLabels(name: string, labels: Array<string>, callback: AuthenticatorCallback): void;新增
ohos.account.appAccountAuthenticatorsetProperties(options: SetPropertiesOptions, callback: AuthenticatorCallback): void;新增
ohos.account.appAccountAuthenticatorverifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void;新增
ohos.account.appAccountAuthenticatorCallbackonRequestContinued?: () => void;新增
ohos.account.appAccountConstantsKEY_BOOLEAN_RESULT = "booleanResult"新增
ohos.account.appAccountConstantsKEY_REQUIRED_LABELS = "requiredLabels"新增
ohos.account.appAccountSetPropertiesOptionsparameters?: {[key: string]: Object}新增
ohos.account.appAccountSetPropertiesOptionsproperties?: {[key: string]: Object},新增
ohos.account.appAccountVerifyCredentialOptionsparameters?: {[key:string]: Object}新增
ohos.account.appAccountVerifyCredentialOptionscredential?: string,新增
ohos.account.appAccountVerifyCredentialOptionscredentialType?: string,新增
ohos.account.appAccountSelectAccountsOptionsrequiredLabels?: Array<string>新增
ohos.account.appAccountSelectAccountsOptionsallowedOwners?: Array<string>,新增
ohos.account.appAccountSelectAccountsOptionsallowedAccounts?: Array<AppAccountInfo>,新增
ohos.account.appAccountOAuthTokenInfoaccount?: AppAccountInfo;新增
ohos.account.appAccountAppAccountManagersetAuthenticatorProperties(owner: string, callback: AuthenticatorCallback): void;
setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthenticatorCallback): void;
新增
ohos.account.appAccountAppAccountManagerverifyCredential(name: string, owner: string, callback: AuthenticatorCallback): void;
verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void;
新增
ohos.account.appAccountAppAccountManagerselectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback<Array<AppAccountInfo>>);
selectAccountsByOptions(options: SelectAccountsOptions): Promise<Array<AppAccountInfo>>;
新增
ohos.account.appAccountAppAccountManagerdeleteAccountCredential(name: string, credentialType: string, callback: AsyncCallback<void>): void;
deleteAccountCredential(name: string, credentialType: string): Promise<void>;
新增
ohos.account.appAccountAppAccountManagercheckAccountLabels(name: string, owner: string, labels: Array<string>, callback: AsyncCallback<boolean>): void;
checkAccountLabels(name: string, owner: string, labels: Array<string>): Promise<boolean>;
新增
ohos.account.appAccountAppAccountManagercheckAppAccess(name: string, bundleName: string, callback: AsyncCallback<boolean>): void;
checkAppAccess(name: string, bundleName: string): Promise<boolean>;
新增
ohos.account.osAccountConstraintSourceTypeInfotype: ConstraintSourceType;新增
ohos.account.osAccountConstraintSourceTypeInfolocalId: number;新增
ohos.account.osAccountConstraintSourceTypeCONSTRAINT_TYPE_PROFILE_OWNER = 3新增
ohos.account.osAccountConstraintSourceTypeCONSTRAINT_TYPE_DEVICE_OWNER = 2新增
ohos.account.osAccountConstraintSourceTypeCONSTRAINT_TYPE_BASE = 1新增
ohos.account.osAccountConstraintSourceTypeCONSTRAINT_NOT_EXIST = 0新增
ohos.account.osAccountAccountManagerqueryOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback<Array<ConstraintSourceTypeInfo>>): void;
queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise<Array<ConstraintSourceTypeInfo>>;
新增
ohos.account.osAccountAccountManagerisMainOsAccount(callback: AsyncCallback<boolean>): void;
isMainOsAccount(): Promise<boolean>;
新增
ohos.account.osAccountAccountManagergetBundleIdFromUid(uid: number, callback: AsyncCallback<number>): void;
getBundleIdFromUid(uid: number): Promise<number>;
新增

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)OpenHarmony启用应用沙箱机制-适配指导

harmony(鸿蒙)3.2 beta2相对3.2 beta1变更详细说明

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)无障碍子系统JS API变更

harmony(鸿蒙)ArkUI子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

harmony(鸿蒙)基础通信子系统JS API变更

harmony(鸿蒙)公共基础库子系统JS API变更

harmony(鸿蒙)DFX子系统JS API变更

harmony(鸿蒙)分布式数据管理子系统JS API变更

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/4ae5044012904971bf476c5b106dc845