registerAmbientCallback method

void registerAmbientCallback(
  1. AmbientCallback callback
)

Register callback for ambient notifications

Implementation

void registerAmbientCallback(AmbientCallback callback) {
  _ambientCallbacks.add(callback);
}