Description:adapt ability api9

Match-id-3286129a597ff8d0721d3a3758b4fc879ffe4778
This commit is contained in:
li-li-wang 2022-11-19 19:20:56 +08:00
parent b8039f8218
commit 020d947ca6
5 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
import Ability from '@ohos.application.Ability'
import UIAbility from '@ohos.app.ability.UIAbility'
export default class AlertAbility extends Ability {
export default class AlertAbility extends UIAbility {
onCreate(want, launchParam) {
console.log("[Demo] MainAbility onCreate")
globalThis.abilityWant = want;

View File

@ -1,4 +1,4 @@
import AbilityStage from "@ohos.application.AbilityStage"
import AbilityStage from "@ohos.app.ability.AbilityStage"
export default class MyAbilityStage extends AbilityStage {
onCreate() {

View File

@ -1,6 +1,6 @@
import ServiceExtensionAbility from '@ohos.application.ServiceExtensionAbility'
import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'
import commonEvent from '@ohos.commonEvent'
import Want from '@ohos.application.Want'
import Want from '@ohos.app.ability.Want'
import fileio from '@ohos.fileio';
import dlpPermission from '@ohos.dlpPermission'

View File

@ -1,4 +1,4 @@
import Ability from '@ohos.application.Ability'
import UIAbility from '@ohos.app.ability.UIAbility'
import datafile from '@ohos.data.fileAccess';
import window from '@ohos.window';
@ -9,7 +9,7 @@ let permissionList: Array<string> = [
"ohos.permission.FILE_ACCESS_MANAGER"
]
export default class MainAbility extends Ability {
export default class MainAbility extends UIAbility {
async onCreate(want, launchParam) {
console.log("[DLPManager] MainAbility onCreate")
globalThis.abilityWant = want;

View File

@ -1,8 +1,8 @@
import ServiceExtensionAbility from '@ohos.application.ServiceExtensionAbility'
import ServiceExtensionAbility from '@ohos.app.ability.ServiceExtensionAbility'
import dlpPermission from '@ohos.dlpPermission'
import { getOsAccountInfo, getUserId, getAuthPerm, startAlertAbility } from '../common/utils'
import fileio from '@ohos.fileio';
import Want from '@ohos.application.Want';
import Want from '@ohos.app.ability.Want';
import commonEvent from '@ohos.commonEvent';
import Constants from '../common/constant'
import hiTraceMeter from '@ohos.hiTraceMeter'