Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Separate adapter permission status from powered/enabled state #483

Copy link
Copy link

Description

@kdewald
Issue body actions

Right now Adapter::bluetooth_enabled() can conflate multiple states, especially on macOS where CoreBluetooth authorization and adapter power are both folded into one boolean. That makes it hard for applications to tell users whether they need to enable Bluetooth, grant permissions, or handle an unsupported/unknown state.

We should design a clearer cross-platform API that separates:

  • adapter powered/enabled state
  • Bluetooth permission/authorization state
  • unsupported/unavailable/unknown states where the OS exposes them

A reasonable shape might be a small adapter status enum/struct plus docs explaining which backends can report which states. Existing bluetooth_enabled() can remain as a compatibility convenience if needed, but new code should have a precise way to distinguish permissions from power.

This replaces the narrower macOS-specific report in #242.

-- Riley

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.