mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2024-12-02 07:46:35 +00:00
Description:adapt ability api9
Match-id-3286129a597ff8d0721d3a3758b4fc879ffe4778
This commit is contained in:
parent
b8039f8218
commit
020d947ca6
@ -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;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import AbilityStage from "@ohos.application.AbilityStage"
|
||||
import AbilityStage from "@ohos.app.ability.AbilityStage"
|
||||
|
||||
export default class MyAbilityStage extends AbilityStage {
|
||||
onCreate() {
|
||||
console.log("[Demo] MyAbilityStage onCreate")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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'
|
||||
|
||||
@ -74,4 +74,4 @@ export default class DataAbility extends ServiceExtensionAbility {
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user