init static method

Future<void> init()

Initializes the C2PA Rust library.

Must be called once before any other C2PA operations. Safe to call multiple times — subsequent calls are no-ops.

Implementation

static Future<void> init() async {
  if (_initialized) return;
  await RustLib.init();
  _initialized = true;
}