pub unsafe extern "C" fn OH_AbilityRuntime_ApplicationContextGetVersionCode(
versionCode: *mut i64,
) -> AbilityRuntimeResultAvailable on crate feature
api-21 only.Expand description
Obtain the version code of the application.
§Arguments
versionCode- The version code of the application.
§Returns
- The error code.
[
ABILITY_RUNTIME_ERROR_CODE_NO_ERROR] if the operation is successful. [ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID] if the versionCode is null. [ABILITY_RUNTIME_ERROR_CODE_CONTEXT_NOT_EXIST] if the application context does not exist. [ABILITY_RUNTIME_ERROR_CODE_GET_APPLICATION_INFO_FAILED] if the application info does not exist.
Available since API-level: 21