Lines Matching refs:jsThis
144 napi_value jsThis;
145 napi_get_cb_info(env, info, &argc, args, &jsThis, nullptr);
157 // Use napi_wrap to wrap the C++ object obj in the ArkTS object jsThis.
159 jsThis,
169 return jsThis;
171 … // Obtain the napi_ref behavior from result of napi_wrap() to create a strong reference to jsThis.
172 …// If you do not want to manage the lifecycle of jsThis, pass nullptr in the last parameter of nap…
177 return jsThis;
201 napi_value jsThis;
202 napi_get_cb_info(env, info, nullptr, nullptr, &jsThis, nullptr);
205 …// Use napi_unwrap to retrieve obj (the C++ object) previously wrapped in jsThis (the ArkTS object…
206 napi_unwrap(env, jsThis, reinterpret_cast<void**>(&obj));
219 napi_value jsThis;
221 napi_get_cb_info(env, info, &argc, &value, &jsThis, nullptr);
224 …// Use napi_unwrap to retrieve obj (the C++ object) previously wrapped in jsThis (the ArkTS object…
225 napi_unwrap(env, jsThis, reinterpret_cast<void**>(&obj));
235 napi_value jsThis;
236 napi_get_cb_info(env, info, nullptr, nullptr, &jsThis, nullptr);
239 …// Use napi_unwrap to retrieve obj (the C++ object) previously wrapped in jsThis (the ArkTS object…
240 napi_unwrap(env, jsThis, reinterpret_cast<void**>(&obj));