FB4D Reference IFirebaseEvent - SchneiderInfosystems/FB4D GitHub Wiki
Interface IFirebaseEvent
The method IRealTimeDB.ListenForValueEvents
register an event handler and returns an IFirebaseEvent
.
For stopping a running event handler the method procedure IFirebaseEvent.StopListening(MaxTimeOutInMS: cardinal = 500)
can be called. The method waits with the given timeout until the listener thread is terminated.
Hints:
- Since RSP-20827 is solved, there is no longer a workaround required to stop the listener by writing a stop node.
- When running the application in the Delphi IDE, you will see this silent exception of the class ENetHTTPResponseException with message 'Error reading data: (12017) The operation has been canceled'. This is not a defect, because it is a silent exception that the user will never see.
The function IFirebaseEvent.GetLastReceivedMsg: TDateTime
returns the timestamp of the last message received from the Firebase RT DB Service.
The function IFirebaseEvent.IsStopped: boolean
informs if the event listener is stopped or a stop is in progress.
The function IFirebaseEvent.GetResourceParams: TRequestResourceParam
returns the path in the JSON tree of the listened node.