中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
通知栏点击事件监听的方法
微信扫码分享
import Logger from '../utils/Logger'; import { UIAbility, Want } from '@kit.AbilityKit'; import { window } from '@kit.ArkUI'; export default class TestClickActionAbility extends UIAbility { onCreate(want: Want): void { Logger.info('TestClickActionAbility onCreate'); } onNewWant(want: Want): void { Logger.info('TestClickActionAbility onNewWant'); } onDestroy(): void { Logger.info('TestClickActionAbility onDestroy.'); } onWindowStageCreate(windowStage: window.WindowStage): void { windowStage.loadContent('pages/ClickActionInnerPage'); } }