quick_blue icon indicating copy to clipboard operation
quick_blue copied to clipboard

Stream for host bluetooth hardware status?

Open flukejones opened this issue 3 years ago • 1 comments

Apologies, I don't know the underlying architecture or capabilities of each platform interface yet.

For my use-case isBluetoothAvailable isn't really enough information. I need a way to know if either the permission was denied, or if it's powered off.

Additionally, is there a plan for passing errors up the call chain? I spend most of my time in rust so error handling is explicit and obvious - throw keeps throwing me off guard.

flukejones avatar Jun 01 '22 09:06 flukejones

Stream for host bluetooth hardware status?

Do you want a Stream or listener for status change?

I need a way to know if either the permission was denied, or if it's powered off.

I'm not sure if each platform has a powered off status. Needs further investigation

Additionally, is there a plan for passing errors up the call chain

Could you specify which call? I'm not able to add all at once

Sunbreak avatar Jun 02 '22 01:06 Sunbreak