Available on crate feature
api-13 only.Expand description
Defines the application context APIs.
SystemCapability: SystemCapability.Ability.AbilityRuntime.Core
Functions§
- OH_
Ability ⚠Runtime_ Application Context GetArea Mode - Obtain the area mode of the application.
- OH_
Ability ⚠Runtime_ Application Context GetBundle Code Dir api-16 - Obtain the bundle code directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetBundle Name - Obtain the bundle name.
- OH_
Ability ⚠Runtime_ Application Context GetCache Dir - Obtain the cache directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetCloud File Dir api-16 - Obtain the cloud file directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetDatabase Dir api-16 - Obtain the database directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetDistributed Files Dir api-16 - Obtain the distributed files directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetFiles Dir api-16 - Obtain the files directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetLatest Parameter api-21 - Obtain the latest parameter of starting UIAbility.
- OH_
Ability ⚠Runtime_ Application Context GetLaunch Parameter api-21 - Obtain the launch parameter of starting UIAbility.
- OH_
Ability ⚠Runtime_ Application Context GetPreferences Dir api-16 - Obtain the preferences directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetResource Dir api-20 - Obtain the resource directory of the target module.
- OH_
Ability ⚠Runtime_ Application Context GetTemp Dir api-16 - Obtain the temp directory of the application.
- OH_
Ability ⚠Runtime_ Application Context GetVersion Code api-21 - Obtain the version code of the application.
- OH_
Ability ⚠Runtime_ Start SelfUI Ability api-15 - Starts self UIAbility.
- OH_
Ability ⚠Runtime_ Start SelfUI Ability With PidResult api-21 - Starts self UIAbility with start options and receives the process ID.
- OH_
Ability ⚠Runtime_ Start SelfUI Ability With Start Options api-17 - Starts self UIAbility with start options.