setObserver

Register an observer to be notified when the state of the region changes.

Parameters

observer

the observer to be notified