setNativeDetector method

  1. @override
void setNativeDetector(
  1. int textureId,
  2. String detector
)
override

Runs a NATIVE detector on the session's frames, emitting CameraEventType.detection events with a JSON payload per hit. detector: a registered detector name, or "" to stop. The built-ins are "barcode" / "face" (ML Kit on Android — the host app adds the artifact; the built-in Vision framework on iOS). Host apps register their own native detector plugins by name via NitraDetectors.register(...) (Kotlin/Swift) and select them here. An unknown name emits a descriptive error event.

Implementation

@override
void setNativeDetector(int textureId, String detector) =>
    throw UnimplementedError('NitroCamera.setNativeDetector');