Skip to content

Adding Stream<bool> isScanning method? #536

Open
@ElHyperion

Description

@ElHyperion

I need to keep track of the scanning status and I believe that adding methods such as Future<bool> getScanningState() and Stream<bool> observeScanningState() would help me and several other users of this library aswell. The flutter_blue library for example has a similar method (Stream<bool> get isScanning).

I still haven't been able to figure out how to properly wrap a Stream around the scanning state, which would also return the current value automatically when listening to it, and adding such methods to the library could ease the pain a lot, and I believe others would welcome it aswell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions