mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 23:30:44 +00:00
commit
cebadf6410
7
interfaces/kits/napi/aafwk/inner/napi_common/napi_common_ability.cpp
Executable file → Normal file
7
interfaces/kits/napi/aafwk/inner/napi_common/napi_common_ability.cpp
Executable file → Normal file
@ -846,6 +846,13 @@ napi_value WrapAbilityInfo(napi_env env, const AbilityInfo_ &abilityInfo)
|
||||
return result;
|
||||
}
|
||||
|
||||
napi_value ConvertAbilityInfo(napi_env env, const AbilityInfo &abilityInfo)
|
||||
{
|
||||
AbilityInfo_ temp;
|
||||
SaveAbilityInfo(temp, abilityInfo);
|
||||
return WrapAbilityInfo(env, temp);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief GetAbilityInfo asynchronous processing function.
|
||||
*
|
||||
|
2
interfaces/kits/napi/aafwk/inner/napi_common/napi_common_ability.h
Executable file → Normal file
2
interfaces/kits/napi/aafwk/inner/napi_common/napi_common_ability.h
Executable file → Normal file
@ -150,6 +150,8 @@ napi_value GetContinueAbilityOptionsInfoCommon(
|
||||
napi_value GetContinueAbilityOptionsReversible(
|
||||
const napi_env &env, const napi_value &value, ContinueAbilityOptionsInfo &info);
|
||||
|
||||
napi_value ConvertAbilityInfo(napi_env env, const AbilityInfo &abilityInfo);
|
||||
|
||||
/**
|
||||
* @brief Obtains the continue ability Info this application.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user