I tried to find an answer online for it, but I couldn't find one which is specific for Firebase
implementations.
I can choose between OnCompleteListener
and OnSuccessListener
for a lot of operations in Firebase
, and I'd like to know how can I choose between them?.
I have read the documentation for OnComplete and OnSuccess, but as I can see from Firebase documentations, this one for example, for one specific operation (like get
operation in the example), they sometimes use OnSuccessListener
and sometimes they use OnCompleteListener
.
How can I know which one is better in every situation? Does it matter? Considering that I'd like to know for every operation if it was succussful or not.