未验证 提交 e430a07c 编写于 作者: O openharmony_ci 提交者: Gitee

!8019 翻译完成:7515+7640 apidiff新增

Merge pull request !8019 from wusongqing/TR7515
# JS API Changes of the Ability Framework
The table below lists the APIs changes of the ability framework in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| AbilityContext | AbilityContext | isTerminating(): boolean; | Added|
| AbilityContext | AbilityContext | stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\<void>): void;<br>stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\<void>; | Added|
| AbilityContext | AbilityContext | stopServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>stopServiceExtensionAbility(want: Want): Promise\<void>; | Added|
| AbilityContext | AbilityContext | startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\<void>): void;<br>startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\<void>; | Added|
| AbilityContext | AbilityContext | startServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>startServiceExtensionAbility(want: Want): Promise\<void>; | Added|
| abilityDelegator | AbilityDelegator | printSync(msg: string): void; | Added|
| ApplicationContext | ApplicationContext | unregisterEnvironmentCallback(callbackId: number, callback: AsyncCallback\<void>): void;<br>unregisterEnvironmentCallback(callbackId: number): Promise\<void>; | Added|
| ApplicationContext | ApplicationContext | registerEnvironmentCallback(callback: EnvironmentCallback): number; | Added|
| applicationInfo | ApplicationInfo | readonly appProvisionType: string; | Added|
| applicationInfo | ApplicationInfo | readonly appDistributionType: string; | Added|
| applicationInfo | ApplicationInfo | readonly descriptionResource: Resource; | Added|
| applicationInfo | ApplicationInfo | readonly labelResource: Resource; | Added|
| applicationInfo | ApplicationInfo | readonly iconResource: Resource; | Added|
| applicationInfo | ApplicationInfo | readonly fingerprint: string; | Added|
| context | Context | createModuleContext(moduleName: string): Context;<br>createModuleContext(bundleName: string, moduleName: string): Context; | Added|
| ErrorObserver | ErrorObserver | onUnhandledException(errMsg: string): void; | Added|
| ExtensionContext | ExtensionContext | extensionAbilityInfo: ExtensionAbilityInfo; | Added|
| FormExtensionContext | FormExtensionContext | startAbility(want: Want, callback: AsyncCallback\<void>): void;<br>startAbility(want: Want): Promise\<void>; | Added|
| MissionCallbacks | MissionCallback | notifyNetDisconnect(deviceId: string, state: number): void; | Added|
| MissionCallbacks | MissionCallback | notifySnapshot(deviceId: string, mission: number): void; | Added|
| MissionCallbacks | MissionCallback | notifyMissionsChanged(deviceId: string): void; | Added|
| MissionDeviceInfo | MissionDeviceInfo | deviceId: string; | Added|
| MissionParameter | MissionParameter | tag: number; | Added|
| MissionParameter | MissionParameter | fixConflict: boolean; | Added|
| MissionParameter | MissionParameter | deviceId: string; | Added|
| ohos.ability.wantConstant | Action | ACTION_MARKER_DOWNLOAD = "ohos.want.action.marketDownload" | Added|
| ohos.abilityAccessCtrl | AtManager | verifyAccessTokenSync(tokenID: number, permissionName: string): GrantStatus; | Added|
| ohos.application.Ability | CalleeCallBack | (indata: rpc.MessageParcel): rpc.Sequenceable; | Added|
| ohos.application.appManager | appManager | getProcessRunningInformation(): Promise\<Array\<ProcessRunningInformation>>;<br>getProcessRunningInformation(callback: AsyncCallback\<Array\<ProcessRunningInformation>>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | denormalizeUri?(uri: string, callback: AsyncCallback\<string>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | normalizeUri?(uri: string, callback: AsyncCallback\<string>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | batchInsert?(uri: string, valueBuckets: Array\<ValuesBucket>, callback: AsyncCallback\<number>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | getType?(uri: string, callback: AsyncCallback\<string>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | "query?(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\<string>, callback: AsyncCallback\<Object>): void;" | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | delete?(uri: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\<number>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | "update?(uri: string, predicates: dataSharePredicates.DataSharePredicates, valueBucket: ValuesBucket, callback: AsyncCallback\<number>): void;" | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | insert?(uri: string, valueBucket: ValuesBucket, callback: AsyncCallback\<number>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | openFile?(uri: string, mode: string, callback: AsyncCallback\<number>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | getFileTypes?(uri: string, mimeTypeFilter: string, callback: AsyncCallback\<Array\<string>>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | onCreate?(want: Want, callback: AsyncCallback\<void>): void; | Added|
| ohos.application.DataShareExtensionAbility | DataShareExtensionAbility | context?: ExtensionContext; | Added|
| ohos.application.EnvironmentCallback | EnvironmentCallback | onConfigurationUpdated(config: Configuration): void; | Added|
| ohos.application.errorManager | errorManager | unregisterErrorObserver(observerId: number, callback: AsyncCallback\<void>): void;<br>unregisterErrorObserver(observerId: number): Promise\<void>; | Added|
| ohos.application.errorManager | errorManager | registerErrorObserver(observer: ErrorObserver): number; | Added|
| ohos.application.formInfo | FormInfoFilter | moduleName?: string; | Added|
| ohos.application.formProvider | formProvider | isRequestPublishFormSupported(callback: AsyncCallback\<boolean>): void;<br>isRequestPublishFormSupported(): Promise\<boolean>; | Added|
| ohos.application.formProvider | formProvider | requestPublishForm(want: Want, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback\<string>): void;<br>requestPublishForm(want: Want, callback: AsyncCallback\<string>): void;<br>requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData): Promise\<string>; | Added|
| ohos.application.formProvider | formProvider | getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback\<Array\<formInfo.FormInfo>>): void;<br>getFormsInfo(callback: AsyncCallback\<Array\<formInfo.FormInfo>>): void;<br>getFormsInfo(filter?: formInfo.FormInfoFilter): Promise\<Array\<formInfo.FormInfo>>; | Added|
| ohos.application.missionManager | missionManager | getLowResolutionMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback\<MissionSnapshot>): void;<br>getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise\<MissionSnapshot>; | Added|
| ohos.application.Want | Want | moduleName?: string; | Added|
| ohos.distributedMissionManager | distributedMissionManager | unRegisterMissionListener(parameter: MissionDeviceInfo, callback:AsyncCallback\<void>): void;<br>unRegisterMissionListener(parameter: MissionDeviceInfo): Promise\<void>; | Added|
| ohos.distributedMissionManager | distributedMissionManager | registerMissionListener(parameter: MissionDeviceInfo, options: MissionCallback, callback: AsyncCallback\<void>): void;<br>registerMissionListener(parameter: MissionDeviceInfo, options: MissionCallback): Promise\<void>; | Added|
| ohos.distributedMissionManager | distributedMissionManager | stopSyncRemoteMissions(parameter: MissionDeviceInfo, callback: AsyncCallback\<void>): void;<br>stopSyncRemoteMissions(parameter: MissionDeviceInfo): Promise\<void>; | Added|
| ohos.distributedMissionManager | distributedMissionManager | startSyncRemoteMissions(parameter: MissionParameter, callback: AsyncCallback\<void>): void;<br>startSyncRemoteMissions(parameter: MissionParameter): Promise\<void>; | Added|
| ProcessRunningInformation | ProcessRunningInformation | bundleNames: Array\<string>; | Added|
| ProcessRunningInformation | ProcessRunningInformation | processName: string; | Added|
| ProcessRunningInformation | ProcessRunningInformation | uid: number; | Added|
| ProcessRunningInformation | ProcessRunningInformation | pid: number; | Added|
| ServiceExtensionContext | ServiceExtensionContext | stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\<void>): void;<br>stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\<void>; | Added|
| ServiceExtensionContext | ServiceExtensionContext | stopServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>stopServiceExtensionAbility(want: Want): Promise\<void>; | Added|
| ServiceExtensionContext | ServiceExtensionContext | startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback\<void>): void;<br>startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise\<void>; | Added|
| ServiceExtensionContext | ServiceExtensionContext | startServiceExtensionAbility(want: Want, callback: AsyncCallback\<void>): void;<br>startServiceExtensionAbility(want: Want): Promise\<void>; | Added|
| ohos.application.Ability | CaleeCallBack | (indata: rpc.MessageParcel): rpc.Sequenceable; | Deleted|
| ohos.application.uriPermissionManager | uriPermissionManager | verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number, callback: AsyncCallback\<number>): void;<br>verifyUriPermission(uri: string, flag: wantConstant.Flags, accessTokenId: number): Promise\<number>; | Deleted|
| FormExtensionContext | FormExtensionContext | updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback\<void>): void;<br>updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise\<void>; | Deleted|
| ServiceExtensionContext | ServiceExtensionContext | extensionAbilityInfo: ExtensionAbilityInfo; | Deleted|
| ohos.application.appManager | appManager | getProcessRunningInfos(): Promise\<Array\<ProcessRunningInfo>>;<br>getProcessRunningInfos(callback: AsyncCallback\<Array\<ProcessRunningInfo>>): void; | Deprecated|
| ohos.application.Ability | Ability | old : onNewWant(want: Want): void;<br>new : onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; | Updated|
| ohos.application.Ability | Callee | old : on(method: string, callback: CaleeCallBack): void;<br>new : on(method: string, callback: CalleeCallBack): void; | Updated|
# JS API Changes of the Accessibility Subsystem
The table below lists the APIs changes of the accessibility subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| AccessibilityExtensionContext | Rect | height: number; | Added|
| AccessibilityExtensionContext | Rect | width: number; | Added|
| AccessibilityExtensionContext | Rect | top: number; | Added|
| AccessibilityExtensionContext | Rect | left: number; | Added|
| AccessibilityExtensionContext | AccessibilityElement | findElement(type: 'content', condition: string): Promise\<Array\<AccessibilityElement>>;<br>findElement(type: 'content', condition: string, callback: AsyncCallback\<Array\<AccessibilityElement>>): void<br>findElement(type: 'focusType', condition: FocusType): Promise\<AccessibilityElement>;<br>findElement(type: 'focusType', condition: FocusType, callback: AsyncCallback\<AccessibilityElement>): void<br>findElement(type: 'focusDirection', condition: FocusDirection): Promise\<AccessibilityElement>;<br>findElement(type: 'focusDirection', condition: FocusDirection, callback: AsyncCallback\<AccessibilityElement>): void | Added|
| AccessibilityExtensionContext | AccessibilityElement | performAction(actionName: string, parameters?: object): Promise\<boolean>;<br>performAction(actionName: string, callback: AsyncCallback\<boolean>): void;<br>performAction(actionName: string, parameters: object, callback: AsyncCallback\<boolean>): void; | Added|
| AccessibilityExtensionContext | AccessibilityElement | actionNames(): Promise\<Array\<string>>;<br>actionNames(callback: AsyncCallback\<Array\<string>>): void; | Added|
| AccessibilityExtensionContext | AccessibilityElement | "attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T): Promise\<ElementAttributeValues[T]>;<br>attributeValue\<T extends keyof ElementAttributeValues>(attributeName: T, callback: AsyncCallback\<ElementAttributeValues[T]>): void;" | Added|
| AccessibilityExtensionContext | AccessibilityElement | attributeNames\<T extends keyof ElementAttributeValues>(): Promise\<Array\<T>>;<br>attributeNames\<T extends keyof ElementAttributeValues>(callback: AsyncCallback\<Array\<T>>): void; | Added|
| AccessibilityExtensionContext | AccessibilityExtensionContext | gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>): Promise\<boolean>;<br>gestureInject(gesturePath: GesturePath, listener: Callback\<boolean>, callback: AsyncCallback\<boolean>): void; | Added|
| AccessibilityExtensionContext | AccessibilityExtensionContext | getWindows(displayId?: number): Promise\<Array\<AccessibilityElement>>;<br>getWindows(callback: AsyncCallback\<Array\<AccessibilityElement>>): void;<br>getWindows(displayId: number, callback: AsyncCallback\<Array\<AccessibilityElement>>): void; | Added|
| AccessibilityExtensionContext | AccessibilityExtensionContext | getWindowRootElement(windowId?: number): Promise\<AccessibilityElement>;<br>getWindowRootElement(callback: AsyncCallback\<AccessibilityElement>): void;<br>getWindowRootElement(windowId: number, callback: AsyncCallback\<AccessibilityElement>): void; | Added|
| AccessibilityExtensionContext | AccessibilityExtensionContext | getFocusElement(isAccessibilityFocus?: boolean): Promise\<AccessibilityElement>;<br>getFocusElement(callback: AsyncCallback\<AccessibilityElement>): void;<br>getFocusElement(isAccessibilityFocus: boolean, callback: AsyncCallback\<AccessibilityElement>): void; | Added|
| AccessibilityExtensionContext | AccessibilityExtensionContext | setTargetBundleName(targetNames: Array\<string>): Promise\<boolean>;<br>setTargetBundleName(targetNames: Array\<string>, callback: AsyncCallback\<boolean>): boolean; | Added|
| AccessibilityExtensionContext | AccessibilityExtensionContext | setEventTypeFilter(type: Array\<accessibility.EventType>): Promise\<boolean>;<br>setEventTypeFilter(type: Array\<accessibility.EventType>, callback: AsyncCallback\<boolean>): boolean; | Added|
| ohos.accessibility | AccessibilityAbilityInfo | readonly targetBundleNames: Array\<string>; | Added|
| ohos.application.AccessibilityExtensionAbility | GesturePoint | positionY: number; | Added|
| ohos.application.AccessibilityExtensionAbility | GesturePoint | positionX: number; | Added|
| ohos.application.AccessibilityExtensionAbility | GesturePath | durationTime: number; | Added|
| ohos.application.AccessibilityExtensionAbility | GesturePath | points: Array\<GesturePoint>; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityEvent | timeStamp?: number; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityEvent | target?: AccessibilityElement; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityEvent | eventType: accessibility.EventType \| accessibility.WindowUpdateType \| TouchGuideType \| GestureType \| PageUpdateType; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onKeyEvent(keyEvent: inputEventClient.KeyEvent): boolean; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onAccessibilityEvent(event: AccessibilityEvent): void; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onDisconnect(): void; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | onConnect(): void; | Added|
| ohos.application.AccessibilityExtensionAbility | AccessibilityExtensionAbility | context: AccessibilityExtensionContext; | Added|
# JS API Changes of the Account Subsystem
The table below lists the APIs changes of the account subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.account.appAccount | Authenticator | getRemoteObject(): rpc.RemoteObject; | Added|
| ohos.account.appAccount | Authenticator | isAccountRemovable(name: string, callback: AuthenticatorCallback): void; | Added|
| ohos.account.appAccount | Authenticator | checkAccountLabels(name: string, labels: Array\<string>, callback: AuthenticatorCallback): void; | Added|
| ohos.account.appAccount | Authenticator | setProperties(options: SetPropertiesOptions, callback: AuthenticatorCallback): void; | Added|
| ohos.account.appAccount | Authenticator | verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void; | Added|
| ohos.account.appAccount | AuthenticatorCallback | onRequestContinued?: () => void; | Added|
| ohos.account.appAccount | Constants | KEY_BOOLEAN_RESULT = "booleanResult" | Added|
| ohos.account.appAccount | Constants | KEY_REQUIRED_LABELS = "requiredLabels" | Added|
| ohos.account.appAccount | SetPropertiesOptions | parameters?: {[key: string]: Object} | Added|
| ohos.account.appAccount | SetPropertiesOptions | properties?: {[key: string]: Object}, | Added|
| ohos.account.appAccount | VerifyCredentialOptions | parameters?: {[key:string]: Object} | Added|
| ohos.account.appAccount | VerifyCredentialOptions | credential?: string, | Added|
| ohos.account.appAccount | VerifyCredentialOptions | credentialType?: string, | Added|
| ohos.account.appAccount | SelectAccountsOptions | requiredLabels?: Array\<string> | Added|
| ohos.account.appAccount | SelectAccountsOptions | allowedOwners?: Array\<string>, | Added|
| ohos.account.appAccount | SelectAccountsOptions | allowedAccounts?: Array\<AppAccountInfo>, | Added|
| ohos.account.appAccount | OAuthTokenInfo | account?: AppAccountInfo; | Added|
| ohos.account.appAccount | AppAccountManager | setAuthenticatorProperties(owner: string, callback: AuthenticatorCallback): void;<br>setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthenticatorCallback): void; | Added|
| ohos.account.appAccount | AppAccountManager | verifyCredential(name: string, owner: string, callback: AuthenticatorCallback): void;<br>verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void; | Added|
| ohos.account.appAccount | AppAccountManager | selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback\<Array\<AppAccountInfo>>);<br>selectAccountsByOptions(options: SelectAccountsOptions): Promise\<Array\<AppAccountInfo>>; | Added|
| ohos.account.appAccount | AppAccountManager | deleteAccountCredential(name: string, credentialType: string, callback: AsyncCallback\<void>): void;<br>deleteAccountCredential(name: string, credentialType: string): Promise\<void>; | Added|
| ohos.account.appAccount | AppAccountManager | checkAccountLabels(name: string, owner: string, labels: Array\<string>, callback: AsyncCallback\<boolean>): void;<br>checkAccountLabels(name: string, owner: string, labels: Array\<string>): Promise\<boolean>; | Added|
| ohos.account.appAccount | AppAccountManager | checkAppAccess(name: string, bundleName: string, callback: AsyncCallback\<boolean>): void;<br>checkAppAccess(name: string, bundleName: string): Promise\<boolean>; | Added|
| ohos.account.osAccount | ConstraintSourceTypeInfo | type: ConstraintSourceType; | Added|
| ohos.account.osAccount | ConstraintSourceTypeInfo | localId: number; | Added|
| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_TYPE_PROFILE_OWNER = 3 | Added|
| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_TYPE_DEVICE_OWNER = 2 | Added|
| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_TYPE_BASE = 1 | Added|
| ohos.account.osAccount | ConstraintSourceType | CONSTRAINT_NOT_EXIST = 0 | Added|
| ohos.account.osAccount | AccountManager | queryOsAccountConstraintSourceTypes(localId: number, constraint: string, callback: AsyncCallback\<Array\<ConstraintSourceTypeInfo>>): void;<br>queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promise\<Array\<ConstraintSourceTypeInfo>>; | Added|
| ohos.account.osAccount | AccountManager | isMainOsAccount(callback: AsyncCallback\<boolean>): void;<br>isMainOsAccount(): Promise\<boolean>; | Added|
| ohos.account.osAccount | AccountManager | getBundleIdFromUid(uid: number, callback: AsyncCallback\<number>): void;<br>getBundleIdFromUid(uid: number): Promise\<number>; | Added|
# JS API Changes of the ArkUI Development Framework
The table below lists the APIs changes of the ArkUI development framework in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ArkUI | AbilityComponentInterface | (want: Want): AbilityComponentAttribute; | Added|
| ArkUI | AbilityComponentAttribute | onConnect(callback: () => void): AbilityComponentAttribute; | Added|
| ArkUI | AbilityComponentAttribute | onDisconnect(callback: () => void): AbilityComponentAttribute; | Added|
| ArkUI | HttpAuthHandler | isHttpAuthInfoSaved(): boolean; | Added|
| ArkUI | HttpAuthHandler | cancel(): void; | Added|
| ArkUI | HttpAuthHandler | confirm(userName: string, password: string): boolean; | Added|
| ArkUI | HttpAuthHandler | constructor(); | Added|
| ArkUI | HitTestValue | getExtra(): string; | Added|
| ArkUI | HitTestValue | getType(): HitTestType; | Added|
| ArkUI | HitTestValue | constructor(); | Added|
| ArkUI | JsResult | handlePromptConfirm(result: string): void; | Added|
| ArkUI | Resource | readonly moduleName: string; | Added|
| ArkUI | Resource | readonly bundleName: string; | Added|
| ArkUI | TextInputAttribute | textAlign(value: TextAlign): TextInputAttribute; | Added|
| ArkUI | TextInputAttribute | showPasswordIcon(value: boolean): TextInputAttribute; | Added|
| ArkUI | TextInputAttribute | copyOption(value: boolean \| CopyOption): TextInputAttribute; | Added|
| ArkUI | InputType | PhoneNumber | Added|
| ArkUI | TextAreaAttribute | copyOption(value: boolean \| CopyOption): TextAreaAttribute; | Added|
| ArkUI | TextAttribute | copyOption(value: boolean \| CopyOption): TextAttribute; | Added|
| ArkUI | SearchAttribute | textAlign(value: TextAlign): SearchAttribute; | Added|
| ArkUI | SearchAttribute | copyOption(value: boolean \| CopyOption): SearchAttribute; | Added|
| ArkUI | ScrollAttribute | onScrollBegin(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }): ScrollAttribute; | Added|
| ArkUI | Scroller | scrollBy(dx: Length, dy: Length); | Added|
| ArkUI | RemoteWindowInterface | (target: WindowAnimationTarget): RemoteWindowAttribute; | Added|
| ArkUI | WindowAnimationTarget | readonly windowBounds: RRect; | Added|
| ArkUI | WindowAnimationTarget | readonly abilityName: string; | Added|
| ArkUI | WindowAnimationTarget | readonly bundleName: string; | Added|
| ArkUI | RRect | radius: number; | Added|
| ArkUI | RRect | height: number; | Added|
| ArkUI | RRect | width: number; | Added|
| ArkUI | RRect | top: number; | Added|
| ArkUI | RRect | left: number; | Added|
| ArkUI | RelativeContainerInterface | (): RelativeContainerAttribute; | Added|
| ArkUI | PluginComponentAttribute | onError(callback: (info: { errcode: number; msg: string }) => void): PluginComponentAttribute; | Added|
| ArkUI | PluginComponentAttribute | onComplete(callback: () => void): PluginComponentAttribute; | Added|
| ArkUI | PluginComponentInterface | (value: { template: PluginComponentTemplate; data: any }): PluginComponentAttribute; | Added|
| ArkUI | PluginComponentTemplate | ability: string; | Added|
| ArkUI | PluginComponentTemplate | source: string; | Added|
| ArkUI | PatternLockAttribute | autoReset(value: boolean): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | onPatternComplete(callback: (input: Array\<number>) => void): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | pathStrokeWidth(value: number \| string): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | pathColor(value: ResourceColor): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | activeColor(value: ResourceColor): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | selectedColor(value: ResourceColor): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | regularColor(value: ResourceColor): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | backgroundColor(value: ResourceColor): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | circleRadius(value: Length): PatternLockAttribute; | Added|
| ArkUI | PatternLockAttribute | sideLength(value: Length): PatternLockAttribute; | Added|
| ArkUI | PatternLockInterface | (controller?: PatternLockController): PatternLockAttribute; | Added|
| ArkUI | PatternLockController | reset(); | Added|
| ArkUI | PatternLockController | constructor(); | Added|
| ArkUI | ListAttribute | onScrollBegin(event: (dx: number, dy: number) => { dxRemain: number, dyRemain: number }): ListAttribute; | Added|
| ArkUI | ListAttribute | alignListItem(value: ListItemAlign): ListAttribute; | Added|
| ArkUI | ListAttribute | lanes(value: number \| LengthConstrain): ListAttribute; | Added|
| ArkUI | ListItemAlign | End | Added|
| ArkUI | ListItemAlign | Center | Added|
| ArkUI | ListItemAlign | Start | Added|
| ArkUI | ImageFrameInfo | duration?: number; | Added|
| ArkUI | ImageFrameInfo | left?: number \| string; | Added|
| ArkUI | ImageFrameInfo | top?: number \| string; | Added|
| ArkUI | ImageFrameInfo | height?: number \| string; | Added|
| ArkUI | ImageFrameInfo | width?: number \| string; | Added|
| ArkUI | ImageFrameInfo | src: string \| Resource; | Added|
| ArkUI | GridRowAttribute | onBreakpointChange(callback: (breakpoints: string) => void): GridRowAttribute; | Added|
| ArkUI | GridRowInterface | (optiion?: GridRowOptions): GridRowAttribute; | Added|
| ArkUI | GridRowOptions | direction?: GridRowDirection; | Added|
| ArkUI | GridRowOptions | breakpoints?: BreakPoints; | Added|
| ArkUI | GridRowOptions | columns?: number \| GridRowColumnOption; | Added|
| ArkUI | GridRowOptions | gutter?: Length \| GetterOption; | Added|
| ArkUI | BreakPoints | reference?: BreakpointsReference, | Added|
| ArkUI | BreakPoints | value?: Array\<string>, | Added|
| ArkUI | GridRowDirection | RowReverse | Added|
| ArkUI | GridRowDirection | Row | Added|
| ArkUI | BreakpointsReference | ComponentSize | Added|
| ArkUI | BreakpointsReference | WindowSize | Added|
| ArkUI | GetterOption | y?: Length \| GridRowSizeOption | Added|
| ArkUI | GetterOption | x?: Length \| GridRowSizeOption, | Added|
| ArkUI | GridRowColumnOption | xxl?: number, | Added|
| ArkUI | GridRowColumnOption | xl?: number, | Added|
| ArkUI | GridRowColumnOption | lg?: number, | Added|
| ArkUI | GridRowColumnOption | md?: number, | Added|
| ArkUI | GridRowColumnOption | sm?: number, | Added|
| ArkUI | GridRowColumnOption | xs?: number, | Added|
| ArkUI | GridRowSizeOption | xxl?: Length, | Added|
| ArkUI | GridRowSizeOption | xl?: Length, | Added|
| ArkUI | GridRowSizeOption | lg?: Length, | Added|
| ArkUI | GridRowSizeOption | md?: Length, | Added|
| ArkUI | GridRowSizeOption | sm?: Length, | Added|
| ArkUI | GridRowSizeOption | xs?: Length, | Added|
| ArkUI | GridColAttribute | order(value: number \| GridColColumnOption): GridRowAttribute; | Added|
| ArkUI | GridColAttribute | offset(value: number \| GridColColumnOption): GridRowAttribute; | Added|
| ArkUI | GridColAttribute | span(value: number \| GridColColumnOption): GridRowAttribute; | Added|
| ArkUI | GridColInterface | (optiion?: GridColOptions): GridColAttribute; | Added|
| ArkUI | GridColOptions | order?: number \| GridColColumnOption; | Added|
| ArkUI | GridColOptions | offset?: number \| GridColColumnOption; | Added|
| ArkUI | GridColOptions | span?: number \| GridColColumnOption; | Added|
| ArkUI | GridColColumnOption | xxl?: number, | Added|
| ArkUI | GridColColumnOption | xl?: number, | Added|
| ArkUI | GridColColumnOption | lg?: number, | Added|
| ArkUI | GridColColumnOption | md?: number, | Added|
| ArkUI | GridColColumnOption | sm?: number, | Added|
| ArkUI | GridColColumnOption | xs?: number, | Added|
| ArkUI | CopyOption | CrossDevice = 2 | Added|
| ArkUI | CopyOption | LocalDevice = 1 | Added|
| ArkUI | CopyOption | InApp = 0 | Added|
| ArkUI | Placement | RightBottom | Added|
| ArkUI | Placement | RightTop | Added|
| ArkUI | Placement | LeftBottom | Added|
| ArkUI | Placement | LeftTop | Added|
| ArkUI | CommonMethod | onVisibleAreaChange(ratios: Array\<number>, event: (isVisible: boolean, currentRatio: number) => void): T; | Added|
| ArkUI | CommonMethod | alignRules(value: AlignRuleOption): T; | Added|
| ArkUI | CommonMethod | tabIndex(index: number): T; | Added|
| ArkUI | CommonMethod | borderImage(value: BorderImageOption): T; | Added|
| ArkUI | CommonMethod | backgroundBlurStyle(value: BlurStyle): T; | Added|
| ArkUI | BorderImageOption | fill?: boolean | Added|
| ArkUI | BorderImageOption | outset?: Length \| EdgeWidths, | Added|
| ArkUI | BorderImageOption | width?: Length \| EdgeWidths, | Added|
| ArkUI | BorderImageOption | source?: string \| Resource \| linearGradient, | Added|
| ArkUI | BorderImageOption | repeat?: RepeatMode, | Added|
| ArkUI | BorderImageOption | slice?: Length \| EdgeWidths, | Added|
| ArkUI | BlurStyle | Thick | Added|
| ArkUI | BlurStyle | Regular | Added|
| ArkUI | BlurStyle | Thin | Added|
| ArkUI | RepeatMode | Space | Added|
| ArkUI | RepeatMode | Round | Added|
| ArkUI | RepeatMode | Stretch | Added|
| ArkUI | RepeatMode | Repeat | Added|
| ArkUI | AlignRuleOption | center?: { anchor: string, align: VerticalAlign }; | Added|
| ArkUI | AlignRuleOption | bottom?: { anchor: string, align: VerticalAlign }; | Added|
| ArkUI | AlignRuleOption | top?: { anchor: string, align: VerticalAlign }; | Added|
| ArkUI | AlignRuleOption | middle?: { anchor: string, align: HorizontalAlign }; | Added|
| ArkUI | AlignRuleOption | right?: { anchor: string, align: HorizontalAlign }; | Added|
| ArkUI | AlignRuleOption | left?: { anchor: string, align: HorizontalAlign }; | Added|
| ArkUI | ICurve | interpolate(fraction : number) : number; | Added|
| elementName | ElementName | moduleName?: string; | Added|
| global | | function sendMouseEvent(event: MouseEvent): boolean; | Added|
| global | | function sendKeyEvent(event: KeyEvent): boolean; | Added|
| global | | function sendTouchEvent(event: TouchObject): boolean; | Added|
| global | | function sendEventByKey(id: string, action: number, params: string): boolean; | Added|
| global | | function getInspectorTree(): string; | Added|
| global | | function getInspectorByKey(id: string): string; | Added|
| ohos.curves | curves | function springCurve(velocity: number, mass: number, stiffness: number, damping: number): ICurve; | Added|
| ohos.curves | curves | function cubicBezierCurve(x1: number, y1: number, x2: number, y2: number): ICurve; | Added|
| ohos.curves | curves | function stepsCurve(count: number, end: boolean): ICurve; | Added|
| ohos.curves | curves | function initCurve(curve?: Curve): ICurve; | Added|
| ohos.curves | ICurve | interpolate(fraction : number) : number; | Added|
| ohos.router | RouterMode | Single | Added|
| ohos.router | RouterMode | Standard | Added|
| ohos.uiAppearance | uiAppearance | function getDarkMode(): DarkMode; | Added|
| ohos.uiAppearance | uiAppearance | function setDarkMode(mode: DarkMode, callback: AsyncCallback\<void>): void;<br>function setDarkMode(mode: DarkMode): Promise\<void>; | Added|
| ohos.uiAppearance | DarkMode | ALWAYS_LIGHT = 1 | Added|
| ohos.uiAppearance | DarkMode | ALWAYS_DARK = 0 | Added|
| viewmodel | CanvasRenderingContext2D | getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap | Added|
| viewmodel | OffscreenCanvasRenderingContext2D | getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap | Added|
| ohos.curves | curves | function spring(velocity: number, mass: number, stiffness: number, damping: number): string; | Deprecated|
| ohos.curves | curves | function cubicBezier(x1: number, y1: number, x2: number, y2: number): string; | Deprecated|
| ohos.curves | curves | function steps(count: number, end: boolean): string; | Deprecated|
| ohos.curves | curves | function init(curve?: Curve): string; | Deprecated|
| system.router | Router | static disableAlertBeforeBackPage(options?: DisableAlertBeforeBackPageOptions): void; | Deprecated|
| system.router | Router | static enableAlertBeforeBackPage(options: EnableAlertBeforeBackPageOptions): void; | Deprecated|
| system.router | Router | static getState(): RouterState; | Deprecated|
| system.router | Router | static getLength(): string; | Deprecated|
| system.router | Router | static clear(): void; | Deprecated|
| system.router | Router | static getParams(): ParamsInterface; | Deprecated|
| system.router | Router | static back(options?: BackRouterOptions): void; | Deprecated|
| system.router | Router | static replace(options: RouterOptions): void; | Deprecated|
| system.router | Router | static push(options: RouterOptions): void; | Deprecated|
| system.router | DisableAlertBeforeBackPageOptions | complete?: () => void; | Deprecated|
| system.router | DisableAlertBeforeBackPageOptions | cancel?: (errMsg: string) => void; | Deprecated|
| system.router | DisableAlertBeforeBackPageOptions | success?: (errMsg: string) => void; | Deprecated|
| system.router | EnableAlertBeforeBackPageOptions | complete?: () => void; | Deprecated|
| system.router | EnableAlertBeforeBackPageOptions | cancel?: (errMsg: string) => void; | Deprecated|
| system.router | EnableAlertBeforeBackPageOptions | success?: (errMsg: string) => void; | Deprecated|
| system.router | EnableAlertBeforeBackPageOptions | message: string; | Deprecated|
| system.router | RouterState | path: string; | Deprecated|
| system.router | RouterState | name: string; | Deprecated|
| system.router | RouterState | index: number; | Deprecated|
| system.router | BackRouterOptions | params?: Object; | Deprecated|
| system.router | BackRouterOptions | uri?: string; | Deprecated|
| system.router | RouterOptions | params?: Object; | Deprecated|
| system.router | RouterOptions | uri: string; | Deprecated|
| ohos.prompt | ActionMenuOptions |old : title?: string;<br>new : title?: string \| Resource; | Updated|
| ohos.prompt | ShowDialogOptions |old : message?: string;<br>new : message?: string \| Resource; | Updated|
| ohos.prompt | ShowDialogOptions |old : title?: string;<br>new : title?: string \| Resource; | Updated|
| ohos.prompt | Button |old : color: string;<br>new : color: string \| Resource; | Updated|
| ohos.prompt | Button |old : text: string;<br>new : text: string \| Resource; | Updated|
| ohos.prompt | ShowToastOptions |old : message: string;<br>new : message: string \| Resource; | Updated|
| ArkUI | BorderOptions |old : style?: BorderStyle;<br>new : style?: EdgeStyles \| BorderStyle; | Updated|
| ArkUI | BorderOptions |old : radius?: Length;<br>new : radius?: BorderRadiuses \| Length; | Updated|
| ArkUI | BorderOptions |old : color?: ResourceColor;<br>new : color?: EdgeColors \| ResourceColor; | Updated|
| ArkUI | BorderOptions |old : width?: Length;<br>new : width?: EdgeWidths \| Length; | Updated|
| ArkUI | AnimateParam |old : curve?: Curve \| string;<br>new : curve?: Curve \| string \| ICurve; | Updated|
# JS API Changes of the Bundle Management Framework
The table below lists the APIs changes of the bundle management framework in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| abilityInfo | AbilityInfo | readonly minWindowHeight: number; | Added|
| abilityInfo | AbilityInfo | readonly maxWindowHeight: number; | Added|
| abilityInfo | AbilityInfo | readonly minWindowWidth: number; | Added|
| abilityInfo | AbilityInfo | readonly maxWindowWidth: number; | Added|
| abilityInfo | AbilityInfo | readonly minWindowRatio: number; | Added|
| abilityInfo | AbilityInfo | readonly maxWindowRatio: number; | Added|
| abilityInfo | AbilityInfo | readonly supportWindowMode: Array\<bundle.SupportWindowMode>; | Added|
| bundleInstaller | InstallParam | crowdtestDeadline?: number; | Added|
| bundleInstaller | InstallParam | hashParams?: Array\<HashParam>; | Added|
| bundleInstaller | HashParam | hashValue: string; | Added|
| bundleInstaller | HashParam | moduleName: string; | Added|
| dispatchInfo | DispatchInfo | readonly dispatchAPI: string; | Added|
| dispatchInfo | DispatchInfo | readonly verison: string; | Added|
| hapModuleInfo | HapModuleInfo | readonly hashValue: string; | Added|
| ohos.bundle | bundle | getDisposedStatus(bundleName: string, callback: AsyncCallback\<number>): void;<br>getDisposedStatus(bundleName: string): Promise\<number>; | Added|
| ohos.bundle | bundle | setDisposedStatus(bundleName: string, status: number, callback: AsyncCallback\<void>): void;<br>setDisposedStatus(bundleName: string, status: number): Promise\<void>; | Added|
| ohos.bundle | bundle | getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName: string, callback: AsyncCallback\<Array\<string>>): void;<br>getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise\<Array\<string>>; | Added|
| ohos.bundle | bundle | getProfileByAbility(moduleName: string, abilityName: string, metadataName: string, callback: AsyncCallback\<Array\<string>>): void;<br>getProfileByAbility(moduleName: string, abilityName: string, metadataName?: string): Promise\<Array\<string>>; | Added|
| ohos.bundle | bundle | getDispatcherVersion(callback: AsyncCallback\<DispatchInfo>): void;<br>getDispatcherVersion(): Promise\<DispatchInfo>; | Added|
| ohos.bundle | bundle | getBundlePackInfo(bundleName: string, bundlePackFlag : pack.BundlePackFlag, callback: AsyncCallback\<pack.BundlePackInfo>): void;<br>getBundlePackInfo(bundleName: string, bundlePackFlag : pack.BundlePackFlag): Promise\<pack.BundlePackInfo>; | Added|
| ohos.bundle | SupportWindowMode | FLOATING = 2 | Added|
| ohos.bundle | SupportWindowMode | SPLIT = 1 | Added|
| ohos.bundle | SupportWindowMode | FULL_SCREEN = 0 | Added|
| ohos.bundle | ExtensionAbilityType | ENTERPRISE_ADMIN = 11 | Added|
| ohos.bundle | DisplayOrientation | LOCKED | Added|
| ohos.bundle | DisplayOrientation | AUTO_ROTATION_PORTRAIT_RESTRICTED | Added|
| ohos.bundle | DisplayOrientation | AUTO_ROTATION_LANDSCAPE_RESTRICTED | Added|
| ohos.bundle | DisplayOrientation | AUTO_ROTATION_RESTRICTED | Added|
| ohos.bundle | DisplayOrientation | AUTO_ROTATION_PORTRAIT | Added|
| ohos.bundle | DisplayOrientation | AUTO_ROTATION_LANDSCAPE | Added|
| ohos.bundle | DisplayOrientation | AUTO_ROTATION | Added|
| ohos.bundle | DisplayOrientation | PORTRAIT_INVERTED | Added|
| ohos.bundle | DisplayOrientation | LANDSCAPE_INVERTED | Added|
| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT = 0x00000400 | Added|
| ohos.bundle | BundleFlag | GET_BUNDLE_WITH_HASH_VALUE = 0x00000030 | Added|
| ohos.bundle.defaultAppManager | defaultAppManager | resetDefaultApplication(type: string, userId?: number) : Promise\<void>;<br>resetDefaultApplication(type: string, userId: number, callback: AsyncCallback\<void>) : void;<br>resetDefaultApplication(type: string, callback: AsyncCallback\<void>) : void; | Added|
| ohos.bundle.defaultAppManager | defaultAppManager | setDefaultApplication(type: string, elementName: ElementName, userId?: number) : Promise\<void>;<br>setDefaultApplication(type: string, elementName: ElementName, userId: number, callback: AsyncCallback\<void>) : void;<br>setDefaultApplication(type: string, elementName: ElementName, callback: AsyncCallback\<void>) : void; | Added|
| ohos.bundle.defaultAppManager | defaultAppManager | getDefaultApplication(type: string, userId?: number) : Promise\<BundleInfo>;<br>getDefaultApplication(type: string, userId: number, callback: AsyncCallback\<BundleInfo>) : void;<br>getDefaultApplication(type: string, callback: AsyncCallback\<BundleInfo>) : void; | Added|
| ohos.bundle.defaultAppManager | defaultAppManager | isDefaultApplication(type: string) : Promise\<boolean>;<br>isDefaultApplication(type: string, callback: AsyncCallback\<boolean>) : void; | Added|
| ohos.bundle.defaultAppManager | ApplicationType | PPT = "PPT" | Added|
| ohos.bundle.defaultAppManager | ApplicationType | EXCEL = "EXCEL" | Added|
| ohos.bundle.defaultAppManager | ApplicationType | WORD = "WORD" | Added|
| ohos.bundle.defaultAppManager | ApplicationType | PDF = "PDF" | Added|
| ohos.bundle.defaultAppManager | ApplicationType | VIDEO = "VIDEO" | Added|
| ohos.bundle.defaultAppManager | ApplicationType | AUDIO = "AUDIO" | Added|
| ohos.bundle.defaultAppManager | ApplicationType | IMAGE = "IMAGE" | Added|
| ohos.bundle.defaultAppManager | ApplicationType | BROWSER = "BROWSER" | Added|
| packInfo | BundlePackFlag | GET_MODULE_SUMMARY = 0x00000004 | Added|
| packInfo | BundlePackFlag | GET_BUNDLE_SUMMARY = 0x00000002 | Added|
| packInfo | BundlePackFlag | GET_PACKAGES = 0x00000001 | Added|
| packInfo | BundlePackFlag | GET_PACK_INFO_ALL = 0x00000000 | Added|
| packInfo | ApiVersion | readonly target: number; | Added|
| packInfo | ApiVersion | readonly compatible: number; | Added|
| packInfo | ApiVersion | readonly releaseType: string; | Added|
| packInfo | Version | readonly code: number; | Added|
| packInfo | Version | readonly name: string; | Added|
| packInfo | Version | readonly minCompatibleVersionCode: number; | Added|
| packInfo | AbilityFormInfo | readonly defaultDimension: number; | Added|
| packInfo | AbilityFormInfo | readonly supportDimensions: Array\<number>; | Added|
| packInfo | AbilityFormInfo | readonly updateDuration: number; | Added|
| packInfo | AbilityFormInfo | readonly scheduledUpdateTime: string; | Added|
| packInfo | AbilityFormInfo | readonly updateEnabled: boolean; | Added|
| packInfo | AbilityFormInfo | readonly type: string; | Added|
| packInfo | AbilityFormInfo | readonly name: string; | Added|
| packInfo | ModuleAbilityInfo | readonly forms: Array\<AbilityFormInfo>; | Added|
| packInfo | ModuleAbilityInfo | readonly visible: boolean; | Added|
| packInfo | ModuleAbilityInfo | readonly label: string; | Added|
| packInfo | ModuleAbilityInfo | readonly name: string; | Added|
| packInfo | ModuleDistroInfo | readonly moduleType: string; | Added|
| packInfo | ModuleDistroInfo | readonly moduleName: string; | Added|
| packInfo | ModuleDistroInfo | readonly installationFree: boolean; | Added|
| packInfo | ModuleDistroInfo | readonly deliveryWithInstall: boolean; | Added|
| packInfo | ModuleDistroInfo | readonly mainAbility: string; | Added|
| packInfo | ModuleConfigInfo | readonly extensionAbilities: Array\<ExtensionAbilities>; | Added|
| packInfo | ModuleConfigInfo | readonly abilities: Array\<ModuleAbilityInfo>; | Added|
| packInfo | ModuleConfigInfo | readonly distro: ModuleDistroInfo; | Added|
| packInfo | ModuleConfigInfo | readonly deviceType: Array\<string>; | Added|
| packInfo | ModuleConfigInfo | readonly apiVersion: ApiVersion; | Added|
| packInfo | ExtensionAbilities | readonly forms: Array\<AbilityFormInfo>; | Added|
| packInfo | ExtensionAbilities | readonly name: string; | Added|
| packInfo | BundleConfigInfo | readonly version: Version; | Added|
| packInfo | BundleConfigInfo | readonly bundleName: string; | Added|
| packInfo | PackageSummary | readonly modules: Array\<ModuleConfigInfo>; | Added|
| packInfo | PackageSummary | readonly app: BundleConfigInfo; | Added|
| packInfo | PackageConfig | readonly deliveryWithInstall: boolean; | Added|
| packInfo | PackageConfig | readonly moduleType: string; | Added|
| packInfo | PackageConfig | readonly name: string; | Added|
| packInfo | PackageConfig | readonly deviceType: Array\<string>; | Added|
| packInfo | BundlePackInfo | readonly summary: PackageSummary; | Added|
| packInfo | BundlePackInfo | readonly packages: Array\<PackageConfig>; | Added|
| shortcutInfo | ShortcutInfo | readonly moduleName?: string; | Added|
| shortcutInfo | ShortcutWant | readonly targetModule: string; | Added|
# JS API Changes of the Communication Subsystem
The table below lists the APIs changes of the communication subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| nfctech | NdefFormatableTag | formatReadOnly(message: NdefMessage): Promise\<number>;<br>formatReadOnly(message: NdefMessage, callback: AsyncCallback\<number>): void; | Added|
| nfctech | NdefFormatableTag | format(message: NdefMessage): Promise\<number>;<br>format(message: NdefMessage, callback: AsyncCallback\<number>): void; | Added|
| nfctech | MifareUltralightTag | getType(): MifareUltralightType; | Added|
| nfctech | MifareUltralightTag | writeSinglePages(pageIndex: number, data: string): Promise\<number>;<br>writeSinglePages(pageIndex: number, data: string, callback: AsyncCallback\<number>): void; | Added|
| nfctech | MifareUltralightTag | readMultiplePages(pageIndex: number): Promise\<string>;<br>readMultiplePages(pageIndex: number, callback: AsyncCallback\<string>): void; | Added|
| nfctech | MifareUltralightType | TYPE_ULTRALIGHT_C = 2 | Added|
| nfctech | MifareUltralightType | TYPE_ULTRALIGHT = 1 | Added|
| nfctech | MifareUltralightType | TYPE_UNKOWN = -1 | Added|
| nfctech | MifareClassicTag | getSectorIndex(blockIndex: number): number; | Added|
| nfctech | MifareClassicTag | getBlockIndex(sectorIndex: number): number; | Added|
| nfctech | MifareClassicTag | isEmulatedTag(): boolean; | Added|
| nfctech | MifareClassicTag | getTagSize(): number; | Added|
| nfctech | MifareClassicTag | getType(): MifareClassicType; | Added|
| nfctech | MifareClassicTag | getBlockCountInSector(sectorIndex: number): number; | Added|
| nfctech | MifareClassicTag | getSectorCount(): number; | Added|
| nfctech | MifareClassicTag | restoreFromBlock(blockIndex: number): Promise\<number>;<br>restoreFromBlock(blockIndex: number, callback: AsyncCallback\<number>): void; | Added|
| nfctech | MifareClassicTag | transferToBlock(blockIndex: number): Promise\<number>;<br>transferToBlock(blockIndex: number, callback: AsyncCallback\<number>): void; | Added|
| nfctech | MifareClassicTag | decrementBlock(blockIndex: number, value: number): Promise\<number>;<br>decrementBlock(blockIndex: number, value: number, callback: AsyncCallback\<number>): void; | Added|
| nfctech | MifareClassicTag | incrementBlock(blockIndex: number, value: number): Promise\<number>;<br>incrementBlock(blockIndex: number, value: number, callback: AsyncCallback\<number>): void; | Added|
| nfctech | MifareClassicTag | writeSingleBlock(blockIndex: number, data: string): Promise\<number>;<br>writeSingleBlock(blockIndex: number, data: string, callback: AsyncCallback\<number>): void; | Added|
| nfctech | MifareClassicTag | readSingleBlock(blockIndex: number): Promise\<string>;<br>readSingleBlock(blockIndex: number, callback: AsyncCallback\<string>): void; | Added|
| nfctech | MifareClassicTag | authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean): Promise\<boolean>;<br>authenticateSector(sectorIndex: number, key: number[], isKeyA: boolean, callback: AsyncCallback\<boolean>): void; | Added|
| nfctech | MifareTagSize | MC_SIZE_4K = 4096 | Added|
| nfctech | MifareTagSize | MC_SIZE_2K = 2048 | Added|
| nfctech | MifareTagSize | MC_SIZE_1K = 1024 | Added|
| nfctech | MifareTagSize | MC_SIZE_MINI = 320 | Added|
| nfctech | MifareClassicType | TYPE_PRO = 2 | Added|
| nfctech | MifareClassicType | TYPE_PLUS = 1 | Added|
| nfctech | MifareClassicType | TYPE_CLASSIC = 0 | Added|
| nfctech | MifareClassicType | TYPE_UNKNOWN = -1 | Added|
| nfctech | NdefTag | getNdefTagTypeString(type: NfcForumType): string; | Added|
| nfctech | NdefTag | setReadOnly(): Promise\<number>;<br>setReadOnly(callback: AsyncCallback\<number>): void; | Added|
| nfctech | NdefTag | canSetReadOnly(): Promise\<boolean>;<br>canSetReadOnly(callback: AsyncCallback\<boolean>): void; | Added|
| nfctech | NdefTag | writeNdef(msg: NdefMessage): Promise\<number>;<br>writeNdef(msg: NdefMessage, callback: AsyncCallback\<number>): void; | Added|
| nfctech | NdefTag | readNdef(): Promise\<NdefMessage>;<br>readNdef(callback: AsyncCallback\<NdefMessage>): void; | Added|
| nfctech | NdefTag | isNdefWritable(): Promise\<boolean>;<br>isNdefWritable(callback: AsyncCallback\<boolean>): void; | Added|
| nfctech | NdefTag | getNdefMessage(): NdefMessage; | Added|
| nfctech | NdefTag | getNdefTagType(): NfcForumType; | Added|
| nfctech | NdefTag | createNdefMessage(data: string): NdefMessage;<br>createNdefMessage(ndefRecords: NdefRecord[]): NdefMessage; | Added|
| nfctech | NfcForumType | MIFARE_CLASSIC = 101 | Added|
| nfctech | NfcForumType | NFC_FORUM_TYPE_4 = 4 | Added|
| nfctech | NfcForumType | NFC_FORUM_TYPE_3 = 3 | Added|
| nfctech | NfcForumType | NFC_FORUM_TYPE_2 = 2 | Added|
| nfctech | NfcForumType | NFC_FORUM_TYPE_1 = 1 | Added|
| nfctech | NdefMessage | messageToString(ndefMessage: NdefMessage): string; | Added|
| nfctech | NdefMessage | makeExternalRecord(domainName: string, serviceName: string, externalData: string): NdefRecord; | Added|
| nfctech | NdefMessage | makeMimeRecord(mimeType: string, mimeData: string): NdefRecord; | Added|
| nfctech | NdefMessage | makeTextRecord(text: string, locale: string): NdefRecord; | Added|
| nfctech | NdefMessage | makeUriRecord(uri: string): NdefRecord; | Added|
| nfctech | NdefMessage | getNdefRecords(): NdefRecord[]; | Added|
| nfctech | RtdType | RTD_URI: 'U'; | Added|
| nfctech | RtdType | RTD_TEXT: 'T'; | Added|
| nfctech | TnfType | TNF_UNCHANGED = 0x6 | Added|
| nfctech | TnfType | TNF_UNKNOWN = 0x5 | Added|
| nfctech | TnfType | TNF_EXT_APP = 0x4 | Added|
| nfctech | TnfType | TNF_ABSOLUTE_URI = 0x3 | Added|
| nfctech | TnfType | TNF_MEDIA = 0x2 | Added|
| nfctech | TnfType | TNF_WELL_KNOWN = 0x1 | Added|
| nfctech | TnfType | TNF_EMPTY = 0x0 | Added|
| nfctech | NdefRecord | payload: string; | Added|
| nfctech | NdefRecord | id: string; | Added|
| nfctech | NdefRecord | rtdType: string; | Added|
| nfctech | NdefRecord | tnf: number; | Added|
| nfctech | IsoDepTag | isExtendedApduSupported(): Promise\<boolean>;<br>isExtendedApduSupported(callback: AsyncCallback\<boolean>): void; | Added|
| nfctech | IsoDepTag | getHiLayerResponse(): string; | Added|
| nfctech | IsoDepTag | getHistoricalBytes(): string; | Added|
| ohos.bluetooth | ProfileId | PROFILE_PAN_NETWORK = 7 | Added|
| ohos.bluetooth | ScanFilter | manufactureDataMask?: ArrayBuffer; | Added|
| ohos.bluetooth | ScanFilter | manufactureData?: ArrayBuffer; | Added|
| ohos.bluetooth | ScanFilter | manufactureId?: number; | Added|
| ohos.bluetooth | ScanFilter | serviceDataMask?: ArrayBuffer; | Added|
| ohos.bluetooth | ScanFilter | serviceData?: ArrayBuffer; | Added|
| ohos.bluetooth | ScanFilter | serviceSolicitationUuidMask?: string; | Added|
| ohos.bluetooth | ScanFilter | serviceSolicitationUuid?: string; | Added|
| ohos.bluetooth | ScanFilter | serviceUuidMask?: string; | Added|
| ohos.bluetooth | PanProfile | isTetheringOn(): boolean; | Added|
| ohos.bluetooth | PanProfile | setTethering(enable: boolean): void; | Added|
| ohos.bluetooth | PanProfile | off(type: "connectionStateChange", callback?: Callback\<StateChangeParam>): void; | Added|
| ohos.bluetooth | PanProfile | on(type: "connectionStateChange", callback: Callback\<StateChangeParam>): void; | Added|
| ohos.bluetooth | PanProfile | disconnect(device: string): boolean; | Added|
| ohos.bluetooth | bluetooth | getProfileInst(profileId: ProfileId): A2dpSourceProfile \| HandsFreeAudioGatewayProfile \| HidHostProfile \| PanProfile; | Added|
| ohos.nfc.tag | TagInfo | remoteTagService: rpc.RemoteObject; | Added|
| ohos.nfc.tag | TagInfo | tagRfDiscId: number; | Added|
| ohos.nfc.tag | TagInfo | extrasData: PacMap[]; | Added|
| ohos.nfc.tag | TagInfo | technology: number[]; | Added|
| ohos.nfc.tag | TagInfo | uid: string; | Added|
| ohos.nfc.tag | tag | getNdefFormatableTag(tagInfo: TagInfo): NdefFormatableTag | Added|
| ohos.nfc.tag | tag | getMifareUltralightTag(tagInfo: TagInfo): MifareUltralightTag | Added|
| ohos.nfc.tag | tag | getMifareClassicTag(tagInfo: TagInfo): MifareClassicTag | Added|
| ohos.nfc.tag | tag | getNdefTag(tagInfo: TagInfo): NdefTag | Added|
| ohos.nfc.tag | tag | getIsoDepTag(tagInfo: TagInfo): IsoDepTag | Added|
| ohos.nfc.tag | tag | const NDEF_FORMATABLE = 10; | Added|
| ohos.wifi | WifiLinkedInfo | macType: number; | Added|
| ohos.wifi | WifiSecurityType | WIFI_SEC_TYPE_WAPI_PSK = 9 | Added|
| ohos.wifi | WifiSecurityType | WIFI_SEC_TYPE_WAPI_CERT = 8 | Added|
| ohos.wifi | WifiSecurityType | WIFI_SEC_TYPE_OWE = 7 | Added|
| ohos.wifi | WifiSecurityType | WIFI_SEC_TYPE_EAP_SUITE_B = 6 | Added|
| ohos.wifi | WifiSecurityType | WIFI_SEC_TYPE_EAP = 5 | Added|
| ohos.wifi | WifiScanInfo | infoElems: Array\<WifiInfoElem>; | Added|
| ohos.wifi | WifiScanInfo | centerFrequency1: number; | Added|
| ohos.wifi | WifiScanInfo | centerFrequency0: number; | Added|
| ohos.wifi | WifiChannelWidth | WIDTH_INVALID | Added|
| ohos.wifi | WifiChannelWidth | WIDTH_80MHZ_PLUS = 4 | Added|
| ohos.wifi | WifiChannelWidth | WIDTH_160MHZ = 3 | Added|
| ohos.wifi | WifiChannelWidth | WIDTH_80MHZ = 2 | Added|
| ohos.wifi | WifiChannelWidth | WIDTH_40MHZ = 1 | Added|
| ohos.wifi | WifiChannelWidth | WIDTH_20MHZ = 0 | Added|
| ohos.wifi | WifiInfoElem | content: Uint8Array; | Added|
| ohos.wifi | WifiInfoElem | eid: number; | Added|
| ohos.wifi | WifiDeviceConfig | eapConfig: WifiEapConfig; | Added|
| ohos.wifi | WifiEapConfig | eapSubId: number; | Added|
| ohos.wifi | WifiEapConfig | plmn: string; | Added|
| ohos.wifi | WifiEapConfig | realm: string; | Added|
| ohos.wifi | WifiEapConfig | domainSuffixMatch: string; | Added|
| ohos.wifi | WifiEapConfig | altSubjectMatch: string; | Added|
| ohos.wifi | WifiEapConfig | clientCertAliases: string; | Added|
| ohos.wifi | WifiEapConfig | caPath: string; | Added|
| ohos.wifi | WifiEapConfig | caCertAliases: string; | Added|
| ohos.wifi | WifiEapConfig | password: string; | Added|
| ohos.wifi | WifiEapConfig | anonymousIdentity: string; | Added|
| ohos.wifi | WifiEapConfig | identity: string; | Added|
| ohos.wifi | WifiEapConfig | phase2Method: Phase2Method; | Added|
| ohos.wifi | WifiEapConfig | eapMethod: EapMethod; | Added|
| ohos.wifi | Phase2Method | PHASE2_AKA_PRIME | Added|
| ohos.wifi | Phase2Method | PHASE2_AKA | Added|
| ohos.wifi | Phase2Method | PHASE2_SIM | Added|
| ohos.wifi | Phase2Method | PHASE2_GTC | Added|
| ohos.wifi | Phase2Method | PHASE2_MSCHAPV2 | Added|
| ohos.wifi | Phase2Method | PHASE2_MSCHAP | Added|
| ohos.wifi | Phase2Method | PHASE2_PAP | Added|
| ohos.wifi | Phase2Method | PHASE2_NONE | Added|
| ohos.wifi | EapMethod | EAP_UNAUTH_TLS | Added|
| ohos.wifi | EapMethod | EAP_AKA_PRIME | Added|
| ohos.wifi | EapMethod | EAP_AKA | Added|
| ohos.wifi | EapMethod | EAP_SIM | Added|
| ohos.wifi | EapMethod | EAP_PWD | Added|
| ohos.wifi | EapMethod | EAP_TTLS | Added|
| ohos.wifi | EapMethod | EAP_TLS | Added|
| ohos.wifi | EapMethod | EAP_PEAP | Added|
| ohos.wifi | EapMethod | EAP_NONE | Added|
| ohos.wifi | wifi | getP2pGroups(): Promise\<Array\<WifiP2pGroupInfo>>;<br>getP2pGroups(callback: AsyncCallback\<Array\<WifiP2pGroupInfo>>): void; | Added|
| ohos.wifi | wifi | getP2pLocalDevice(): Promise\<WifiP2pDevice>;<br>getP2pLocalDevice(callback: AsyncCallback\<WifiP2pDevice>): void; | Added|
| ohos.wifi | wifi | connectToCandidateConfig(networkId: number): void; | Added|
| ohos.wifi | wifi | getCandidateConfigs(): Array\<WifiDeviceConfig>; | Added|
| ohos.wifi | wifi | removeCandidateConfig(networkId: number): Promise\<void>;<br>removeCandidateConfig(networkId: number, callback: AsyncCallback\<void>): void; | Added|
| ohos.wifi | wifi | addCandidateConfig(config: WifiDeviceConfig): Promise\<number>;<br>addCandidateConfig(config: WifiDeviceConfig, callback: AsyncCallback\<number>): void; | Added|
| ohos.wifi | wifi | getScanInfosSync(): Array\<WifiScanInfo>; | Added|
| ohos.bluetooth | A2dpSourceProfile | getPlayingState(device: string): PlayingState; | Deprecated|
| ohos.nfc.tag | TagInfo | supportedProfiles: number[]; | Deprecated|
# JS API Changes of the Utils Subsystem
The table below lists the APIs changes of the Utils subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.util | util | promisify(original: (err: Object, value: Object) => void): Function; | Added|
# JS API Changes of the DFX Subsystem
The table below lists the APIs changes of the DFX subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.hiSysEvent | hiSysEvent | query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): number; | Added|
| ohos.hiSysEvent | hiSysEvent | removeWatcher(wathcer: Watcher): number; | Added|
| ohos.hiSysEvent | hiSysEvent | addWatcher(watcher: Watcher): number; | Added|
| ohos.hiSysEvent | Querier | onComplete: (reason: number, total: number) => void; | Added|
| ohos.hiSysEvent | Querier | onQuery: (infos: SysEventInfo[], seqs: number[]) => void; | Added|
| ohos.hiSysEvent | QueryRule | names: string[]; | Added|
| ohos.hiSysEvent | QueryRule | domain: string; | Added|
| ohos.hiSysEvent | QueryArg | maxEvents: number; | Added|
| ohos.hiSysEvent | QueryArg | endTime: number; | Added|
| ohos.hiSysEvent | QueryArg | beginTime: number; | Added|
| ohos.hiSysEvent | Watcher | onServiceDied: () => void; | Added|
| ohos.hiSysEvent | Watcher | onEvent: (info: SysEventInfo) => void; | Added|
| ohos.hiSysEvent | Watcher | rules: WatchRule[]; | Added|
| ohos.hiSysEvent | WatchRule | ruleType: RuleType; | Added|
| ohos.hiSysEvent | WatchRule | tag: string; | Added|
| ohos.hiSysEvent | WatchRule | name: string; | Added|
| ohos.hiSysEvent | WatchRule | domain: string; | Added|
| ohos.hiSysEvent | RuleType | REGULAR = 3 | Added|
| ohos.hiSysEvent | RuleType | PREFIX = 2 | Added|
| ohos.hiSysEvent | RuleType | WHOLE_WORD = 1 | Added|
| ohos.hiSysEvent | hiSysEvent | write(info: SysEventInfo): Promise\<void>;<br>write(info: SysEventInfo, callback: AsyncCallback\<void>): void; | Added|
| ohos.hiSysEvent | SysEventInfo | params: object; | Added|
| ohos.hiSysEvent | SysEventInfo | eventType: EventType; | Added|
| ohos.hiSysEvent | SysEventInfo | name: string; | Added|
| ohos.hiSysEvent | SysEventInfo | domain: string; | Added|
| ohos.hiSysEvent | EventType | BEHAVIOR = 4 | Added|
| ohos.hiSysEvent | EventType | SECURITY = 3 | Added|
| ohos.hiSysEvent | EventType | STATISTIC = 2 | Added|
| ohos.hiSysEvent | EventType | FAULT = 1 | Added|
# JS API Changes of the Distributed Data Management Subsystem
The table below lists the APIs changes of the distributed data management subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.data.dataShare | DataShareHelper | notifyChange(uri: string, callback: AsyncCallback\<void>): void;<br>notifyChange(uri: string): Promise\<void>; | Added|
| ohos.data.dataShare | DataShareHelper | denormalizeUri(uri: string, callback: AsyncCallback\<string>): void;<br>denormalizeUri(uri: string): Promise\<string>; | Added|
| ohos.data.dataShare | DataShareHelper | normalizeUri(uri: string, callback: AsyncCallback\<string>): void;<br>normalizeUri(uri: string): Promise\<string>; | Added|
| ohos.data.dataShare | DataShareHelper | getFileTypes(uri: string, mimeTypeFilter:string, callback: AsyncCallback\<Array\<string>>): void;<br>getFileTypes(uri: string, mimeTypeFilter: string): Promise\<Array\<string>>; | Added|
| ohos.data.dataShare | DataShareHelper | getType(uri: string, callback: AsyncCallback\<string>): void;<br>getType(uri: string): Promise\<string>; | Added|
| ohos.data.dataShare | DataShareHelper | batchInsert(uri: string, values: Array\<ValuesBucket>, callback: AsyncCallback\<number>): void;<br>batchInsert(uri: string, values: Array\<ValuesBucket>): Promise\<number>; | Added|
| ohos.data.dataShare | DataShareHelper | update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: ValuesBucket, callback: AsyncCallback\<number>): void;<br>update(uri: string, predicates: dataSharePredicates.DataSharePredicates, value: ValuesBucket): Promise\<number>; | Added|
| ohos.data.dataShare | DataShareHelper | query(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\<string>, callback: AsyncCallback\<DataShareResultSet>): void;<br>query(uri: string, predicates: dataSharePredicates.DataSharePredicates, columns: Array\<string>): Promise\<DataShareResultSet>; | Added|
| ohos.data.dataShare | DataShareHelper | delete(uri: string, predicates: dataSharePredicates.DataSharePredicates, callback: AsyncCallback\<number>): void;<br>delete(uri: string, predicates: dataSharePredicates.DataSharePredicates): Promise\<number>; | Added|
| ohos.data.dataShare | DataShareHelper | insert(uri: string, value: ValuesBucket, callback: AsyncCallback\<number>): void;<br>insert(uri: string, value: ValuesBucket): Promise\<number>; | Added|
| ohos.data.dataShare | DataShareHelper | off(type: 'dataChange', uri: string, callback?: AsyncCallback\<void>): void; | Added|
| ohos.data.dataShare | DataShareHelper | on(type: 'dataChange', uri: string, callback: AsyncCallback\<void>): void; | Added|
| ohos.data.dataShare | DataShareHelper | openFile(uri: string, mode: string, callback: AsyncCallback\<number>): void;<br>openFile(uri: string, mode: string): Promise\<number>; | Added|
| ohos.data.dataShare | dataShare | function createDataShareHelper(context: Context, uri: string, callback: AsyncCallback\<DataShareHelper>): void;<br>function createDataShareHelper(context: Context, uri: string): Promise\<DataShareHelper>; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | inKeys(keys: Array\<string>): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | prefixKey(prefix: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | notIn(field: string, value: Array\<ValueType>): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | in(field: string, value: Array\<ValueType>): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | indexedBy(field: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | groupBy(fields: Array\<string>): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | limit(total: number, offset: number): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | distinct(): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | orderByDesc(field: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | orderByAsc(field: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | lessThanOrEqualTo(field: string, value: ValueType): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | greaterThanOrEqualTo(field: string, value: ValueType): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | lessThan(field: string, value: ValueType): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | greaterThan(field: string, value: ValueType): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | notBetween(field: string, low: ValueType, high: ValueType): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | between(field: string, low: ValueType, high: ValueType): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | glob(field: string, value: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | unlike(field: string, value: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | like(field: string, value: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | isNotNull(field: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | isNull(field: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | endsWith(field: string, value: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | beginsWith(field: string, value: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | contains(field: string, value: string): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | and(): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | or(): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | endWrap(): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | beginWrap(): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | notEqualTo(field: string, value: ValueType): DataSharePredicates; | Added|
| ohos.data.dataSharePredicates | DataSharePredicates | equalTo(field: string, value: ValueType): DataSharePredicates; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | getDataType(columnIndex: number): DataType; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | getColumnName(columnIndex: number): string; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | getColumnIndex(columnName: string): number; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | close(): void; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | getDouble(columnIndex: number): number; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | getLong(columnIndex: number): number; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | getString(columnIndex: number): string; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | getBlob(columnIndex: number): Uint8Array; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | goToRow(position: number): boolean; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | goTo(offset: number): boolean; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | goToPreviousRow(): boolean; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | goToNextRow(): boolean; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | goToLastRow(): boolean; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | goToFirstRow(): boolean; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | isClosed: boolean; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | rowCount: number; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | columnCount: number; | Added|
| ohos.data.DataShareResultSet | DataShareResultSet | columnNames: Array\<string>; | Added|
| ohos.data.DataShareResultSet | DataType | TYPE_BLOB = 4 | Added|
| ohos.data.DataShareResultSet | DataType | TYPE_STRING = 3 | Added|
| ohos.data.DataShareResultSet | DataType | TYPE_DOUBLE = 2 | Added|
| ohos.data.DataShareResultSet | DataType | TYPE_LONG = 1 | Added|
| ohos.data.DataShareResultSet | DataType | TYPE_NULL = 0 | Added|
| ohos.data.distributedData | DeviceKVStore | off(event:'dataChange', listener?: Callback\<ChangeNotification>): void; | Added|
| ohos.data.distributedData | DeviceKVStore | on(event: 'dataChange', type: SubscribeType, listener: Callback\<ChangeNotification>): void; | Added|
| ohos.data.distributedData | SingleKVStore | off(event:'dataChange', listener?: Callback\<ChangeNotification>): void; | Added|
| ohos.data.distributedData | SingleKVStore | on(event: 'dataChange', type: SubscribeType, listener: Callback\<ChangeNotification>): void; | Added|
| ohos.data.distributedData | KVStore | off(event: 'syncComplete', syncCallback?: Callback\<Array\<[string, number]>>): void; | Added|
| ohos.data.distributedData | KVManagerConfig | context: Context; | Added|
| ohos.data.distributedDataObject | DistributedObject | revokeSave(callback: AsyncCallback\<RevokeSaveSuccessResponse>): void;<br>revokeSave(): Promise\<RevokeSaveSuccessResponse>; | Added|
| ohos.data.distributedDataObject | DistributedObject | save(deviceId: string, callback: AsyncCallback\<SaveSuccessResponse>): void;<br>save(deviceId: string): Promise\<SaveSuccessResponse>; | Added|
| ohos.data.distributedDataObject | RevokeSaveSuccessResponse | sessionId: string; | Added|
| ohos.data.distributedDataObject | SaveSuccessResponse | deviceId: string; | Added|
| ohos.data.distributedDataObject | SaveSuccessResponse | version: number; | Added|
| ohos.data.distributedDataObject | SaveSuccessResponse | sessionId: string; | Added|
| ohos.data.rdb | RdbStore | restore(srcName:string, callback: AsyncCallback\<void>):void;<br>restore(srcName:string): Promise\<void>; | Added|
| ohos.data.rdb | RdbStore | backup(destName:string, callback: AsyncCallback\<void>):void;<br>backup(destName:string): Promise\<void>; | Added|
# JS API Changes of the Common Event and Notification Subsystem
The table below lists the APIs changes of the common event and notification subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| notificationRequest | NotificationRequest | badgeNumber?: number; | Added|
| notificationRequest | NotificationRequest | removalWantAgent?: WantAgent; | Added|
| ohos.commonEvent | Support | COMMON_EVENT_SPN_INFO_CHANGED = "usual.event.SPN_INFO_CHANGED" | Added|
| ohos.commonEvent | Support | COMMON_EVENT_SLOT_CHANGE = "usual.event.SLOT_CHANGE" | Added|
| ohos.notification | notification | getSyncNotificationEnabledForUninstallApp(userId: number, callback: AsyncCallback\<boolean>): void;<br>getSyncNotificationEnabledForUninstallApp(userId: number): Promise\<boolean>; | Added|
| ohos.notification | notification | setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean, callback: AsyncCallback\<void>): void;<br>setSyncNotificationEnabledForUninstallApp(userId: number, enable: boolean): Promise\<void>; | Added|
# JS API Changes of the File Management Subsystem
The table below lists the APIs changes of the file management subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.volumeManager | Volume | diskId: string; | Added|
| ohos.volumeManager | volumeManager | partition(volId: string, fstype: string, callback: AsyncCallback\<void>): void;<br>partition(volId: string, fstype: string): Promise\<void>; | Updated|
| ohos.volumeManager | volumeManager | format(volId: string, callback: AsyncCallback\<void>): void;<br>format(volId: string): Promise\<void>; | Updated|
| ohos.volumeManager | volumeManager | old :<br>getVolumeById(id: string, callback: AsyncCallback\<Volume>): void;<br>getVolumeById(id: string): Promise\<Volume>;<br>new :<br>getVolumeById(volumeId: string, callback: AsyncCallback\<Volume>): void;<br>getVolumeById(volumeId: string): Promise\<Volume> | Updated|
| ohos.volumeManager | volumeManager | old :<br>format(volId: string, callback: AsyncCallback\<void>): void;<br>format(volId: string): Promise\<void>;<br>new :<br>format(volumeId: string, fsType: string, callback: AsyncCallback\<void>): void;<br>format(volumeId: string, fsType: string): Promise\<void>; | Updated|
| ohos.volumeManager | volumeManager | old :<br>partition(volId: string, fstype: string, callback: AsyncCallback\<void>): void;<br>partition(volId: string, fstype: string): Promise\<void>;<br>new :<br>partition(diskId: string, type: number, callback: AsyncCallback\<void>): void;<br>partition(diskId: string, type: number): Promise\<void>; | Updated|
# JS API Changes of the Location Subsystem
The table below lists the APIs changes of the location subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_NETWORK | Added|
| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_LOCATION | Added|
| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_SIM | Added|
| ohos.geolocation | CountryCodeType | COUNTRY_CODE_FROM_LOCALE = 1 | Added|
| ohos.geolocation | CountryCode | type: CountryCodeType; | Added|
| ohos.geolocation | CountryCode | country: string; | Added|
| ohos.geolocation | GeoLocationErrorCode | QUERY_COUNTRY_CODE_ERROR | Added|
| ohos.geolocation | GeoLocationErrorCode | NOT_SUPPORTED = 100 | Added|
| ohos.geolocation | Location | isFromMock: Boolean; | Added|
| ohos.geolocation | GeoAddress | isFromMock: Boolean; | Added|
| ohos.geolocation | LocationMockConfig | locations: Array\<Location>; | Added|
| ohos.geolocation | LocationMockConfig | timeInterval: number; | Added|
| ohos.geolocation | ReverseGeocodingMockInfo | geoAddress: GeoAddress; | Added|
| ohos.geolocation | ReverseGeocodingMockInfo | location: ReverseGeoCodeRequest; | Added|
| ohos.geolocation | geolocation | setReverseGeocodingMockInfo(mockInfos: Array\<ReverseGeocodingMockInfo>, callback: AsyncCallback\<void>) : void;<br>setReverseGeocodingMockInfo(mockInfos: Array\<ReverseGeocodingMockInfo>) : Promise\<void>; | Added|
| ohos.geolocation | geolocation | disableReverseGeocodingMock(callback: AsyncCallback\<void>) : void;<br>disableReverseGeocodingMock() : Promise\<void>; | Added|
| ohos.geolocation | geolocation | enableReverseGeocodingMock(callback: AsyncCallback\<void>) : void;<br>enableReverseGeocodingMock() : Promise\<void>; | Added|
| ohos.geolocation | geolocation | setMockedLocations(config: LocationMockConfig, callback: AsyncCallback\<void>) : void;<br>setMockedLocations(config: LocationMockConfig) : Promise\<void>; | Added|
| ohos.geolocation | geolocation | disableLocationMock(scenario?: LocationRequestScenario, callback: AsyncCallback\<void>) : void;<br>disableLocationMock(scenario?: LocationRequestScenario) : Promise\<void>; | Added|
| ohos.geolocation | geolocation | enableLocationMock(scenario?: LocationRequestScenario, callback: AsyncCallback\<void>) : void;<br>enableLocationMock(scenario?: LocationRequestScenario) : Promise\<void>; | Added|
| ohos.geolocation | geolocation | getCountryCode(callback: AsyncCallback\<CountryCode>) : void;<br>getCountryCode() : Promise\<CountryCode>; | Added|
| ohos.geolocation | geolocation | off(type: 'countryCodeChange', callback?: Callback\<CountryCode>) : void; | Added|
| ohos.geolocation | geolocation | on(type: 'countryCodeChange', callback: Callback\<CountryCode>) : void; | Added|
# JS API Changes of the Globalization Subsystem
The table below lists the APIs changes of the globalization subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.EnterpriseAdminExtensionAbility | EnterpriseAdminExtensionAbility | onAdminDisabled(): void; | Added|
| ohos.EnterpriseAdminExtensionAbility | EnterpriseAdminExtensionAbility | onAdminEnabled(): void; | Added|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | isAdminEnabled(admin: Want, callback: AsyncCallback\<boolean>): void;<br>isAdminEnabled(admin: Want, userId: number, callback: AsyncCallback\<boolean>): void;<br>isAdminEnabled(admin: Want, userId?: number): Promise\<boolean>; | Added|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | disableSuperAdmin(bundleName: String, callback: AsyncCallback\<boolean>): void;<br>disableSuperAdmin(bundleName: String): Promise\<boolean>; | Added|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | disableAdmin(admin: Want, callback: AsyncCallback\<boolean>): void;<br>disableAdmin(admin: Want, userId: number, callback: AsyncCallback\<boolean>): void;<br>disableAdmin(admin: Want, userId?: number): Promise\<boolean>; | Added|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId: number, callback: AsyncCallback\<boolean>): void;<br>enableAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, userId?: number): Promise\<boolean>; | Added|
| ohos.i18n | i18n | getUsingLocalDigit(): boolean; | Added|
| ohos.i18n | i18n | setUsingLocalDigit(flag: boolean): boolean; | Added|
| ohos.i18n | Transliterator | transform(text: string): string; | Added|
| ohos.i18n | Transliterator | static getInstance(id: string): Transliterator; | Added|
| ohos.i18n | Transliterator | static getAvailableIDs(): string[]; | Added|
| ohos.i18n | TimeZone | static getTimezoneFromCity(cityID: string): TimeZone; | Added|
| ohos.i18n | TimeZone | static getCityDisplayName(cityID: string, locale: string): string; | Added|
| ohos.i18n | TimeZone | static getAvailableZoneCityIDs(): Array\<string>; | Added|
| ohos.i18n | TimeZone | static getAvailableIDs(): Array\<string>; | Added|
| ohos.i18n | PhoneNumberFormat | getLocationName(number: string, locale: string): string; | Added|
| ohos.i18n | Util | getDateOrder(locale: string): string; | Added|
| resource | Resource | id: number; | Added|
| resource | Resource | moduleName: string; | Added|
| resource | Resource | bundleName: string; | Added|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | isAdminAppActive(admin: Want, callback: AsyncCallback\<boolean>): void;<br>isAdminAppActive(admin: Want): Promise\<boolean>; | Deleted|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | deactivateSuperAdmin(bundleName: String, callback: AsyncCallback\<boolean>): void;<br>deactivateSuperAdmin(bundleName: String): Promise\<boolean>; | Deleted|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | deactivateAdmin(admin: Want, callback: AsyncCallback\<boolean>): void;<br>deactivateAdmin(admin: Want): Promise\<boolean>; | Deleted|
| ohos.enterpriseDeviceManager | enterpriseDeviceManager | activateAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType, callback: AsyncCallback\<boolean>): void;<br>activateAdmin(admin: Want, enterpriseInfo: EnterpriseInfo, type: AdminType): Promise\<boolean>; | Deleted|
# JS API Changes of the Graphics Subsystem
The table below lists the APIs changes of the graphics subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.effectKit | effectKit | createColorPicker(source: image.PixelMap): Promise\<ColorPicker>;<br>function createColorPicker(source: image.PixelMap, callback: AsyncCallback\<ColorPicker>): void; | Added|
| ohos.effectKit | effectKit | createEffect(source: image.PixelMap): Filter; | Added|
| ohos.effectKit | Color | alpha: number; | Added|
| ohos.effectKit | Color | blue: number; | Added|
| ohos.effectKit | Color | green: number; | Added|
| ohos.effectKit | Color | red: number; | Added|
| ohos.effectKit | ColorPicker | getMainColorSync(): Color; | Added|
| ohos.effectKit | ColorPicker | getMainColor(): Promise\<Color>; | Added|
| ohos.effectKit | Filter | getPixelMap(): image.PixelMap; | Added|
| ohos.effectKit | Filter | grayscale(): Filter; | Added|
| ohos.effectKit | Filter | brightness(bright:number): Filter; | Added|
| ohos.effectKit | Filter | blur(radius:number): Filter; | Added|
# JS API Changes of the Misc Services Subsystem
The table below lists the APIs changes of the Misc services subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Method/Event Name| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.inputmethod | inputMethod | switchInputMethod(target: InputMethodProperty, callback: AsyncCallback\<boolean>): void;<br>switchInputMethod(target: InputMethodProperty): Promise\<boolean>; | Added|
# JS API Changes of the Multimodal Input Subsystem
The table below lists the APIs changes of the multimodal input subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.multimodalInput.inputMonitor | inputMonitor | off(type:"mouse", receiver?:Callback\<MouseEvent>):void; | Added|
| ohos.multimodalInput.inputMonitor | inputMonitor | on(type:"mouse", receiver:Callback\<MouseEvent>):void; | Added|
# JS API Changes of the Multimedia Subsystem
The table below lists the APIs changes of the multimedia subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.multimedia.audio | AudioRenderer | setInterruptMode(mode: InterruptMode, callback: AsyncCallback\<void>): void;<br>setInterruptMode(mode: InterruptMode): Promise\<void>; | Added|
| ohos.multimedia.audio | AudioDeviceDescriptor | readonly channelMasks: Array\<number>; | Added|
| ohos.multimedia.audio | AudioDeviceDescriptor | readonly channelCounts: Array\<number>; | Added|
| ohos.multimedia.audio | AudioDeviceDescriptor | readonly sampleRates: Array\<number>; | Added|
| ohos.multimedia.audio | AudioDeviceDescriptor | readonly address: string; | Added|
| ohos.multimedia.audio | AudioDeviceDescriptor | readonly name: string; | Added|
| ohos.multimedia.audio | AudioDeviceDescriptor | readonly id: number; | Added|
| ohos.multimedia.audio | AudioCapturerChangeInfo | readonly deviceDescriptors: AudioDeviceDescriptors; | Added|
| ohos.multimedia.audio | AudioCapturerChangeInfo | readonly capturerState: AudioState; | Added|
| ohos.multimedia.audio | AudioCapturerChangeInfo | readonly capturerInfo: AudioCapturerInfo; | Added|
| ohos.multimedia.audio | AudioCapturerChangeInfo | readonly clientUid: number; | Added|
| ohos.multimedia.audio | AudioCapturerChangeInfo | readonly streamId: number; | Added|
| ohos.multimedia.audio | AudioRendererChangeInfo | readonly deviceDescriptors: AudioDeviceDescriptors; | Added|
| ohos.multimedia.audio | AudioRendererChangeInfo | readonly rendererState: AudioState; | Added|
| ohos.multimedia.audio | AudioRendererChangeInfo | readonly rendererInfo: AudioRendererInfo; | Added|
| ohos.multimedia.audio | AudioRendererChangeInfo | readonly clientUid: number; | Added|
| ohos.multimedia.audio | AudioRendererChangeInfo | readonly streamId: number; | Added|
| ohos.multimedia.audio | AudioStreamManager | off(type: "audioCapturerChange"); | Added|
| ohos.multimedia.audio | AudioStreamManager | on(type: "audioCapturerChange", callback: Callback\<AudioCapturerChangeInfoArray>): void; | Added|
| ohos.multimedia.audio | AudioStreamManager | off(type: "audioRendererChange"); | Added|
| ohos.multimedia.audio | AudioStreamManager | on(type: "audioRendererChange", callback: Callback\<AudioRendererChangeInfoArray>): void; | Added|
| ohos.multimedia.audio | AudioStreamManager | getCurrentAudioCapturerInfoArray(callback: AsyncCallback\<AudioCapturerChangeInfoArray>): void;<br>getCurrentAudioCapturerInfoArray(): Promise\<AudioCapturerChangeInfoArray>; | Added|
| ohos.multimedia.audio | AudioStreamManager | getCurrentAudioRendererInfoArray(callback: AsyncCallback\<AudioRendererChangeInfoArray>): void;<br>getCurrentAudioRendererInfoArray(): Promise\<AudioRendererChangeInfoArray>; | Added|
| ohos.multimedia.audio | AudioManager | getStreamManager(callback: AsyncCallback\<AudioStreamManager>): void;<br>getStreamManager(): Promise\<AudioStreamManager>; | Added|
| ohos.multimedia.audio | AudioManager | off(type: 'independentInterrupt', callback?: Callback\<InterruptEvent>): void; | Added|
| ohos.multimedia.audio | AudioManager | on(type: 'independentInterrupt', callback: Callback\<InterruptEvent>): void; | Added|
| ohos.multimedia.audio | AudioManager | abandonIndependentInterrupt(focusType: FocusType, callback: AsyncCallback\<boolean>): void;<br>abandonIndependentInterrupt(focusType: FocusType): Promise\<boolean>; | Added|
| ohos.multimedia.audio | AudioManager | requestIndependentInterrupt(focusType: FocusType, callback: AsyncCallback\<boolean>): void;<br>requestIndependentInterrupt(focusType: FocusType): Promise\<boolean>; | Added|
| ohos.multimedia.audio | InterruptMode | INDEPENDENT_MODE = 1 | Added|
| ohos.multimedia.audio | InterruptMode | SHARE_MODE = 0 | Added|
| ohos.multimedia.audio | FocusType | FOCUS_TYPE_RECORDING = 0 | Added|
| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_F32LE = 4 | Added|
| ohos.multimedia.audio | AudioVolumeType | ALL = 100 | Added|
| ohos.multimedia.image | PixelMap | crop(region: Region, callback: AsyncCallback\<void>): void;<br>crop(region: Region): Promise\<void>; | Added|
| ohos.multimedia.image | PixelMap | flip(horizontal: boolean, vertical: boolean, callback: AsyncCallback\<void>): void;<br>flip(horizontal: boolean, vertical: boolean): Promise\<void>; | Added|
| ohos.multimedia.image | PixelMap | rotate(angle: number, callback: AsyncCallback\<void>): void;<br>rotate(angle: number): Promise\<void>; | Added|
| ohos.multimedia.image | PixelMap | translate(x: number, y: number, callback: AsyncCallback\<void>): void;<br>translate(x: number, y: number): Promise\<void>; | Added|
| ohos.multimedia.image | PixelMap | scale(x: number, y: number, callback: AsyncCallback\<void>): void;<br>scale(x: number, y: number): Promise\<void>; | Added|
| ohos.multimedia.image | PixelMap | createAlphaPixelmap(): Promise\<PixelMap>;<br>createAlphaPixelmap(callback: AsyncCallback\<PixelMap>): void; | Added|
| ohos.multimedia.image | PixelMap | opacity(rate: number, callback: AsyncCallback\<void>): void;<br>opacity(rate: number): Promise\<void>; | Added|
| ohos.multimedia.image | PixelMap | getDensity():number; | Added|
| ohos.multimedia.image | SourceOptions | sourceSize?: Size; | Added|
| ohos.multimedia.image | SourceOptions | sourcePixelFormat?: PixelMapFormat; | Added|
| ohos.multimedia.image | SourceOptions | sourceDensity: number; | Added|
| ohos.multimedia.media | VideoScaleType | VIDEO_SCALE_TYPE_FIT_CROP | Added|
| ohos.multimedia.media | VideoScaleType | VIDEO_SCALE_TYPE_FIT = 0 | Added|
| ohos.multimedia.media | VideoPlayer | on(type: 'availableBitratesCollected', callback: (bitrates: Array\<number>) => void): void | Added|
| ohos.multimedia.media | VideoPlayer | on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void; | Added|
| ohos.multimedia.media | VideoPlayer | selectBitrate(bitrate: number): Promise\<number>;<br>selectBitrate(bitrate: number, callback: AsyncCallback\<number>): void; | Added|
| ohos.multimedia.media | VideoPlayer | videoScaleType ?: VideoScaleType; | Added|
| ohos.multimedia.media | VideoPlayer | audioInterruptMode ?: audio.InterruptMode; | Added|
| ohos.multimedia.media | VideoPlayer | fdSrc: AVFileDescriptor; | Added|
| ohos.multimedia.media | AudioPlayer | on(type: 'audioInterrupt', callback: (info: audio.InterruptEvent) => void): void; | Added|
| ohos.multimedia.media | AudioPlayer | audioInterruptMode ?: audio.InterruptMode; | Added|
| ohos.multimedia.media | AudioPlayer | fdSrc: AVFileDescriptor; | Added|
| ohos.multimedia.media | AVFileDescriptor | length?: number | Added|
| ohos.multimedia.media | AVFileDescriptor | offset?: number | Added|
| ohos.multimedia.media | AVFileDescriptor | fd: number | Added|
# JS API Changes of the Resource Scheduler Subsystem
The table below lists the APIs changes of the resource scheduler subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.bundleState | bundleState | queryAppNotificationNumber(begin: number, end: number, callback: AsyncCallback\<Array\<BundleActiveEventState>>): void;<br>queryAppNotificationNumber(begin: number, end: number): Promise\<Array\<BundleActiveEventState>>; | Added|
| ohos.bundleState | bundleState | queryBundleActiveEventStates(begin: number, end: number, callback: AsyncCallback\<Array\<BundleActiveEventState>>): void;<br>queryBundleActiveEventStates(begin: number, end: number): Promise\<Array\<BundleActiveEventState>>; | Added|
| ohos.bundleState | bundleState | unRegisterGroupCallBack(callback: AsyncCallback\<void>): void;<br>unRegisterGroupCallBack(): Promise\<void>; | Added|
| ohos.bundleState | bundleState | registerGroupCallBack(callback: Callback\<BundleActiveGroupCallbackInfo>, callback: AsyncCallback\<void>): void;<br>registerGroupCallBack(callback: Callback\<BundleActiveGroupCallbackInfo>): Promise\<void>; | Added|
| ohos.bundleState | bundleState | setBundleGroup(bundleName: string, newGroup: GroupType, callback: AsyncCallback\<void>): void;<br>setBundleGroup(bundleName: string, newGroup: GroupType): Promise\<void>; | Added|
| ohos.bundleState | GroupType | ACTIVE_GROUP_NEVER = 60 | Added|
| ohos.bundleState | GroupType | ACTIVE_GROUP_LIMIT = 50 | Added|
| ohos.bundleState | GroupType | ACTIVE_GROUP_RARE = 40 | Added|
| ohos.bundleState | GroupType | ACTIVE_GROUP_FIXED = 30 | Added|
| ohos.bundleState | GroupType | ACTIVE_GROUP_DAILY = 20 | Added|
| ohos.bundleState | GroupType | ACTIVE_GROUP_ALIVE = 10 | Added|
| ohos.bundleState | BundleActiveGroupCallbackInfo | bundleName: string; | Added|
| ohos.bundleState | BundleActiveGroupCallbackInfo | changeReason: number; | Added|
| ohos.bundleState | BundleActiveGroupCallbackInfo | userId: number; | Added|
| ohos.bundleState | BundleActiveGroupCallbackInfo | appUsageNewGroup: number; | Added|
| ohos.bundleState | BundleActiveGroupCallbackInfo | appUsageOldGroup: number; | Added|
| ohos.bundleState | BundleActiveEventState | count: number; | Added|
| ohos.bundleState | BundleActiveEventState | eventId: number; | Added|
| ohos.bundleState | BundleActiveEventState | name: string; | Added|
# JS API Changes of the Security Subsystem
The table below lists the APIs changes of the security subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.privacyManager | UsedRecordDetail | accessDuration: number; | Added|
| ohos.privacyManager | UsedRecordDetail | timestamp: number; | Added|
| ohos.privacyManager | UsedRecordDetail | status: number; | Added|
| ohos.privacyManager | PermissionUsedRecord | rejectRecords: Array\<UsedRecordDetail>; | Added|
| ohos.privacyManager | PermissionUsedRecord | accessRecords: Array\<UsedRecordDetail>; | Added|
| ohos.privacyManager | PermissionUsedRecord | lastAccessDuration: number; | Added|
| ohos.privacyManager | PermissionUsedRecord | lastRejectTime: number; | Added|
| ohos.privacyManager | PermissionUsedRecord | lastAccessTime: number; | Added|
| ohos.privacyManager | PermissionUsedRecord | rejectCount: number; | Added|
| ohos.privacyManager | PermissionUsedRecord | accessCount: number; | Added|
| ohos.privacyManager | PermissionUsedRecord | permissionName: string; | Added|
| ohos.privacyManager | BundleUsedRecord | permissionRecords: Array\<PermissionUsedRecord>; | Added|
| ohos.privacyManager | BundleUsedRecord | bundleName: string; | Added|
| ohos.privacyManager | BundleUsedRecord | deviceId: string; | Added|
| ohos.privacyManager | BundleUsedRecord | isRemote: boolean; | Added|
| ohos.privacyManager | BundleUsedRecord | tokenId: number; | Added|
| ohos.privacyManager | PermissionUsedResponse | bundleRecords: Array\<BundleUsedRecord>; | Added|
| ohos.privacyManager | PermissionUsedResponse | endTime: number; | Added|
| ohos.privacyManager | PermissionUsedResponse | beginTime: number; | Added|
| ohos.privacyManager | PermissionUsedRequest | flag: PermissionUsageFlag; | Added|
| ohos.privacyManager | PermissionUsedRequest | endTime: number; | Added|
| ohos.privacyManager | PermissionUsedRequest | beginTime: number; | Added|
| ohos.privacyManager | PermissionUsedRequest | permissionNames: Array\<string>; | Added|
| ohos.privacyManager | PermissionUsedRequest | bundleName: string; | Added|
| ohos.privacyManager | PermissionUsedRequest | deviceId: string; | Added|
| ohos.privacyManager | PermissionUsedRequest | isRemote: boolean; | Added|
| ohos.privacyManager | PermissionUsedRequest | tokenId: number; | Added|
| ohos.privacyManager | PermissionUsageFlag | FLAG_PERMISSION_USAGE_DETAIL = 1 | Added|
| ohos.privacyManager | PermissionUsageFlag | FLAG_PERMISSION_USAGE_SUMMARY = 0 | Added|
| ohos.privacyManager | privacyManager | getPermissionUsedRecords(request: PermissionUsedRequest): Promise\<PermissionUsedResponse>;<br>getPermissionUsedRecords(request: PermissionUsedRequest, callback: AsyncCallback\<PermissionUsedResponse>): void; | Added|
| ohos.privacyManager | privacyManager | addPermissionUsedRecord(tokenID: number, permissionName: string, successCount: number, failCount: number): Promise\<number>;<br>addPermissionUsedRecord(tokenID: number, permissionName: string, successCount: number, failCount: number, callback: AsyncCallback\<number>): void; | Added|
| ohos.security.huks | HuksTag | HUKS_TAG_UNWRAP_ALGORITHM_SUITE = HuksTagType.HUKS_TAG_TYPE_UINT \| 26 | Added|
| ohos.security.huks | HuksTag | HUKS_TAG_IMPORT_KEY_TYPE = HuksTagType.HUKS_TAG_TYPE_UINT \| 25 | Added|
| ohos.security.huks | HuksImportKeyType | HUKS_KEY_TYPE_KEY_PAIR = 2 | Added|
| ohos.security.huks | HuksImportKeyType | HUKS_KEY_TYPE_PRIVATE_KEY = 1 | Added|
| ohos.security.huks | HuksImportKeyType | HUKS_KEY_TYPE_PUBLIC_KEY = 0 | Added|
| ohos.security.huks | HuksUnwrapSuite | HUKS_UNWRAP_SUITE_ECDH_AES_256_GCM_NOPADDING = 2 | Added|
| ohos.security.huks | HuksUnwrapSuite | HUKS_UNWRAP_SUITE_X25519_AES_256_GCM_NOPADDING = 1 | Added|
| ohos.security.huks | HuksKeyAlg | HUKS_ALG_SM4 = 152 | Added|
| ohos.security.huks | HuksKeyAlg | HUKS_ALG_SM3 = 151 | Added|
| ohos.security.huks | HuksKeyAlg | HUKS_ALG_SM2 = 150 | Added|
| ohos.security.huks | HuksKeySize | HUKS_SM4_KEY_SIZE_128 = 128 | Added|
| ohos.security.huks | HuksKeySize | HUKS_SM2_KEY_SIZE_256 = 256 | Added|
| ohos.security.huks | HuksKeyDigest | HUKS_DIGEST_SM3 = 2 | Added|
| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_USAGE_OF_KEY = -127 | Added|
| ohos.security.huks | HuksErrorCode | HUKS_ERROR_INVALID_WRAPPED_FORMAT = -126 | Added|
| ohos.security.huks | huks | importWrappedKey(keyAlias: string, wrappingKeyAlias: string, options: HuksOptions, callback: AsyncCallback\<HuksResult>) : void;<br>importWrappedKey(keyAlias: string, wrappingKeyAlias: string, options: HuksOptions) : Promise\<HuksResult>; | Added|
# JS API Changes of the Pan-Sensor Subsystem
The table below lists the APIs changes of the pan-sensor subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.sensor | SensorType | SENSOR_TYPE_ID_HEART_BEAT_RATE = 278 | Added|
| ohos.sensor | SensorType | SENSOR_TYPE_ID_LINEAR_ACCELEROMETER = 258 | Added|
| ohos.sensor | sensor | getSensorLists(callback: AsyncCallback\<Array\<Sensor>>): void;<br>getSensorLists(): Promise\<Array\<Sensor>>; | Added|
| ohos.sensor | sensor | getSingleSensor(type: SensorType, callback: AsyncCallback\<Sensor>): void;<br>getSingleSensor(type: SensorType): Promise\<Sensor>; | Added|
| ohos.sensor | Sensor | power:number; | Added|
| ohos.sensor | Sensor | precision:number; | Added|
| ohos.sensor | Sensor | maxRange:number; | Added|
| ohos.sensor | Sensor | sensorTypeId:number; | Added|
| ohos.sensor | Sensor | hardwareVersion:string; | Added|
| ohos.sensor | Sensor | firmwareVersion:string; | Added|
| ohos.sensor | Sensor | venderName:string; | Added|
| ohos.sensor | Sensor | sensorName:string; | Added|
| ohos.sensor | SensorType | SENSOR_TYPE_ID_HEART_RATE = 278 | Deprecated|
| ohos.sensor | SensorType | SENSOR_TYPE_ID_LINEAR_ACCELERATION = 258 | Deprecated|
# JS API Changes of the DSoftBus Subsystem
The table below lists the APIs changes of the DSoftBus subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.rpc | RemoteProxy | sendRequestAsync(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\<SendRequestResult>; | Added|
| ohos.rpc | RemoteObject | sendRequestAsync(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\<SendRequestResult>; | Added|
| ohos.rpc | IRemoteObject | sendRequestAsync(code: number, data: MessageParcel, reply: MessageParcel, options: MessageOption): Promise\<SendRequestResult>; | Added|
# JS API Changes of the Test Subsystem
The table below lists the APIs changes of the test subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.uitest | UiWindow | close():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | resume():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | minimize():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | maximize():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | split():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | resize(wide: number, height: number, direction: ResizeDirection):Promise\<bool>; | Added|
| ohos.uitest | UiWindow | moveTo(x: number, y: number):Promise\<bool>; | Added|
| ohos.uitest | UiWindow | focus():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | isActived():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | isFocused():Promise\<bool>; | Added|
| ohos.uitest | UiWindow | getWindowMode():Promise\<WindowMode>; | Added|
| ohos.uitest | UiWindow | getTitle():Promise\<string>; | Added|
| ohos.uitest | UiWindow | getBounds():Promise\<Rect>; | Added|
| ohos.uitest | UiWindow | getBundleName():Promise\<string>; | Added|
| ohos.uitest | UiDriver | triggerCombineKeys(key0: number, key1: number, key2?: number): Promise\<void>; | Added|
| ohos.uitest | UiDriver | findWindow(filter:WindowFilter):Promise\<UiWindow>; | Added|
| ohos.uitest | UiComponent | pinchIn(scale: number): Promise\<void>; | Added|
| ohos.uitest | UiComponent | pinchOut(scale: number): Promise\<void>; | Added|
| ohos.uitest | UiComponent | getBoundsCenter(): Promise\<Point>; | Added|
| ohos.uitest | WindowFilter | readonly actived?: bool; | Added|
| ohos.uitest | WindowFilter | readonly focused?: bool; | Added|
| ohos.uitest | WindowFilter | readonly title?: string; | Added|
| ohos.uitest | WindowFilter | readonly bundleName?: string; | Added|
| ohos.uitest | Point | readonly Y: number; | Added|
| ohos.uitest | Point | readonly X: number; | Added|
| ohos.uitest | WindowMode | FLOATING | Added|
| ohos.uitest | WindowMode | SECONDARY | Added|
| ohos.uitest | WindowMode | PRIMARY | Added|
| ohos.uitest | WindowMode | FULLSCREEN | Added|
| ohos.uitest | ResizeDirection | RIGHT_DOWN | Added|
| ohos.uitest | ResizeDirection | RIGHT_UP | Added|
| ohos.uitest | ResizeDirection | LEFT_DOWN | Added|
| ohos.uitest | ResizeDirection | LEFT_UP | Added|
| ohos.uitest | ResizeDirection | DOWN | Added|
| ohos.uitest | ResizeDirection | UP | Added|
| ohos.uitest | ResizeDirection | RIGHT | Added|
| ohos.uitest | ResizeDirection | LEFT | Added|
| ohos.uitest | UiDriver | swipe(startx:number,starty:number,endx:number,endy:number):Promise\<void>; | Deprecated|
| ohos.uitest | UiDriver |old : drag(startx: number, starty: number, endx: number, endy: number): Promise\<void>;<br>new : drag(startx: number, starty: number, endx: number, endy: number, speed?: number): Promise\<void>;| Updated|
| ohos.uitest | UiComponent |old : scrollToBottom(): Promise\<void>;<br>new : scrollToTop(speed?: number): Promise\<void>;| Updated|
| ohos.uitest | UiComponent |old : scrollToTop(): Promise\<void>;<br>new : scrollToTop(speed?: number): Promise\<void>; | Updated|
# JS API Changes of the Update Subsystem
The table below lists the APIs changes of the update subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.update | EventId | EVENT_UPGRADE_FAIL | Added|
| ohos.update | EventId | EVENT_UPGRADE_SUCCESS | Added|
| ohos.update | EventId | EVENT_APPLY_START | Added|
| ohos.update | EventId | EVENT_APPLY_WAIT | Added|
| ohos.update | EventId | EVENT_UPGRADE_UPDATE | Added|
| ohos.update | EventId | EVENT_UPGRADE_START | Added|
| ohos.update | EventId | EVENT_UPGRADE_WAIT | Added|
| ohos.update | EventId | EVENT_DOWNLOAD_FAIL | Added|
| ohos.update | EventId | EVENT_DOWNLOAD_SUCCESS | Added|
| ohos.update | EventId | EVENT_DOWNLOAD_RESUME | Added|
| ohos.update | EventId | EVENT_DOWNLOAD_PAUSE | Added|
| ohos.update | EventId | EVENT_DOWNLOAD_UPDATE | Added|
| ohos.update | EventId | EVENT_DOWNLOAD_START | Added|
| ohos.update | EventId | EVENT_DOWNLOAD_WAIT | Added|
| ohos.update | EventId | EVENT_TASK_CANCEL | Added|
| ohos.update | EventId | EVENT_TASK_RECEIVE | Added|
| ohos.update | EventId | EVENT_TASK_BASE = EventClassify.TASK | Added|
| ohos.update | EventClassify | TASK = 0x01000000 | Added|
| ohos.update | UpgradeStatus | UPGRADE_FAIL = 51 | Added|
| ohos.update | UpgradeStatus | UPGRADE_SUCCESS = 50 | Added|
| ohos.update | UpgradeStatus | APPLYING = 41 | Added|
| ohos.update | UpgradeStatus | WAITING_APPLY = 40 | Added|
| ohos.update | UpgradeStatus | UPDATING = 31 | Added|
| ohos.update | UpgradeStatus | WAITING_INSTALL = 30 | Added|
| ohos.update | UpgradeStatus | DOWNLOAD_FAIL = 23 | Added|
| ohos.update | UpgradeStatus | DOWNLOAD_PAUSED = 22 | Added|
| ohos.update | UpgradeStatus | DOWNLOADING = 21 | Added|
| ohos.update | UpgradeStatus | WAITING_DOWNLOAD = 20 | Added|
| ohos.update | Order | APPLY = 4 | Added|
| ohos.update | Order | INSTALL = 2 | Added|
| ohos.update | Order | DOWNLOAD = 1 | Added|
| ohos.update | NetType | NOT_METERED_WIFI = 4 | Added|
| ohos.update | NetType | METERED_WIFI = 2 | Added|
| ohos.update | NetType | CELLULAR = 1 | Added|
| ohos.update | DescriptionType | URI = 1 | Added|
| ohos.update | DescriptionType | CONTENT = 0 | Added|
| ohos.update | EffectiveMode | LIVE_AND_COLD = 3 | Added|
| ohos.update | EffectiveMode | LIVE = 2 | Added|
| ohos.update | EffectiveMode | COLD = 1 | Added|
| ohos.update | UpgradeAction | RECOVERY = "recovery" | Added|
| ohos.update | UpgradeAction | UPGRADE = "upgrade" | Added|
| ohos.update | ComponentType | OTA = 1 | Added|
| ohos.update | BusinessSubType | PARAM = 2 | Added|
| ohos.update | BusinessSubType | FIRMWARE = 1 | Added|
| ohos.update | BusinessVendor | PUBLIC = "public" | Added|
| ohos.update | UpgradeTaskCallback | (eventInfo: EventInfo): void; | Added|
| ohos.update | UpgradeFile | filePath: string; | Added|
| ohos.update | UpgradeFile | fileType: ComponentType; | Added|
| ohos.update | EventClassifyInfo | extraInfo: string; | Added|
| ohos.update | EventClassifyInfo | eventClassify: EventClassify; | Added|
| ohos.update | ErrorMessage | errorMessage: string; | Added|
| ohos.update | ErrorMessage | errorCode: number; | Added|
| ohos.update | TaskBody | versionComponents: Array\<VersionComponent>; | Added|
| ohos.update | TaskBody | errorMessages: Array\<ErrorMessage>; | Added|
| ohos.update | TaskBody | installMode: number; | Added|
| ohos.update | TaskBody | progress: number; | Added|
| ohos.update | TaskBody | subStatus: number; | Added|
| ohos.update | TaskBody | status: UpgradeStatus; | Added|
| ohos.update | TaskBody | versionDigestInfo: VersionDigestInfo; | Added|
| ohos.update | EventInfo | taskBody: TaskBody; | Added|
| ohos.update | EventInfo | eventId: EventId; | Added|
| ohos.update | TaskInfo | taskBody: TaskBody; | Added|
| ohos.update | TaskInfo | existTask: boolean; | Added|
| ohos.update | UpgradePeriod | end: number; | Added|
| ohos.update | UpgradePeriod | start: number; | Added|
| ohos.update | UpgradePolicy | autoUpgradePeriods: Array\<UpgradePeriod>; | Added|
| ohos.update | UpgradePolicy | autoUpgradeStrategy: boolean; | Added|
| ohos.update | UpgradePolicy | downloadStrategy: boolean; | Added|
| ohos.update | ClearOptions | status: UpgradeStatus; | Added|
| ohos.update | UpgradeOptions | order: Order; | Added|
| ohos.update | PauseDownloadOptions | isAllowAutoResume: boolean; | Added|
| ohos.update | ResumeDownloadOptions | allowNetwork: NetType; | Added|
| ohos.update | DownloadOptions | order: Order; | Added|
| ohos.update | DownloadOptions | allowNetwork: NetType; | Added|
| ohos.update | CurrentVersionInfo | versionComponents: Array\<VersionComponent>; | Added|
| ohos.update | CurrentVersionInfo | deviceName: string; | Added|
| ohos.update | CurrentVersionInfo | osVersion: string; | Added|
| ohos.update | DescriptionInfo | descriptionType: DescriptionType; | Added|
| ohos.update | VersionComponent | descriptionInfo: DescriptionInfo; | Added|
| ohos.update | VersionComponent | effectiveMode: EffectiveMode; | Added|
| ohos.update | VersionComponent | size: number; | Added|
| ohos.update | VersionComponent | innerVersion: string; | Added|
| ohos.update | VersionComponent | displayVersion: string; | Added|
| ohos.update | VersionComponent | upgradeAction: UpgradeAction; | Added|
| ohos.update | VersionComponent | componentType: ComponentType; | Added|
| ohos.update | VersionDigestInfo | versionDigest: string; | Added|
| ohos.update | NewVersionInfo | versionComponents: Array\<VersionComponent>; | Added|
| ohos.update | NewVersionInfo | versionDigestInfo: VersionDigestInfo; | Added|
| ohos.update | CheckResult | newVersionInfo: NewVersionInfo; | Added|
| ohos.update | CheckResult | isExistNewVersion: boolean; | Added|
| ohos.update | BusinessType | subType: BusinessSubType; | Added|
| ohos.update | BusinessType | vendor: BusinessVendor; | Added|
| ohos.update | UpgradeInfo | businessType: BusinessType; | Added|
| ohos.update | UpgradeInfo | upgradeApp: string; | Added|
| ohos.update | LocalUpdater | off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): void; | Added|
| ohos.update | LocalUpdater | on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): void; | Added|
| ohos.update | LocalUpdater | applyNewVersion(upgradeFiles: Array\<UpgradeFile>, callback: AsyncCallback\<void>): void;<br>applyNewVersion(upgradeFiles: Array\<UpgradeFile>): Promise\<void>; | Added|
| ohos.update | LocalUpdater | verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string, callback: AsyncCallback\<number>): void;<br>verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string): Promise\<number>; | Added|
| ohos.update | Restorer | factoryReset(callback: AsyncCallback\<void>): void;<br>factoryReset(): Promise\<void>; | Added|
| ohos.update | Updater | off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): void; | Added|
| ohos.update | Updater | on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): void; | Added|
| ohos.update | Updater | terminateUpgrade(callback: AsyncCallback\<void>): void;<br>terminateUpgrade(): Promise\<void>; | Added|
| ohos.update | Updater | setUpgradePolicy(policy: UpgradePolicy, callback: AsyncCallback\<number>): void;<br>setUpgradePolicy(policy: UpgradePolicy): Promise\<number>; | Added|
| ohos.update | Updater | getUpgradePolicy(callback: AsyncCallback\<UpgradePolicy>): void;<br>getUpgradePolicy(): Promise\<UpgradePolicy>; | Added|
| ohos.update | Updater | clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions, callback: AsyncCallback\<void>): void;<br>clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions): Promise\<void>; | Added|
| ohos.update | Updater | pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseDownloadOptions, callback: AsyncCallback\<void>): void;<br>pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseDownloadOptions): Promise\<void>; | Added|
| ohos.update | Updater | resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: ResumeDownloadOptions, callback: AsyncCallback\<void>): void;<br>resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: ResumeDownloadOptions): Promise\<void>; | Added|
| ohos.update | Updater | getTaskInfo(callback: AsyncCallback\<TaskInfo>): void;<br>getTaskInfo(): Promise\<TaskInfo>; | Added|
| ohos.update | Updater | getCurrentVersionInfo(callback: AsyncCallback\<CurrentVersionInfo>): void;<br>getCurrentVersionInfo(): Promise\<CurrentVersionInfo>; | Added|
| ohos.update | update | getLocalUpdater(): LocalUpdater; | Added|
| ohos.update | update | getRestorer(): Restorer; | Added|
| ohos.update | update | getOnlineUpdater(upgradeInfo: UpgradeInfo): Updater; | Added|
| ohos.update | update | getUpdaterFromOther(upgradeFile: string, device: string, updateType?: UpdateTypes): Updater; | Deleted|
| ohos.update | update | getUpdaterForOther(upgradeFile: string, device: string, updateType?: UpdateTypes): Updater; | Deleted|
| ohos.update | update | getUpdater(upgradeFile: string, updateType?: UpdateTypes): Updater; | Deleted|
| ohos.update | Updater | cancel(): void; | Deleted|
| ohos.update | Updater | verifyUpdatePackage(upgradeFile: string, certsFile: string): void; | Deleted|
| ohos.update | Updater | rebootAndCleanUserData(callback: AsyncCallback\<number>): void;<br>rebootAndCleanUserData(): Promise\<number>; | Deleted|
| ohos.update | Updater | rebootAndCleanCache(callback: AsyncCallback\<number>): void;<br>rebootAndCleanCache(): Promise\<number>; | Deleted|
| ohos.update | Updater | applyNewVersion(callback: AsyncCallback\<number>): void;<br>applyNewVersion(): Promise\<number>; | Deleted|
| ohos.update | Updater | setUpdatePolicy(policy: UpdatePolicy, callback: AsyncCallback\<number>): void;<br>setUpdatePolicy(policy: UpdatePolicy): Promise\<number>; | Deleted|
| ohos.update | Updater | getUpdatePolicy(callback: AsyncCallback\<UpdatePolicy>): void;<br>getUpdatePolicy(): Promise\<UpdatePolicy>; | Deleted|
| ohos.update | UpdateProgressCallback | (progress: Progress): void; | Deleted|
| ohos.update | UpdatePolicy | autoUpgradeInterval: Array\<number>; | Deleted|
| ohos.update | UpdatePolicy | installMode: INSTALL_MODE; | Deleted|
| ohos.update | UpdatePolicy | autoDownload: boolean; | Deleted|
| ohos.update | InstallMode | INSTALL_MODE_AUTO | Deleted|
| ohos.update | InstallMode | INSTALL_MODE_NIGHT | Deleted|
| ohos.update | InstallMode | INSTALL_MODE_NORMAL | Deleted|
| ohos.update | Progress | endReason: string; | Deleted|
| ohos.update | Progress | status: UpdateState; | Deleted|
| ohos.update | Progress | percent: number; | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_UPDATE_SUCCESS | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_UPDATE_FAIL | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_UPDATE_ON = 90 | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_INSTALL_SUCCESS | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_INSTALL_FAIL | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_INSTALL_ON = 80 | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_PACKAGE_TRANS_SUCCESS | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_PACKAGE_TRANS_FAIL | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_PACKAGE_TRANS_ON = 70 | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_VERIFY_SUCCESS | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_VERIFY_FAIL | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_VERIFY_ON = 30 | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_DOWNLOAD_SUCCESS | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_DOWNLOAD_FAIL | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_DOWNLOAD_CANCEL | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_DOWNLOAD_PAUSE | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_DOWNLOAD_ON = 20 | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_CHECK_VERSION_SUCCESS | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_CHECK_VERSION_FAIL | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_CHECK_VERSION_ON = 10 | Deleted|
| ohos.update | UpdateState | UPDATE_STATE_INIT = 0 | Deleted|
| ohos.update | NewVersionInfo | descriptionInfo: Array\<DescriptionInfo>; | Deleted|
| ohos.update | NewVersionInfo | checkResults: Array\<CheckResult>; | Deleted|
| ohos.update | NewVersionInfo | errMsg: string; | Deleted|
| ohos.update | NewVersionInfo | status: NewVersionStatus; | Deleted|
| ohos.update | NewVersionStatus | VERSION_STATUS_BUSY = 2 | Deleted|
| ohos.update | NewVersionStatus | VERSION_STATUS_NONE = 1 | Deleted|
| ohos.update | NewVersionStatus | VERSION_STATUS_NEW = 0 | Deleted|
| ohos.update | NewVersionStatus | VERSION_STATUS_ERR = -1 | Deleted|
| ohos.update | DescriptionInfo | descriptionId: string; | Deleted|
| ohos.update | CheckResult | descriptionId: string; | Deleted|
| ohos.update | CheckResult | packageType: PackageTypes; | Deleted|
| ohos.update | CheckResult | verifyInfo: string; | Deleted|
| ohos.update | CheckResult | size: number; | Deleted|
| ohos.update | CheckResult | versionCode: string; | Deleted|
| ohos.update | CheckResult | versionName: number; | Deleted|
| ohos.update | PackageTypes | PACKAGE_TYPE_PATCH = 7 | Deleted|
| ohos.update | PackageTypes | PACKAGE_TYPE_VERSION = 6 | Deleted|
| ohos.update | PackageTypes | PACKAGE_TYPE_COTA = 5 | Deleted|
| ohos.update | PackageTypes | PACKAGE_TYPE_PRELOAD = 4 | Deleted|
| ohos.update | PackageTypes | PACKAGE_TYPE_CUST = 3 | Deleted|
| ohos.update | PackageTypes | PACKAGE_TYPE_BASE = 2 | Deleted|
| ohos.update | PackageTypes | PACKAGE_TYPE_NORMAL = 1 | Deleted|
# JS API Changes of the USB Subsystem
The table below lists the APIs changes of the USB subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.usb | FunctionType | NCM = 256 | Added|
| ohos.usb | FunctionType | AUDIO_SOURCE = 128 | Added|
| ohos.usb | FunctionType | MIDI = 64 | Added|
| ohos.usb | FunctionType | RNDIS = 32 | Added|
| ohos.usb | FunctionType | PTP = 16 | Added|
| ohos.usb | FunctionType | MTP = 8 | Added|
| ohos.usb | FunctionType | HDC = 4 | Added|
| ohos.usb | FunctionType | ECM = 2 | Added|
| ohos.usb | FunctionType | ACM = 1 | Added|
| ohos.usb | FunctionType | NONE = 0 | Added|
| ohos.usb | USBPort | status: USBPortStatus; | Added|
| ohos.usb | USBPort | supportedModes: PortModeType; | Added|
| ohos.usb | USBPort | id: number; | Added|
| ohos.usb | USBPortStatus | currentDataRole: number; | Added|
| ohos.usb | USBPortStatus | currentPowerRole: number; | Added|
| ohos.usb | USBPortStatus | currentMode: number; | Added|
| ohos.usb | PortModeType | NUM_MODES = 4 | Added|
| ohos.usb | PortModeType | DRP = 3 | Added|
| ohos.usb | PortModeType | DFP = 2 | Added|
| ohos.usb | PortModeType | UFP = 1 | Added|
| ohos.usb | PortModeType | NONE = 0 | Added|
| ohos.usb | DataRoleType | DEVICE = 2 | Added|
| ohos.usb | DataRoleType | HOST = 1 | Added|
| ohos.usb | DataRoleType | NONE = 0 | Added|
| ohos.usb | PowerRoleType | SINK = 2 | Added|
| ohos.usb | PowerRoleType | SOURCE = 1 | Added|
| ohos.usb | PowerRoleType | NONE = 0 | Added|
| ohos.usb | usb | setPortRoles(portId: number, powerRole: PowerRoleType, dataRole: DataRoleType): Promise\<boolean>; | Added|
| ohos.usb | usb | getSupportedModes(portId: number): PortModeType; | Added|
| ohos.usb | usb | getPorts(): Array\<USBPort>; | Added|
| ohos.usb | usb | getCurrentFunctions(): FunctionType; | Added|
| ohos.usb | usb | setCurrentFunctions(funcs: FunctionType): Promise\<boolean>; | Added|
| ohos.usb | usb | usbFunctionsToString(funcs: FunctionType): string; | Added|
| ohos.usb | usb | usbFunctionsFromString(funcs: string): number; | Added|
# JS API Changes of the User IAM Subsystem
The table below lists the APIs changes of the user IAM subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.userIAM.faceAuth | ResultCode | FAIL = 1 | Added|
| ohos.userIAM.faceAuth | ResultCode | SUCCESS = 0 | Added|
| ohos.userIAM.faceAuth | FaceAuthManager | setSurfaceId(surfaceId: string): ResultCode; | Added|
| ohos.userIAM.faceAuth | FaceAuthManager | constructor(); | Added|
# JS API Changes of the Web Subsystem
The table below lists the APIs changes of the web subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.web | WebDataBase | static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void; | Added|
| ohos.web | WebDataBase | static getHttpAuthCredentials(host: string, realm: string): Array\<string>; | Added|
| ohos.web | WebDataBase | static deleteHttpAuthCredentials(): void; | Added|
| ohos.web | WebDataBase | static existHttpAuthCredentials(): boolean; | Added|
| ohos.web | WebStorage | static getOriginUsage(origin : string) : Promise\<number> ;<br>static getOriginUsage(origin : string, callback : AsyncCallback\<number>) : void; | Added|
| ohos.web | WebStorage | static getOriginQuota(origin : string) : Promise\<number>;<br>static getOriginQuota(origin : string, callback : AsyncCallback\<number>) : void; | Added|
| ohos.web | WebStorage | static getOrigins() : Promise\<Array\<WebStorageOrigin>>;<br>static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>) : void; | Added|
| ohos.web | WebStorage | static deleteOrigin(origin : string): void; | Added|
| ohos.web | WebStorage | static deleteAllData() : void; | Added|
| ohos.web | WebStorageOrigin | quota: number; | Added|
| ohos.web | WebStorageOrigin | usage: number; | Added|
| ohos.web | WebStorageOrigin | origin: string; | Added|
| Web | WebAttribute | onInterceptRequest(callback: (event?: { request: WebResourceRequest}) => WebResourceResponse): WebAttribute; | Added|
| Web | WebAttribute | onHttpAuthRequest(callback: (event?: { handler: HttpAuthHandler, host: string, realm: string }) => boolean): WebAttribute; | Added|
| Web | WebAttribute | onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void): WebAttribute; | Added|
| Web | WebAttribute | onResourceLoad(callback: (event: {url: string}) => void): WebAttribute; | Added|
| Web | WebAttribute | onPrompt(callback: (event?: {url: string, message: string, value: string, result: JsResult }) => boolean): WebAttribute; | Added|
| Web | WebAttribute | initialScale(percent: number): WebAttribute; | Added|
| Web | WebController | backOrForward(step: number): void; | Added|
| Web | WebController | getPageHeight(): number; | Added|
| Web | WebController | getTitle(): string; | Added|
| Web | WebController | getDefaultUserAgent(): string; | Added|
| Web | WebController | getWebId(): number; | Added|
| Web | WebController | getHitTestValue(): HitTestValue; | Added|
| Web | WebController | zoomOut(): boolean; | Added|
| Web | WebController | zoomIn(): boolean; | Added|
| Web | WebResourceResponse | setResponseCode(code: number); | Added|
| Web | WebResourceResponse | setResponseHeader(header: Array\<Header>); | Added|
| Web | WebResourceResponse | setReasonMessage(reason: string); | Added|
| Web | WebResourceResponse | setResponseMimeType(mimeType: string); | Added|
| Web | WebResourceResponse | setResponseEncoding(encoding: string); | Added|
| Web | WebResourceResponse | setResponseData(data: string); | Added|
# JS API Changes of the Window Manager Subsystem
The table below lists the APIs changes of the window manager subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## API Changes
| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
|---|---|---|---|
| ohos.animation.windowAnimationManager | WindowAnimationController | onScreenUnlock(finishCallback: WindowAnimationFinishedCallback): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationController | onCloseWindow(closingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationController | onMinimizeWindow(minimizingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationController | onAppTransition(fromWindowTarget: WindowAnimationTarget, toWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationController | onStartAppFromOther(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationController | onStartAppFromRecent(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationController | onStartAppFromLauncher(startingWindowTarget: WindowAnimationTarget, finishCallback: WindowAnimationFinishedCallback): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationFinishedCallback | onAnimationFinish(): void; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationTarget | readonly windowBounds: RRect; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationTarget | readonly abilityName: string; | Added|
| ohos.animation.windowAnimationManager | WindowAnimationTarget | readonly bundleName: string; | Added|
| ohos.animation.windowAnimationManager | RRect | radius: number; | Added|
| ohos.animation.windowAnimationManager | RRect | height: number; | Added|
| ohos.animation.windowAnimationManager | RRect | width: number; | Added|
| ohos.animation.windowAnimationManager | RRect | top: number; | Added|
| ohos.animation.windowAnimationManager | RRect | left: number; | Added|
| ohos.animation.windowAnimationManager | windowAnimationManager | setController(controller: WindowAnimationController): void; | Added|
| ohos.display | display | getDefaultDisplaySync(): Display; | Added|
| ohos.screen | Screen | setDensityDpi(densityDpi: number, callback: AsyncCallback\<void>): void;<br>setDensityDpi(densityDpi: number): Promise\<void>; | Added|
| ohos.screen | VirtualScreenOption | surfaceId: string | Added|
| ohos.screen | VirtualScreenOption | density: number | Added|
| ohos.screen | VirtualScreenOption | height: number | Added|
| ohos.screen | VirtualScreenOption | width: number | Added|
| ohos.screen | VirtualScreenOption | name: string | Added|
| ohos.screen | screen | setScreenRotationLocked(isLocked:boolean, callback: AsyncCallback\<void>): void;<br>setScreenRotationLocked(isLocked:boolean): Promise\<void>; | Added|
| ohos.screen | screen | isScreenRotationLocked(callback: AsyncCallback\<boolean>): void;<br>isScreenRotationLocked(): Promise\<boolean>; | Added|
| ohos.screen | screen | setVirtualScreenSurface(screenId:number, surfaceId: string, callback: AsyncCallback\<void>): void;<br>setVirtualScreenSurface(screenId:number, surfaceId: string): Promise\<void>; | Added|
| ohos.screen | screen | destroyVirtualScreen(screenId:number, callback: AsyncCallback\<void>): void;<br>destroyVirtualScreen(screenId:number): Promise\<void>; | Added|
| ohos.screen | screen | createVirtualScreen(options:VirtualScreenOption, callback: AsyncCallback\<Screen>): void;<br>createVirtualScreen(options:VirtualScreenOption): Promise\<Screen>; | Added|
| ohos.window | WindowStage | setShowOnLockScreen(showOnLockScreen: boolean): void; | Added|
| ohos.window | WindowStage | disableWindowDecor(): void; | Added|
| ohos.window | Window | setForbidSplitMove(isForbidSplitMove: boolean, callback: AsyncCallback\<void>): void;<br>setForbidSplitMove(isForbidSplitMove: boolean): Promise\<void>; | Added|
| ohos.window | Window | off(type: 'touchOutside', callback?: Callback\<void>): void; | Added|
| ohos.window | Window | on(type: 'touchOutside', callback: Callback\<void>): void; | Added|
| ohos.window | Window | off(type: 'avoidAreaChange', callback?: Callback\<{ type: AvoidAreaType, area: AvoidArea }>): void; | Added|
| ohos.window | Window | on(type: 'avoidAreaChange', callback: Callback\<{ type: AvoidAreaType, area: AvoidArea }>): void; | Added|
| ohos.window | Window | setPreferredOrientation(orientation: Orientation): Promise\<void>;<br>setPreferredOrientation(orientation: Orientation, callback: AsyncCallback\<void>): void; | Added|
| ohos.window | Orientation | LOCKED = 11 | Added|
| ohos.window | Orientation | AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10 | Added|
| ohos.window | Orientation | AUTO_ROTATION_PORTRAIT_RESTRICTED = 9 | Added|
| ohos.window | Orientation | AUTO_ROTATION_RESTRICTED = 8 | Added|
| ohos.window | Orientation | AUTO_ROTATION_LANDSCAPE = 7 | Added|
| ohos.window | Orientation | AUTO_ROTATION_PORTRAIT = 6 | Added|
| ohos.window | Orientation | AUTO_ROTATION = 5 | Added|
| ohos.window | Orientation | LANDSCAPE_INVERTED = 4 | Added|
| ohos.window | Orientation | PORTRAIT_INVERTED = 3 | Added|
| ohos.window | Orientation | LANDSCAPE = 2 | Added|
| ohos.window | Orientation | PORTRAIT = 1 | Added|
| ohos.window | Orientation | UNSPECIFIED = 0 | Added|
| ohos.window | AvoidArea | visible: boolean; | Added|
| ohos.window | AvoidAreaType | TYPE_KEYBOARD | Added|
| ohos.window | AvoidAreaType | TYPE_SYSTEM_GESTURE | Added|
| ohos.window | WindowType | TYPE_POINTER | Added|
| ohos.window | WindowType | TYPE_VOICE_INTERACTION | Added|
| ohos.window | WindowType | TYPE_LAUNCHER_DOCK | Added|
| ohos.window | WindowType | TYPE_LAUNCHER_RECENT | Added|
| ohos.window | WindowType | TYPE_DESKTOP | Added|
| ohos.window | WindowType | TYPE_WALLPAPER | Added|
| ohos.window | WindowType | TYPE_FLOAT | Added|
| ohos.window | WindowType | TYPE_NAVIGATION_BAR | Added|
| ohos.window | WindowType | TYPE_VOLUME_OVERLAY | Added|
| ohos.window | WindowType | TYPE_KEYGUARD | Added|
| ohos.window | WindowType | TYPE_PANEL | Added|
| ohos.window | WindowType | TYPE_STATUS_BAR | Added|
| ohos.window | WindowType | TYPE_INPUT_METHOD | Added|
| ohos.window | Window | dump(params: Array\<string>): Array\<string>; | Deleted|
| ohos.window | Window | off(type: 'systemAvoidAreaChange', callback?: Callback\<AvoidArea>): void; | Deprecated|
| ohos.window | Window | on(type: 'systemAvoidAreaChange', callback: Callback\<AvoidArea>): void; | Deprecated|
# Native API Differences
The table below lists the native APIs changes in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.
## Standard System API Changes
| Module| API | Change Type| Change Description |
| -------- | ------------------------------------------------------------ | -------- | ----------------------------------------------- |
| Bundle Management - BundleFramework| OH_NativeBundle_ApplicationInfo OH_NativeBundle_GetCurrentApplicationInfo() | Added | Added the APIs for obtaining the bundle name and fingerprint information of the current application.|
| Graphics - NativeWindow| int32_t OH_NativeWindow_NativeWindowSetScalingMode(OHNativeWindow *window, uint32_t sequence, OHScalingMode scalingMode) | Added| Added the API for setting the scaling mode.|
| Graphics - NativeWindow| int32_t OH_NativeWindow_NativeWindowSetMetaData(OHNativeWindow *window, uint32_t sequence, int32_t size, const OHHDRMetaData *metaData) | Added| Added the API for setting the HDR metadata.|
| Graphics - NativeWindow| int32_t OH_NativeWindow_NativeWindowSetMetaDataSet(OHNativeWindow *window, uint32_t sequence, OHHDRMetadataKey key, int32_t size, const uint8_t *metaData) | Added| Added the API for setting the HDR metadata set.|
| Graphics - NativeWindow| int32_t OH_NativeWindow_NativeWindowSetTunnelHandle(OHNativeWindow *window, const OHExtDataHandle *handle) | Added| Added the API for setting the tunnel handle.|
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册