Top "Observers" questions

An object which registers itself to listen for updates on another object

When should we use Observer and Observable?

An interviewer asked me: What is Observer and Observable and when should we use them? I wasn't aware of these …

java design-patterns observable observer-pattern observers
LiveData remove Observer after first callback

How do I remove the observer after I receive the first result? Below are two code ways I've tried, but …

android observers android-room android-livedata
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away on running cron job magento

I am working on Magento site and I get this error: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away …

mysql magento cron observers
Add 'addObserver' (NSNotificationCenter ) in a 1st view controller, handle in 2nd

I saw a few examples about adding observer and handle in the same class, but what I want to know …

ios objective-c nsnotificationcenter nsnotification observers
Trigger observer on Magento order status change events

I need to automatically create an invoice on an order once it receives the processing status. Which event should be …

magento observers
How do you set the sort order for event observers in Magento?

I have created an observer on the catalog_product_save_after event, but it seems to be getting called before …

magento events observers
What's the right magento observer event to capture order paid?

I'm trying to send orders to a third-party after and ONLY after an order has been paid and has now …

php magento observers magento-1.9
How to create Selector with parameters from string

I am writing a program using Swift 3.1 and Xcode 8.3.3. I want to create a class, responsible for moving entire view …

ios swift notifications selector observers
In an Observer method, how do you tell Magento to not process code after the dispatched event

I have some code in the checkout where I set a key in the session if that key is set …

php magento observers
Firebase: when to call removeObserverWithHandle in swift

Documentation says you need to call observeEventType:withBlock to remove an observer if you no longer need it. I've seen …

ios swift uikit firebase observers