Skip to main content

Module application_context

Module application_context 

Source
Available on crate feature api-13 only.
Expand description

Defines the application context APIs.

SystemCapability: SystemCapability.Ability.AbilityRuntime.Core

Functions§

OH_AbilityRuntime_ApplicationContextGetAreaMode
Obtain the area mode of the application.
OH_AbilityRuntime_ApplicationContextGetBundleCodeDirapi-16
Obtain the bundle code directory of the application.
OH_AbilityRuntime_ApplicationContextGetBundleName
Obtain the bundle name.
OH_AbilityRuntime_ApplicationContextGetCacheDir
Obtain the cache directory of the application.
OH_AbilityRuntime_ApplicationContextGetCloudFileDirapi-16
Obtain the cloud file directory of the application.
OH_AbilityRuntime_ApplicationContextGetDatabaseDirapi-16
Obtain the database directory of the application.
OH_AbilityRuntime_ApplicationContextGetDistributedFilesDirapi-16
Obtain the distributed files directory of the application.
OH_AbilityRuntime_ApplicationContextGetFilesDirapi-16
Obtain the files directory of the application.
OH_AbilityRuntime_ApplicationContextGetLatestParameterapi-21
Obtain the latest parameter of starting UIAbility.
OH_AbilityRuntime_ApplicationContextGetLaunchParameterapi-21
Obtain the launch parameter of starting UIAbility.
OH_AbilityRuntime_ApplicationContextGetPreferencesDirapi-16
Obtain the preferences directory of the application.
OH_AbilityRuntime_ApplicationContextGetResourceDirapi-20
Obtain the resource directory of the target module.
OH_AbilityRuntime_ApplicationContextGetTempDirapi-16
Obtain the temp directory of the application.
OH_AbilityRuntime_ApplicationContextGetVersionCodeapi-21
Obtain the version code of the application.
OH_AbilityRuntime_StartSelfUIAbilityapi-15
Starts self UIAbility.
OH_AbilityRuntime_StartSelfUIAbilityWithPidResultapi-21
Starts self UIAbility with start options and receives the process ID.
OH_AbilityRuntime_StartSelfUIAbilityWithStartOptionsapi-17
Starts self UIAbility with start options.