getAdvertisingStateChange method

Stream<bool> getAdvertisingStateChange()

Returns Stream of booleans indicating if beacon is advertising.

After listening to this Stream, you'll be notified about changes in beacon advertising state. Returns true if beacon is advertising. See also: isAdvertising()

Implementation

Stream<bool> getAdvertisingStateChange() {
  return _eventChannel.receiveBroadcastStream().cast<bool>();
}