result_callback property
Pointer<NativeFunction<Void Function(UnsignedInt status, Pointer<MpGestureRecognizerResult> result, MpImagePtr image, Int64 timestamp_ms)> >
result_callback
getter/setter pair
The user-defined result callback for processing live stream data. The result callback should only be specified when the running mode is set to MP_RUNNING_MODE_LIVE_STREAM. Arguments of the callback function include: the pointer to recognition result, the image that result was obtained on, the timestamp relevant to recognition results and pointer to error message in case of any failure. The validity of the passed arguments is true for the lifetime of the callback function.
The passed arguments are only valid for the lifetime of the callback.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.UnsignedInt status,
ffi.Pointer<MpGestureRecognizerResult> result,
MpImagePtr image,
ffi.Int64 timestamp_ms,
)
>
>
result_callback;