Home
last modified time | relevance | path

Searched refs:napi_wrap_sendable (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-sendable-napi.md5 通过`napi_wrap_sendable`将Sendable ArkTS对象与Native的C++对象绑定,后续操作时再通过`napi_unwrap_sendable`将ArkTS对象绑定的C++…
152 // 通过napi_wrap_sendable将Sendable ArkTS对象jsThis与C++对象obj绑定
153napi_wrap_sendable(env, jsThis, reinterpret_cast<void *>(obj), MyObject::Destructor, nullptr);
H A Dnapi-data-types-interfaces.md519 | napi_wrap_sendable | 包裹一个native实例到ArkTS对象中。|
682 #### napi_wrap_sendable subsubsection
685 napi_status napi_wrap_sendable(napi_env env,
H A Duse-napi-about-extension.md755 | napi_wrap_sendable | 包裹一个native实例到ArkTS对象中。|
1081 #### napi_wrap_sendable subsubsection
1100napi_wrap_sendable(env, obj, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr);
1182napi_wrap_sendable(env, obj, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr);
1227napi_wrap_sendable(env, obj, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr);
/ohos5.0/docs/en/application-dev/napi/
H A Duse-sendable-napi.md5 You can use **napi_wrap_sendable** to wrap a C++ object in a sendable ArkTS object, and use **napi_…
152 … // Use napi_wrap_sendable to wrap obj (the C++ object) in jsThis (the sendable ArkTS object).
153napi_wrap_sendable(env, jsThis, reinterpret_cast<void *>(obj), MyObject::Destructor, nullptr);
H A Duse-napi-about-extension.md743 | napi_wrap_sendable | Wraps a native instance into an ArkTS object.|
1043 #### napi_wrap_sendable subsubsection
1045 Use **napi_wrap_sendable** to wrap a native instance into an ArkTS object.
1062napi_wrap_sendable(env, obj, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr);
1144napi_wrap_sendable(env, obj, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr);
1189napi_wrap_sendable(env, obj, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr);
H A Dnapi-data-types-interfaces.md508 | napi_wrap_sendable | Wraps a native instance into an ArkTS object.|
671 #### napi_wrap_sendable subsubsection
674 napi_status napi_wrap_sendable(napi_env env,
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/color_space_object_convertor/
H A Dcolor_space_object_convertor.cpp89 …NAPI_CALL_DEFAULT(napi_wrap_sendable(env, object, jsColorSpace.release(), JsColorSpace::Finalizer,… in CreateJsSendableColorSpaceObject()
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/
H A Dnapi.md710 |FUNC|napi_wrap_sendable | 包裹一个native实例到ArkTS对象中。|12|
1301 ### napi_wrap_sendable subsection
1304 napi_status napi_wrap_sendable(napi_env env,
/ohos5.0/foundation/arkui/napi/interfaces/kits/napi/
H A Dnative_api.h171 NAPI_EXTERN napi_status napi_wrap_sendable(napi_env env,
/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/sendable_context_manager/
H A Djs_sendable_context_manager.cpp69 status = napi_wrap_sendable(env, objValue, jsContext.release(), JsContext::Finalizer, nullptr); in CreateSendableContextObject()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/utils/locks/
H A Dasync_lock_manager.cpp194 NAPI_CALL(env, napi_wrap_sendable(env, thisVar, data, Destructor, nullptr)); in Constructor()
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/sendable/
H A Dsendable_image_napi.cpp150 status = napi_wrap_sendable(env, thisVar, in Constructor()
H A Dsendable_pixel_map_napi.cpp549 status = napi_wrap_sendable(env, thisVar, reinterpret_cast<void*>(pPixelMapNapi.get()), in Constructor()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/js/napi/sendable_preferences/src/
H A Dnapi_preferences.cpp122 status = napi_wrap_sendable(env, *instance, obj, PreferencesProxy::Destructor, nullptr); in NewInstance()
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/sendable/
H A Dsendable_photo_album_napi.cpp241 CHECK_ARGS(env, napi_wrap_sendable(env, thisVar, reinterpret_cast<void *>(obj.get()), in PhotoAlbumNapiConstructor()
H A Dsendable_fetch_file_result_napi.cpp117 status = napi_wrap_sendable(env, thisVar, reinterpret_cast<void *>(obj.get()), in FetchFileResultNapiConstructor()
H A Dsendable_file_asset_napi.cpp175 status = napi_wrap_sendable(env, thisVar, reinterpret_cast<void *>(obj.get()), in FileAssetNapiConstructor()
H A Dsendable_photo_access_helper_napi.cpp217 status = napi_wrap_sendable(env, thisVar, reinterpret_cast<void *>(obj.get()), in MediaLibraryNapiConstructor()
/ohos5.0/docs/en/application-dev/reference/native-lib/
H A Dnapi.md708 |FUNC|napi_wrap_sendable | Wraps a native instance into an ArkTS object.|12|
1299 ### napi_wrap_sendable subsection
1302 napi_status napi_wrap_sendable(napi_env env,
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_sendable_napi.cpp705 res = napi_wrap_sendable(
1883 napi_wrap_sendable(env, obj2, data, nullptr, nullptr);
H A Dtest_napi.cpp6920 napi_status status = napi_wrap_sendable(
6931 status = napi_wrap_sendable(
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_api.cpp1996 NAPI_EXTERN napi_status napi_wrap_sendable(napi_env env, in napi_wrap_sendable() function