startDetector method

void startDetector(
  1. NativeDetector detector
)

Starts a NATIVE ML Kit detector (NativeDetector.barcode / NativeDetector.face) on this session's frames. Results arrive typed on detections. Requires the host app to add the matching ML Kit dependency (documented in the README).

Implementation

void startDetector(NativeDetector detector) => setNativeDetector(detector.wire);