Lines Matching refs:hook
12 - Hook function<br>A hook function is a callback that is automatically executed at the specified ti…
14 So far, you've learnt resource management in ArkTS and cleanup hook functions. Read on to learn the…
21 | napi_add_env_cleanup_hook | Adds an environment cleanup hook function, which will be called when …
22 | napi_remove_env_cleanup_hook | Removes an environment cleanup hook function.|
23 | napi_add_async_cleanup_hook | Adds an async cleanup hook function, which will be executed asynchr…
24 | napi_remove_async_cleanup_hook | Removes an async cleanup hook function.|
32 Use **napi_add_env_cleanup_hook** to add an environment cleanup hook function, which will be execut…
36 Use **napi_remove_env_cleanup_hook** to remove the previously added environment cleanup hook functi…
63 // Create an external buffer and add the environment cleanup hook function.
75 // Use static variables as hook function parameters.
78 // Add a cleanup hook function for releasing resources when the environment exits.
84 …// Add the environment cleanup hook function. The hook function is not removed here to make it cal…
90 // Remove the environment cleanup hook function immediately.
91 // Generally, use this API when the resource associated with the hook must be released.
141 …d an async cleanup hook function, which will be executed asynchronously when the environment exits…
145 Use **napi_remove_async_cleanup_hook** to remove an async cleanup hook function that is no longer r…
162 // Delete the async work object and remove the hook function.
166 // Remove the hook function from the environment when it is no longer required.
213 // Add an async cleanup hook function.