mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-05-16 21:00:35 +00:00
26 lines
712 B
C++
Generated
26 lines
712 B
C++
Generated
///
|
|
/// ReactNativeVideoOnLoad.hpp
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
///
|
|
|
|
#include <jni.h>
|
|
#include <NitroModules/NitroDefines.hpp>
|
|
|
|
namespace margelo::nitro::video {
|
|
|
|
/**
|
|
* Initializes the native (C++) part of ReactNativeVideo, and autolinks all Hybrid Objects.
|
|
* Call this in your `JNI_OnLoad` function (probably inside `cpp-adapter.cpp`).
|
|
* Example:
|
|
* ```cpp (cpp-adapter.cpp)
|
|
* JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
|
|
* return margelo::nitro::video::initialize(vm);
|
|
* }
|
|
* ```
|
|
*/
|
|
int initialize(JavaVM* vm);
|
|
|
|
} // namespace margelo::nitro::video
|