!68 get js ability info

Merge pull request !68 from zhanghaibo/master
This commit is contained in:
openharmony_ci 2021-09-25 09:27:40 +00:00 committed by Gitee
commit cebadf6410
2 changed files with 9 additions and 0 deletions

View File

@ -846,6 +846,13 @@ napi_value WrapAbilityInfo(napi_env env, const AbilityInfo_ &abilityInfo)
return result; 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. * @brief GetAbilityInfo asynchronous processing function.
* *

View File

@ -150,6 +150,8 @@ napi_value GetContinueAbilityOptionsInfoCommon(
napi_value GetContinueAbilityOptionsReversible( napi_value GetContinueAbilityOptionsReversible(
const napi_env &env, const napi_value &value, ContinueAbilityOptionsInfo &info); 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. * @brief Obtains the continue ability Info this application.
* *