/interface/sdk-js/api/ |
D | @ohos.data.preferences.d.ts | 16 import Context from "./application/BaseContext"; 40 …function getPreferences(context: Context, name: string, callback: AsyncCallback<Preferences>): voi… 54 function getPreferences(context: Context, name: string): Promise<Preferences>; 72 function deletePreferences(context: Context, name: string, callback: AsyncCallback<void>): void; 90 function deletePreferences(context: Context, name: string): Promise<void>; 106 …function removePreferencesFromCache(context: Context, name: string, callback: AsyncCallback<void>)… 122 function removePreferencesFromCache(context: Context, name: string): Promise<void>;
|
D | @ohos.backgroundTaskManager.d.ts | 18 import Context from './application/BaseContext'; 99 …function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, ca… 100 …function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): P… 111 function stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): void; 112 function stopBackgroundRunning(context: Context): Promise<void>;
|
D | @ohos.resourceschedule.backgroundTaskManager.d.ts | 18 import Context from './application/BaseContext'; 135 …function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent, ca… 159 …function startBackgroundRunning(context: Context, bgMode: BackgroundMode, wantAgent: WantAgent): P… 178 function stopBackgroundRunning(context: Context, callback: AsyncCallback<void>): void; 197 function stopBackgroundRunning(context: Context): Promise<void>;
|
D | @ohos.abilityAccessCtrl.d.ts | 18 import Context from "./application/Context"; 90 …requestPermissionsFromUser(context: Context, permissionList: Array<Permissions>, requestCallback: … 91 …requestPermissionsFromUser(context: Context, permissionList: Array<Permissions>) : Promise<Permiss…
|
D | @ohos.data.dataShare.d.ts | 17 import Context from './application/Context'; 42 …function createDataShareHelper(context: Context, uri: string, callback: AsyncCallback<DataShareHel… 56 function createDataShareHelper(context: Context, uri: string): Promise<DataShareHelper>;
|
D | @ohos.ability.featureAbility.d.ts | 22 import { Context as _Context } from './app/context'; 69 function getContext(): Context; 228 export type Context = _Context alias
|
D | @ohos.file.fileAccess.d.ts | 18 import Context from './application/Context'; 110 function createFileAccessHelper(context: Context): FileAccessHelper; 153 function createFileAccessHelper(context: Context, wants: Array<Want>): FileAccessHelper;
|
D | @ohos.data.rdb.d.ts | 18 import Context from "./application/BaseContext"; 45 …function getRdbStore(context: Context, config: StoreConfig, version: number, callback: AsyncCallba… 62 function getRdbStore(context: Context, config: StoreConfig, version: number): Promise<RdbStore>; 75 function deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void>): void; 87 function deleteRdbStore(context: Context, name: string): Promise<void>;
|
D | @ohos.data.distributedDataObject.d.ts | 17 import Context from './application/Context'; 49 function create(context: Context, source: object): DataObject;
|
D | @ohos.data.relationalStore.d.ts | 17 import Context from "./application/BaseContext"; 44 …function getRdbStore(context: Context, config: StoreConfig, callback: AsyncCallback<RdbStore>): vo… 62 function getRdbStore(context: Context, config: StoreConfig): Promise<RdbStore>; 76 function deleteRdbStore(context: Context, name: string, callback: AsyncCallback<void>): void; 90 function deleteRdbStore(context: Context, name: string): Promise<void>;
|
D | @ohos.app.ability.common.d.ts | 75 export type Context = _Context.default alias
|
D | @ohos.filemanagement.userFileManager.d.ts | 17 import Context from './application/Context'; 37 function getUserFileMgr(context: Context): UserFileManager;
|
D | @ohos.multimedia.mediaLibrary.d.ts | 17 import Context from './application/Context'; 48 function getMediaLibrary(context: Context): MediaLibrary;
|
D | @ohos.multimedia.avsession.d.ts | 42 …function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallba… 43 function createAVSession(context: Context, tag: string, type: AVSessionType): Promise<AVSession>;
|
D | @ohos.multimedia.camera.d.ts | 17 import { Context } from './app/context'; 36 function getCameraManager(context: Context): CameraManager;
|
D | @ohos.data.distributedKVStore.d.ts | 19 import Context from './application/Context'; 47 context: Context;
|
/interface/sdk-js/api/application/ |
D | Context.d.ts | 30 export default class Context extends BaseContext { class 143 createBundleContext(bundleName: string): Context; 154 createModuleContext(moduleName: string): Context; 167 createModuleContext(bundleName: string, moduleName: string): Context;
|
D | AbilityStageContext.d.ts | 18 import Context from "./Context"; 28 export default class AbilityStageContext extends Context {
|
D | ExtensionContext.d.ts | 18 import Context from "./Context"; 29 export default class ExtensionContext extends Context {
|
D | ApplicationContext.d.ts | 17 import Context from "./Context"; 28 export default class ApplicationContext extends Context {
|
D | AbilityDelegator.d.ts | 21 import Context from './Context'; 196 getAppContext(): Context;
|
D | UIAbilityContext.d.ts | 23 import Context from "./Context"; 38 export default class UIAbilityContext extends Context {
|
/interface/sdk-js/api/app/ |
D | context.d.ts | 37 export interface Context extends BaseContext { interface 243 getApplicationContext(): Context;
|
/interface/sdk-js/api/@internal/component/ets/ |
D | common.d.ts | 227 declare function getContext(component?: Object): Context; 234 declare type Context = import('../api/application/Context').default;
|