Files
a01d203bcb chore: Upgrade to Nitro 0.35.0 (#4849)
* chore: Upgrade to Nitro 0.35.0

* Replace `bigint` with `UInt64`

* chore: Regenerate specs now for Nitro 0.35.0

* fix: Use Int64 as it can be -1

* Remove unnecessary patches

* fix: change duration type to number

* fix: avoid mutating VideoInformation fields after init

* chore: regenerate specs with new duration type

* fix: use Double for duration in VideoInformation

* docs: react-native-nitro-modules version

* chore: update react-native-nitro-modules version (rnv & drm)

---------

Co-authored-by: fnwk <filip.wnek200@gmail.com>
2026-03-18 22:44:49 +01:00

35 lines
1.0 KiB
C++
Generated

///
/// ReactNativeVideoDrmOnLoad.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///
#include <jni.h>
#include <functional>
#include <NitroModules/NitroDefines.hpp>
namespace margelo::nitro::videodrm {
[[deprecated("Use registerNatives() instead.")]]
int initialize(JavaVM* vm);
/**
* Register the native (C++) part of ReactNativeVideoDrm, and autolinks all Hybrid Objects.
* Call this in your `JNI_OnLoad` function (probably inside `cpp-adapter.cpp`),
* inside a `facebook::jni::initialize(vm, ...)` call.
* Example:
* ```cpp (cpp-adapter.cpp)
* JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
* return facebook::jni::initialize(vm, []() {
* // register all ReactNativeVideoDrm HybridObjects
* margelo::nitro::videodrm::registerNatives();
* // any other custom registrations go here.
* });
* }
* ```
*/
void registerAllNatives();
} // namespace margelo::nitro::videodrm