Type Alias: BinaryModuleEvents
BinaryModuleEvents =
object
Defined in: packages/expo-binary-module/src/types/binaryModule.ts:159
Properties
log
log: (
data) =>void
Defined in: packages/expo-binary-module/src/types/binaryModule.ts:165
Emits each log output stream line by line from the binary.
Event emitted only when enabled using BinaryModule.emitLog.
Parameters
data
line
string
timestamp
string
UTC timestamp of when the event is emitted Format: YYYY-MM-DDThh:mm:ssZ
Returns
void
notification
notification: (
data) =>void
Defined in: packages/expo-binary-module/src/types/binaryModule.ts:181
Emits notifications received from the binary's output stream
Event is only emitted when StartOptions.ipcOptions contains a non-empty tag and individual binary output stream line matches the tag.
Parameters
data
notification
string
The JSON string excluding the tag in StartOptions.ipcOptions and anything before it.
NotificationOptions JSON string
timestamp
string
UTC timestamp of when the event is emitted Format: YYYY-MM-DDThh:mm:ssZ
Returns
void