Home
last modified time | relevance | path

Searched refs:apptype (Results 1 - 1 of 1) sorted by relevance

/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_ability_common/
H A Djs_napi_common.cpp516 auto execute = [obj = this, apptype = type, value = errorVal, abilityType] () { in JsGetCtxAppType()
526 if (apptype == nullptr) { in JsGetCtxAppType()
530 apptype->name = obj->ability_->GetAppType(); in JsGetCtxAppType()
532 auto complete = [obj = this, apptype = type, value = errorVal] in JsGetCtxAppType()
534 if (*value != static_cast<int32_t>(NAPI_ERR_NO_ERROR) || apptype == nullptr) { in JsGetCtxAppType()
535 auto ecode = apptype == nullptr ? static_cast<int32_t>(NAPI_ERR_ABILITY_CALL_INVALID) : *value; in JsGetCtxAppType()
539 task.Resolve(env, CreateJsValue(env, apptype->name)); in JsGetCtxAppType()

Completed in 4 milliseconds