setNativeDetector abstract method
Runs a NATIVE ML detector on the session's frames, emitting
CameraEventType.detection events with a JSON payload per hit.
detector: "barcode" | "face" | "" (off). Requires the host app to add
the matching ML Kit dependency (see docs) — throws a descriptive error
event if the detector class is not on the classpath.
Implementation
void setNativeDetector(int textureId, String detector);