Skip to content

Answer NFC availability and location services through callbacks - #40

Merged
colemancda merged 16 commits into
masterfrom
feature/async-queries
Dec 3, 2026
Merged

colemancda merged 16 commits into
masterfrom
feature/async-queries

Conversation

@colemancda

Copy link
Copy Markdown
Member

NFCReader.availability(_:) and LocationManager.isLocationServicesEnabled(_:) answer through new callback interfaces, NFCAvailabilityCallback and LocationServicesCallback, instead of returning. AsyncNFCReader.availability and AsyncLocationManager.isLocationServicesEnabled are now async.

Linux asked neard and GeoClue over D-Bus for these and blocked the main thread up to 2 s; Core Location's locationServicesEnabled() mustn't be asked on the main thread either. The contracts are still version 1, so they change in place.

authorizationStatus() and setProximityMonitoringEnabled(_:) keep their signatures; their docs now say they never wait for a host's service.

Merge first: DarwinAppRuntime and LinuxAppRuntime's feature/async-queries build against this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant