Repository navigation
Changes
New hooks, model status queries, and Android language selection.
- Added
useDataDetector(imperative) anduseDetectedEntities(reactive, as-you-type) hooks — both track model readiness and auto-download the model on Android. - Added
getModelStatus()andisModelReady()to query whether a language model is available (iOS always reports ready). - Added Android multi-language support —
detect,prepareModel,getModelStatus,isModelReady, and the hooks accept alanguageoption selecting one of 15 ML Kit models (defaults to'en'; ignored on iOS). - Renamed
downloadModel()toprepareModel()(now accepts a{ language }option);downloadModel()remains as a deprecated alias. - Corrected the minimum Android SDK to API 26 — required by ML Kit Entity Extraction (
entity-extraction:16.0.0-beta6). - Fixed iOS to return UTF-16 offsets so
start/endalign with JavaScript string indices. - Fixed Android to read the library version from
package.json.
Full Changelog: v0.2.0...v0.3.0