diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md new file mode 100644 index 0000000000000000000000000000000000000000..f923e53d2495d1f7bb0943afd028defe75a2ed08 --- /dev/null +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-ability.md @@ -0,0 +1,169 @@ +# JS API Changes of the Ability Framework + +The table below lists the APIs changes of the ability framework in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. + +## API Changes + +| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| +|---|---|---|---| +| featureability | FeatureAbility | static getDeviceList(flag: number): Promise; | Added| +| customizeData | CustomizeData | extra: string; | Added| +| applicationInfo | ApplicationInfo | readonly entityType: string; | Added| +| applicationInfo | ApplicationInfo | readonly uid: number; | Added| +| applicationInfo | ApplicationInfo | readonly accessTokenId: number; | Added| +| applicationInfo | ApplicationInfo | readonly removable: boolean; | Added| +| applicationInfo | ApplicationInfo | readonly metaData: Map>; | Added| +| applicationInfo | ApplicationInfo | readonly codePath: string; | Added| +| applicationInfo | ApplicationInfo | readonly moduleInfos: Array; | Added| +| shellCmdResult | ShellCmdResult | exitCode: number; | Added| +| shellCmdResult | ShellCmdResult | stdResult: String; | Added| +| ProcessRunningInfo | ProcessRunningInfo | bundleNames: Array; | Added| +| ProcessRunningInfo | ProcessRunningInfo | processName: string; | Added| +| ProcessRunningInfo | ProcessRunningInfo | uid: number; | Added| +| ProcessRunningInfo | ProcessRunningInfo | pid: number; | Added| +| BaseContext | BaseContext | stageMode: boolean; | Added| +| abilityDelegatorArgs | AbilityDelegatorArgs | testRunnerClassName: string; | Added| +| abilityDelegatorArgs | AbilityDelegatorArgs | testCaseNames: string; | Added| +| abilityDelegatorArgs | AbilityDelegatorArgs | parameters: {[key: string]: string}; | Added| +| abilityDelegatorArgs | AbilityDelegatorArgs | bundleName: string; | Added| +| abilityDelegator | AbilityDelegator | executeShellCommand(cmd: string, callback: AsyncCallback): void;
executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback): void;
executeShellCommand(cmd: string, timeoutSecs?: number): Promise; | Added| +| abilityDelegator | AbilityDelegator | print(msg: string, callback: AsyncCallback): void;
print(msg: string): Promise; | Added| +| context | Context | printDrawnCompleted(callback: AsyncCallback): void;
printDrawnCompleted(): Promise; | Added| +| context | Context | isUpdatingConfigurations(callback: AsyncCallback): void;
isUpdatingConfigurations(): Promise; | Added| +| context | Context | getAbilityInfo(callback: AsyncCallback): void
getAbilityInfo(): Promise; | Added| +| context | Context | getApplicationContext(): Context; | Added| +| context | Context | getAppVersionInfo(callback: AsyncCallback): void
getAppVersionInfo(): Promise; | Added| +| context | Context | getHapModuleInfo(callback: AsyncCallback): void
getHapModuleInfo(): Promise; | Added| +| context | Context | getAppType(callback: AsyncCallback): void
getAppType(): Promise; | Added| +| context | Context | getOrCreateDistributedDir(): Promise;
getOrCreateDistributedDir(callback: AsyncCallback): void; | Added| +| context | Context | getCacheDir(callback: AsyncCallback): void;
getCacheDir(): Promise; | Added| +| context | Context | getFilesDir(callback: AsyncCallback): void;
getFilesDir(): Promise; | Added| +| context | Context | setWakeUpScreen(wakeUp: boolean, callback: AsyncCallback): void
setWakeUpScreen(wakeUp: boolean): Promise; | Added| +| context | Context | setShowOnLockScreen(show: boolean, callback: AsyncCallback): void
setShowOnLockScreen(show: boolean): Promise; | Added| +| context | Context | setDisplayOrientation(orientation: DisplayOrientation, callback: AsyncCallback): void
setDisplayOrientation(orientation: DisplayOrientation): Promise; | Added| +| context | Context | getDisplayOrientation(callback: AsyncCallback): void
getDisplayOrientation(): Promise; | Added| +| appVersionInfo | AppVersionInfo | readonly versionName: string; | Added| +| appVersionInfo | AppVersionInfo | readonly versionCode: number; | Added| +| appVersionInfo | AppVersionInfo | readonly appName: string; | Added| +| dataAbilityHelper | PacMap | [key: string]: number \| string \| boolean \| Array \| null; | Added| +| dataAbilityHelper | DataAbilityHelper | executeBatch(uri: string, operations: Array, callback: AsyncCallback>): void;
executeBatch(uri: string, operations: Array): Promise>; | Added| +| dataAbilityHelper | DataAbilityHelper | call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback): void;
call(uri: string, method: string, arg: string, extras: PacMap): Promise; | Added| +| ohos.application.Want | Want | entities?: Array; | Added| +| ohos.application.Want | Want | parameters?: {[key: string]: any}; | Added| +| ohos.application.Want | Want | action?: string; | Added| +| ohos.application.Want | Want | flags?: number; | Added| +| ohos.application.Want | Want | type?: string; | Added| +| ohos.application.Want | Want | uri?: string; | Added| +| ohos.application.Want | Want | abilityName?: string; | Added| +| ohos.application.Want | Want | bundleName?: string; | Added| +| ohos.application.Want | Want | deviceId?: string; | Added| +| ohos.application.testRunner | TestRunner | onRun(): void; | Added| +| ohos.application.testRunner | TestRunner | onPrepare(): void; | Added| +| ohos.application.formProvider | formProvider | function updateForm(formId: string, formBindingData: formBindingData.FormBindingData, callback: AsyncCallback): void;
function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise; | Added| +| ohos.application.formProvider | formProvider | function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback): void;
function setFormNextRefreshTime(formId: string, minute: number): Promise; | Added| +| ohos.application.formInfo | FormParam | TEMPORARY_KEY = "ohos.extra.param.key.form_temporary" | Added| +| ohos.application.formInfo | FormParam | HEIGHT_KEY = "ohos.extra.param.key.form_height" | Added| +| ohos.application.formInfo | FormParam | WIDTH_KEY = "ohos.extra.param.key.form_width" | Added| +| ohos.application.formInfo | FormParam | MODULE_NAME_KEY = "ohos.extra.param.key.module_name" | Added| +| ohos.application.formInfo | FormParam | NAME_KEY = "ohos.extra.param.key.form_name" | Added| +| ohos.application.formInfo | FormParam | DIMENSION_KEY = "ohos.extra.param.key.form_dimension" | Added| +| ohos.application.formInfo | FormState | READY = 1 | Added| +| ohos.application.formInfo | FormState | DEFAULT = 0 | Added| +| ohos.application.formInfo | FormState | UNKNOWN = -1 | Added| +| ohos.application.formInfo | FormStateInfo | want: Want; | Added| +| ohos.application.formInfo | FormStateInfo | formState: FormState; | Added| +| ohos.application.formInfo | ColorMode | MODE_LIGHT = 1 | Added| +| ohos.application.formInfo | ColorMode | MODE_DARK = 0 | Added| +| ohos.application.formInfo | ColorMode | MODE_AUTO = -1 | Added| +| ohos.application.formInfo | FormType | JS = 1 | Added| +| ohos.application.formInfo | FormInfo | customizeData: {[key: string]: [value: string]}; | Added| +| ohos.application.formInfo | FormInfo | supportDimensions: Array; | Added| +| ohos.application.formInfo | FormInfo | defaultDimension: number; | Added| +| ohos.application.formInfo | FormInfo | updateDuration: number; | Added| +| ohos.application.formInfo | FormInfo | formConfigAbility: string; | Added| +| ohos.application.formInfo | FormInfo | scheduledUpdateTime: string; | Added| +| ohos.application.formInfo | FormInfo | relatedBundleName: string; | Added| +| ohos.application.formInfo | FormInfo | formVisibleNotify: boolean; | Added| +| ohos.application.formInfo | FormInfo | updateEnabled: boolean; | Added| +| ohos.application.formInfo | FormInfo | isDefault: boolean; | Added| +| ohos.application.formInfo | FormInfo | colorMode: ColorMode; | Added| +| ohos.application.formInfo | FormInfo | jsComponentName: string; | Added| +| ohos.application.formInfo | FormInfo | type: FormType; | Added| +| ohos.application.formInfo | FormInfo | description: string; | Added| +| ohos.application.formInfo | FormInfo | name: string; | Added| +| ohos.application.formInfo | FormInfo | abilityName: string; | Added| +| ohos.application.formInfo | FormInfo | moduleName: string; | Added| +| ohos.application.formInfo | FormInfo | bundleName: string; | Added| +| ohos.application.formError | FormError | ERR_IN_RECOVERY = 36 | Added| +| ohos.application.formError | FormError | ERR_FORM_DUPLICATE_ADDED = 31 | Added| +| ohos.application.formError | FormError | ERR_SYSTEM_RESPONSES_FAILED = 30 | Added| +| ohos.application.formError | FormError | ERR_FORM_FA_NOT_INSTALLED = 20 | Added| +| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_DIMENSION = 19 | Added| +| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_ABILITY = 18 | Added| +| ohos.application.formError | FormError | ERR_FORM_NO_SUCH_MODULE = 17 | Added| +| ohos.application.formError | FormError | ERR_MAX_SYSTEM_TEMP_FORMS = 16 | Added| +| ohos.application.formError | FormError | ERR_MAX_FORMS_PER_CLIENT = 15 | Added| +| ohos.application.formError | FormError | ERR_PROVIDER_DEL_FAIL = 14 | Added| +| ohos.application.formError | FormError | ERR_OPERATION_FORM_NOT_SELF = 13 | Added| +| ohos.application.formError | FormError | ERR_MAX_INSTANCES_PER_FORM = 12 | Added| +| ohos.application.formError | FormError | ERR_MAX_SYSTEM_FORMS = 11 | Added| +| ohos.application.formError | FormError | ERR_BIND_PROVIDER_FAILED = 10 | Added| +| ohos.application.formError | FormError | ERR_NOT_EXIST_ID = 9 | Added| +| ohos.application.formError | FormError | ERR_CFG_NOT_MATCH_ID = 8 | Added| +| ohos.application.formError | FormError | ERR_ADD_INVALID_PARAM = 7 | Added| +| ohos.application.formError | FormError | ERR_GET_LAYOUT_FAILED = 6 | Added| +| ohos.application.formError | FormError | ERR_GET_BUNDLE_FAILED = 5 | Added| +| ohos.application.formError | FormError | ERR_GET_INFO_FAILED = 4 | Added| +| ohos.application.formError | FormError | ERR_PERMISSION_DENY = 2 | Added| +| ohos.application.formError | FormError | ERR_COMMON = 1 | Added| +| ohos.application.formBindingData | FormBindingData | data: Object | Added| +| ohos.application.formBindingData | formBindingData | function createFormBindingData(obj?: Object \| string): FormBindingData; | Added| +| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_LIGHT = 1 | Added| +| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_DARK = 0 | Added| +| ohos.application.ConfigurationConstant | ColorMode | COLOR_MODE_NOT_SET = -1 | Added| +| ohos.application.Configuration | Configuration | colorMode: ConfigurationConstant.ColorMode; | Added| +| ohos.application.Configuration | Configuration | language: string; | Added| +| ohos.application.appManager | appManager | function getAppMemorySize(): Promise;
function getAppMemorySize(callback: AsyncCallback): void; | Added| +| ohos.application.appManager | appManager | function isRamConstrainedDevice(): Promise;
function isRamConstrainedDevice(callback: AsyncCallback): void; | Added| +| ohos.application.appManager | appManager | function getProcessRunningInfos(): Promise>;
function getProcessRunningInfos(callback: AsyncCallback>): void; | Added| +| ohos.application.appManager | appManager | function isRunningInStabilityTest(callback: AsyncCallback): void;
function isRunningInStabilityTest(): Promise; | Added| +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | DESTROY | Added| +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | BACKGROUND | Added| +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | FOREGROUND | Added| +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | CREATE | Added| +| ohos.application.abilityDelegatorRegistry | AbilityLifecycleState | UNINITIALIZED | Added| +| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getArguments(): AbilityDelegatorArgs; | Added| +| ohos.application.abilityDelegatorRegistry | abilityDelegatorRegistry | function getAbilityDelegator(): AbilityDelegator; | Added| +| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_GRANTED = 0 | Added| +| ohos.abilityAccessCtrl | GrantStatus | PERMISSION_DENIED = -1 | Added| +| ohos.abilityAccessCtrl | AtManager | verifyAccessToken(tokenID: number, permissionName: string): Promise; | Added| +| ohos.abilityAccessCtrl | abilityAccessCtrl | function createAtManager(): AtManager; | Added| +| ohos.ability.wantConstant | Action | ACTION_APP_ACCOUNT_OAUTH = "ohos.account.appAccount.action.oauth" | Added| +| ohos.ability.wantConstant | Action | ACTION_VIDEO_CAPTURE = "ohos.want.action.videoCapture" | Added| +| ohos.ability.wantConstant | Action | ACTION_IMAGE_CAPTURE = "ohos.want.action.imageCapture" | Added| +| ohos.ability.particleAbility | ErrorCode | INVALID_PARAMETER = -1 | Added| +| ohos.ability.particleAbility | particleAbility | function disconnectAbility(connection: number, callback:AsyncCallback): void;
function disconnectAbility(connection: number): Promise; | Added| +| ohos.ability.particleAbility | particleAbility | function connectAbility(request: Want, options:ConnectOptions): number; | Added| +| ohos.ability.particleAbility | particleAbility | function cancelBackgroundRunning(callback: AsyncCallback): void;
function cancelBackgroundRunning(): Promise; | Added| +| ohos.ability.particleAbility | particleAbility | function startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback): void;
function startBackgroundRunning(id: number, request: NotificationRequest): Promise; | Added| +| ohos.ability.featureAbility | featureAbility | function getWindow(callback: AsyncCallback): void;
function getWindow(): Promise; | Added| +| ohos.ability.errorCode | ErrorCode | NO_ERROR = 0 | Added| +| ohos.ability.errorCode | ErrorCode | INVALID_PARAMETER = -1 | Added| +| ohos.ability.errorCode | ErrorCode | ABILITY_NOT_FOUND = -2 | Added| +| ohos.ability.errorCode | ErrorCode | PERMISSION_DENY = -3 | Added| +| lifecycle | LifecycleData | call?(method: string, arg: string, extras: PacMap, callback: AsyncCallback): void; | Added| +| lifecycle | LifecycleData | executeBatch?(ops: Array, callback: AsyncCallback>): void; | Added| +| lifecycle | LifecycleService | onReconnect?(want: Want): void; | Added| +| lifecycle | LifecycleApp | onMemoryLevel?(level: number): void; | Added| +| lifecycle | LifecycleApp | onNewWant?(want: Want): void; | Added| +| lifecycle | LifecycleApp | onActive?(): void; | Added| +| lifecycle | LifecycleApp | onInactive?(): void; | Added| +| lifecycle | LifecycleApp | onRestoreAbilityState?(inState: PacMap): void; | Added| +| lifecycle | LifecycleApp | onSaveAbilityState?(outState: PacMap): void; | Added| +| lifecycle | LifecycleForm | onAcquireFormState?(want: Want): formInfo.FormState; | Added| +| lifecycle | LifecycleForm | onDestroy?(formId: string): void; | Added| +| lifecycle | LifecycleForm | onEvent?(formId: string, message: string): void; | Added| +| lifecycle | LifecycleForm | onVisibilityChange?(newStatus: { [key: string]: number }): void; | Added| +| lifecycle | LifecycleForm | onUpdate?(formId: string): void; | Added| +| lifecycle | LifecycleForm | onCastToNormal?(formId: string): void; | Added| +| lifecycle | LifecycleForm | onCreate?(want: Want): formBindingData.FormBindingData; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md new file mode 100644 index 0000000000000000000000000000000000000000..3079ae75cd98fde79b4d6fa8489aaced83add9e1 --- /dev/null +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-accessibility.md @@ -0,0 +1,51 @@ +# JS API Changes of the Accessibility Subsystem + +The table below lists the APIs changes of the accessibility subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. + +## API Changes + +| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| +|---|---|---|---| +| ohos.accessibility | EventInfo | itemCount?: number; | Added| +| ohos.accessibility | EventInfo | endIndex?: number; | Added| +| ohos.accessibility | EventInfo | currentIndex?: number; | Added| +| ohos.accessibility | EventInfo | beginIndex?: number; | Added| +| ohos.accessibility | EventInfo | lastContent?: string; | Added| +| ohos.accessibility | EventInfo | contents?: Array; | Added| +| ohos.accessibility | EventInfo | textMoveUnit?: TextMoveUnit; | Added| +| ohos.accessibility | EventInfo | triggerAction: Action; | Added| +| ohos.accessibility | EventInfo | description?: string; | Added| +| ohos.accessibility | EventInfo | pageId ?: number; | Added| +| ohos.accessibility | EventInfo | componentType?: string; | Added| +| ohos.accessibility | EventInfo | bundleName: string; | Added| +| ohos.accessibility | EventInfo | windowUpdateType?: WindowUpdateType; | Added| +| ohos.accessibility | EventInfo | type: EventType; | Added| +| ohos.accessibility | EventInfo | constructor(jsonObject); | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly eventTypes: Array; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly description: string; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly capabilities: Array; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly abilityTypes: Array; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly bundleName: string; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly name: string; | Added| +| ohos.accessibility | AccessibilityAbilityInfo | readonly id: string; | Added| +| ohos.accessibility | CaptionsStyle | windowColor: number \| string; | Added| +| ohos.accessibility | CaptionsStyle | backgroundColor: number \| string; | Added| +| ohos.accessibility | CaptionsStyle | fontEdgeType: CaptionsFontEdgeType; | Added| +| ohos.accessibility | CaptionsStyle | fontColor: number \| string; | Added| +| ohos.accessibility | CaptionsStyle | fontScale: number; | Added| +| ohos.accessibility | CaptionsStyle | fontFamily: CaptionsFontFamily; | Added| +| ohos.accessibility | CaptionsManager | off(type: 'styleChange', callback?: Callback): void; | Added| +| ohos.accessibility | CaptionsManager | off(type: 'enableChange', callback?: Callback): void; | Added| +| ohos.accessibility | CaptionsManager | on(type: 'styleChange', callback: Callback): void; | Added| +| ohos.accessibility | CaptionsManager | on(type: 'enableChange', callback: Callback): void; | Added| +| ohos.accessibility | CaptionsManager | style: CaptionsStyle; | Added| +| ohos.accessibility | CaptionsManager | enabled: boolean; | Added| +| ohos.accessibility | accessibility | function getCaptionsManager(): CaptionsManager; | Added| +| ohos.accessibility | accessibility | function off(type: 'touchGuideStateChange', callback?: Callback): void; | Added| +| ohos.accessibility | accessibility | function off(type: 'accessibilityStateChange', callback?: Callback): void; | Added| +| ohos.accessibility | accessibility | function on(type: 'touchGuideStateChange', callback: Callback): void; | Added| +| ohos.accessibility | accessibility | function on(type: 'accessibilityStateChange', callback: Callback): void; | Added| +| ohos.accessibility | accessibility | function sendEvent(event: EventInfo, callback: AsyncCallback): void;
function sendEvent(event: EventInfo): Promise; | Added| +| ohos.accessibility | accessibility | function getAbilityLists(abilityType: AbilityType, stateType: AbilityState, callback: AsyncCallback>): void;
function getAbilityLists(abilityType: AbilityType, stateType: AbilityState): Promise>; | Added| +| ohos.accessibility | accessibility | function isOpenTouchGuide(callback: AsyncCallback): void;
function isOpenTouchGuide(): Promise; | Added| +| ohos.accessibility | accessibility | function isOpenAccessibility(callback: AsyncCallback): void;
function isOpenAccessibility(): Promise; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md new file mode 100644 index 0000000000000000000000000000000000000000..58949b3095bafdb7d9c5634d687d98b5fc8810b6 --- /dev/null +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-account.md @@ -0,0 +1,112 @@ +# JS API Changes of the Account Subsystem + +The table below lists the APIs changes of the account subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. + +## API Changes + +| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| +|---|---|---|---| +| ohos.account.osAccount | OsAccountType | GUEST | Added| +| ohos.account.osAccount | OsAccountType | NORMAL | Added| +| ohos.account.osAccount | OsAccountType | ADMIN = 0 | Added| +| ohos.account.osAccount | DomainAccountInfo | accountName: string; | Added| +| ohos.account.osAccount | DomainAccountInfo | domain: string; | Added| +| ohos.account.osAccount | OsAccountInfo | domainInfo: DomainAccountInfo; | Added| +| ohos.account.osAccount | OsAccountInfo | distributedInfo: distributedAccount.DistributedInfo; | Added| +| ohos.account.osAccount | OsAccountInfo | isCreateCompleted: boolean; | Added| +| ohos.account.osAccount | OsAccountInfo | isActived: boolean; | Added| +| ohos.account.osAccount | OsAccountInfo | serialNumber: number; | Added| +| ohos.account.osAccount | OsAccountInfo | lastLoginTime: number; | Added| +| ohos.account.osAccount | OsAccountInfo | createTime: number; | Added| +| ohos.account.osAccount | OsAccountInfo | photo: string; | Added| +| ohos.account.osAccount | OsAccountInfo | isVerified: boolean; | Added| +| ohos.account.osAccount | OsAccountInfo | constraints: Array; | Added| +| ohos.account.osAccount | OsAccountInfo | type: OsAccountType; | Added| +| ohos.account.osAccount | OsAccountInfo | localName: string; | Added| +| ohos.account.osAccount | OsAccountInfo | localId: number; | Added| +| ohos.account.osAccount | AccountManager | getSerialNumberByOsAccountLocalId(localId: number, callback: AsyncCallback): void;
getSerialNumberByOsAccountLocalId(localId: number): Promise; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdBySerialNumber(serialNumber: number, callback: AsyncCallback): void;
getOsAccountLocalIdBySerialNumber(serialNumber: number): Promise; | Added| +| ohos.account.osAccount | AccountManager | getDistributedVirtualDeviceId(callback: AsyncCallback): void;
getDistributedVirtualDeviceId(): Promise; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountTypeFromProcess(callback: AsyncCallback): void;
getOsAccountTypeFromProcess(): Promise; | Added| +| ohos.account.osAccount | AccountManager | queryCurrentOsAccount(callback: AsyncCallback): void;
queryCurrentOsAccount(): Promise; | Added| +| ohos.account.osAccount | AccountManager | queryActivatedOsAccountIds(callback: AsyncCallback>): void;
queryActivatedOsAccountIds(): Promise>; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountAllConstraints(localId: number, callback: AsyncCallback>): void;
getOsAccountAllConstraints(localId: number): Promise>; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo, callback: AsyncCallback): void;
getOsAccountLocalIdFromDomain(domainInfo: DomainAccountInfo): Promise; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromUid(uid: number, callback: AsyncCallback): void;
getOsAccountLocalIdFromUid(uid: number): Promise; | Added| +| ohos.account.osAccount | AccountManager | getOsAccountLocalIdFromProcess(callback: AsyncCallback): void;
getOsAccountLocalIdFromProcess(): Promise; | Added| +| ohos.account.osAccount | AccountManager | getCreatedOsAccountsCount(callback: AsyncCallback): void;
getCreatedOsAccountsCount(): Promise; | Added| +| ohos.account.osAccount | AccountManager | isOsAccountVerified(callback: AsyncCallback): void;
isOsAccountVerified(localId: number, callback: AsyncCallback): void;
isOsAccountVerified(localId?: number): Promise; | Added| +| ohos.account.osAccount | AccountManager | isTestOsAccount(callback: AsyncCallback): void;
isTestOsAccount(): Promise; | Added| +| ohos.account.osAccount | AccountManager | isOsAccountConstraintEnable(localId: number, constraint: string, callback: AsyncCallback): void;
isOsAccountConstraintEnable(localId: number, constraint: string): Promise; | Added| +| ohos.account.osAccount | AccountManager | isOsAccountActived(localId: number, callback: AsyncCallback): void;
isOsAccountActived(localId: number): Promise; | Added| +| ohos.account.osAccount | AccountManager | isMultiOsAccountEnable(callback: AsyncCallback): void;
isMultiOsAccountEnable(): Promise; | Added| +| ohos.account.osAccount | osAccount | function getAccountManager(): AccountManager; | Added| +| ohos.account.appAccount | Authenticator | authenticate(name: string, authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| +| ohos.account.appAccount | Authenticator | addAccountImplicitly(authType: string, callerBundleName: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| +| ohos.account.appAccount | AuthenticatorCallback | onRequestRedirected: (request: Want) => void; | Added| +| ohos.account.appAccount | AuthenticatorCallback | onResult: (code: number, result: {[key: string]: any}) => void; | Added| +| ohos.account.appAccount | ResultCode | ERROR_PERMISSION_DENIED = 10018 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_UNSUPPORT_AUTH_TYPE = 10017 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_UNSUPPORT_ACTION = 10016 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TOKEN_TOO_MANY = 10015 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TOKEN_NOT_EXIST = 10014 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_TIMEOUT = 10013 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SESSION_NOT_EXIST = 10012 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SERVICE_EXCEPTION = 10011 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_SERVICE_BUSY = 10010 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_LIST_TOO_LARGE = 10009 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_CANCELED = 10008 | Added| +| ohos.account.appAccount | ResultCode | ERROR_OAUTH_AUTHENTICATOR_NOT_EXIST = 10007 | Added| +| ohos.account.appAccount | ResultCode | ERROR_NETWORK_EXCEPTION = 10006 | Added| +| ohos.account.appAccount | ResultCode | ERROR_INVALID_RESPONSE = 10005 | Added| +| ohos.account.appAccount | ResultCode | ERROR_INVALID_REQUEST = 10004 | Added| +| ohos.account.appAccount | ResultCode | ERROR_INVALID_PASSWORD = 10003 | Added| +| ohos.account.appAccount | ResultCode | ERROR_APP_ACCOUNT_SERVICE_EXCEPTION = 10002 | Added| +| ohos.account.appAccount | ResultCode | ERROR_ACCOUNT_NOT_EXIST = 10001 | Added| +| ohos.account.appAccount | ResultCode | SUCCESS = 0 | Added| +| ohos.account.appAccount | Constants | KEY_CALLER_BUNDLE_NAME = "callerBundleName" | Added| +| ohos.account.appAccount | Constants | KEY_CALLER_UID = "callerUid" | Added| +| ohos.account.appAccount | Constants | KEY_CALLER_PID = "callerPid" | Added| +| ohos.account.appAccount | Constants | KEY_SESSION_ID = "sessionId" | Added| +| ohos.account.appAccount | Constants | KEY_AUTH_TYPE = "authType" | Added| +| ohos.account.appAccount | Constants | KEY_ACTION = "action" | Added| +| ohos.account.appAccount | Constants | KEY_TOKEN = "token" | Added| +| ohos.account.appAccount | Constants | KEY_OWNER = "owner" | Added| +| ohos.account.appAccount | Constants | KEY_NAME = "name" | Added| +| ohos.account.appAccount | Constants | ACTION_AUTHENTICATE = "authenticate" | Added| +| ohos.account.appAccount | Constants | ACTION_ADD_ACCOUNT_IMPLICITLY = "addAccountImplicitly" | Added| +| ohos.account.appAccount | AuthenticatorInfo | labelId: number; | Added| +| ohos.account.appAccount | AuthenticatorInfo | iconId: number; | Added| +| ohos.account.appAccount | AuthenticatorInfo | owner: string; | Added| +| ohos.account.appAccount | OAuthTokenInfo | token: string; | Added| +| ohos.account.appAccount | OAuthTokenInfo | authType: string; | Added| +| ohos.account.appAccount | AppAccountInfo | name: string; | Added| +| ohos.account.appAccount | AppAccountInfo | owner: string; | Added| +| ohos.account.appAccount | AppAccountManager | getAuthenticatorInfo(owner: string, callback: AsyncCallback): void;
getAuthenticatorInfo(owner: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | getAuthenticatorCallback(sessionId: string, callback: AsyncCallback): void;
getAuthenticatorCallback(sessionId: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | getOAuthList(name: string, authType: string, callback: AsyncCallback>): void;
getOAuthList(name: string, authType: string): Promise>; | Added| +| ohos.account.appAccount | AppAccountManager | getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback>): void;
getAllOAuthTokens(name: string, owner: string): Promise>; | Added| +| ohos.account.appAccount | AppAccountManager | checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback): void;
checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback): void;
setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback): void;
deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback): void;
setOAuthToken(name: string, authType: string, token: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback): void;
getOAuthToken(name: string, owner: string, authType: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | authenticate(name: string, owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| +| ohos.account.appAccount | AppAccountManager | off(type: 'change', callback?: Callback>): void; | Added| +| ohos.account.appAccount | AppAccountManager | on(type: 'change', owners: Array, callback: Callback>): void; | Added| +| ohos.account.appAccount | AppAccountManager | getAssociatedData(name: string, key: string, callback: AsyncCallback): void;
getAssociatedData(name: string, key: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | getAccountExtraInfo(name: string, callback: AsyncCallback): void;
getAccountExtraInfo(name: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | getAccountCredential(name: string, credentialType: string, callback: AsyncCallback): void;
getAccountCredential(name: string, credentialType: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | getAllAccounts(owner: string, callback: AsyncCallback>): void;
getAllAccounts(owner: string): Promise>; | Added| +| ohos.account.appAccount | AppAccountManager | getAllAccessibleAccounts(callback: AsyncCallback>): void;
getAllAccessibleAccounts(): Promise>; | Added| +| ohos.account.appAccount | AppAccountManager | setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback): void;
setAssociatedData(name: string, key: string, value: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback): void;
setAppAccountSyncEnable(name: string, isEnable: boolean): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback): void;
setAccountExtraInfo(name: string, extraInfo: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback): void;
setAccountCredential(name: string, credentialType: string, credential: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | checkAppAccountSyncEnable(name: string, callback: AsyncCallback): void;
checkAppAccountSyncEnable(name: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | enableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
enableAppAccess(name: string, bundleName: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | disableAppAccess(name: string, bundleName: string, callback: AsyncCallback): void;
disableAppAccess(name: string, bundleName: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | deleteAccount(name: string, callback: AsyncCallback): void;
deleteAccount(name: string): Promise; | Added| +| ohos.account.appAccount | AppAccountManager | addAccountImplicitly(owner: string, authType: string, options: {[key: string]: any}, callback: AuthenticatorCallback): void; | Added| +| ohos.account.appAccount | AppAccountManager | addAccount(name: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo: string, callback: AsyncCallback): void;
addAccount(name: string, extraInfo?: string): Promise; | Added| +| ohos.account.appAccount | appAccount | function createAppAccountManager(): AppAccountManager; | Added| diff --git a/en/release-notes/api-change/v3.1-Release/js-apidiff-ace.md b/en/release-notes/api-change/v3.1-Release/js-apidiff-ace.md new file mode 100644 index 0000000000000000000000000000000000000000..6bbbe9b601bbdfb06759625dd089773875f49bdb --- /dev/null +++ b/en/release-notes/api-change/v3.1-Release/js-apidiff-ace.md @@ -0,0 +1,53 @@ +# JS API Changes of the ArkUI Development Framework + +The table below lists the APIs changes of the ArkUI development framework in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. + +## API Changes + +| Component Type | Component Name | Change Type| Change Description | +| ---------- | ----------------------------- | -------- | ------------------------------------------------------------ | +| Universal event | onFocus/onBlur | Added | Added the focus events. | +| Universal event | onHover/onMouse | Added | Added the mouse events. | +| Universal event | onAreaChange| Added | Added the event indicating component area (including the size and position) changes. | +| Universal attribute | stateStyles | Added | Added the attribute for polymorphic style settings. | +| Universal attribute | responseRegion | Added | Added the attribute for touch hotspot settings. | +| Universal attribute | touchable | Added | Added the attribute that specifies whether a component is touchable. | +| Universal attribute | focusable | Added | Added the attribute that specifies whether a component can gain focus. | +| Universal attribute | bindPopup | Added | Added the layout customization capability for pop-up windows. | +| Universal attribute | bindMenu | Added | Added the layout customization capability for menus. | +| Universal attribute | hoverEffect | Added | Added the attribute that specifies the hover effect of a component. | +| General gesture | SwipeGesture | Added | Added the swipe gesture. | +| Basic component | Image | Added | Added the **syncLoad** attribute to specify whether data is loaded synchronously. | +| Basic component | Swiper | Added | Added the **cachedCount** attribute to set the number of preloaded child components. | +| Basic component | Swiper | Added | Added the **disableSwipe** attribute to disable component swipe. | +| Basic component | Slider | Added | Added the vertical slider. | +| Basic component | TabContent | Added | Added the **tabbar** attribute to provide the layout customization capability. | +| Basic component | Marquee | Added | Added the **\** component. | +| Basic component | Gauge | Added | Added the **\** component. | +| Basic component | PluginComponent | Added | Added the **\** component. | +| Basic component | TextArea | Added | Added the **\