We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175b9a9 commit cab0069Copy full SHA for cab0069
firestore/src/include/firebase/firestore/event_listener.h
@@ -40,10 +40,17 @@ class EventListener {
40
virtual void OnEvent(const T& value, Error error) = 0;
41
};
42
43
+/** Interface used for void EventListeners that don't produce a value. */
44
template <>
45
class EventListener<void> {
46
public:
47
virtual ~EventListener() = default;
48
+
49
+ /**
50
+ * @brief OnEvent will be called with the error if an error occurred.
51
+ *
52
+ * @param error The error if there was error. Error::Ok otherwise.
53
+ */
54
virtual void OnEvent(Error error) = 0;
55
56
0 commit comments