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

!7515 apidiff新增

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