API
InteractorNotificationโ
Declaration
class InteractorNotification {
String getInputString({int? length})
Pointer<T> getInputObject<T extends Struct>()
T parseInputObject<T, O extends Struct>(T Function(Pointer<O> object) mapper)
void setOutputInt(int data)
void setOutputBool(bool data)
void setOutputDouble(double data)
void setOutputString(String data)
void setOutputObject<T extends Struct>(void Function(Pointer<T> object) configurator)
Future<void> setOutputBytes(List<int> bytes) async
}
note
Remember that input
and output
should be allocated and freed by the requester (party which makes a notification).
getInputStringโ
Parse notification into the Dart String. You can specify length
if you need to parse a fixed-length string.
getInputObjectโ
Parse notification into the Dart FFI pointer.
parseInputObjectโ
Parse notification into the Dart object pointer by a custom mapper.
setOutputIntโ
Set notification output integer value.
setOutputBoolโ
Set notification output bool value.
setOutputDoubleโ
Set notification output double value.
setOutputStringโ
Set notification output string value.
setOutputObjectโ
Set notification output Dart FFI value.
setOutputBytesโ
Set notification output bytes.