The code snippet is as follows:
import { window } from '@kit.ArkUI';
import { hilog } from '@kit.PerformanceAnalysisKit';
const DOMAIN = 0x0000;
const TAG = 'FullNavigationSubComponent';
@Entry
@Component
struct FullNavigationSubComponent {
context = this.getUIContext();
onPageShow(): void {
window.getLastWindow(this.context.getHostContext(), (err, win) => {
if (err != null) {
hilog.error(DOMAIN, TAG, `getLastWindow failed code:${err.code};message:${err.message}`);
} else {
win.setWindowLayoutFullScreen(true);
}
})
}
build() {
Navigation() {
Column() {
}
.width('100%')
.height('100%')
.backgroundColor(Color.Black)
}
.width('100%')
.height('100%')
.title('Personalization Settings')
.titleMode(NavigationTitleMode.Mini)
.backgroundColor(Color.Grey)
}
}