21 行
468 B
Plaintext
21 行
468 B
Plaintext
|
|
/*
|
||
|
|
* Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type common from '@ohos.app.ability.common';
|
||
|
|
|
||
|
|
declare namespace globalThis {
|
||
|
|
let _brushEngineContext: common.UIAbilityContext;
|
||
|
|
};
|
||
|
|
|
||
|
|
export class GlobalContext {
|
||
|
|
static getContext(): common.UIAbilityContext {
|
||
|
|
return globalThis._brushEngineContext;
|
||
|
|
}
|
||
|
|
|
||
|
|
static setContext(context: common.UIAbilityContext): void {
|
||
|
|
globalThis._brushEngineContext = context;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|