-
-
Notifications
You must be signed in to change notification settings - Fork 54
FB4D Reference 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.
Have you discovered an error? Or is something unclear? Please let us know in the discussion forum.
Schneider Infosystems Ltd. CH-6340 Baar, Switzerland, www.schneider-infosys.ch
Introduction into FB4D
Getting Started
Fundamental Principles
Project Settings
GUI Pattern Self-Registration
RT-DB Sample Applications
Firestore Chat Sample Applications
PhotoBox demonstrates Firestore, Storage, VisionML
Interface Reference
Configuration and Class Factory
Helper Classes
Authentication