CancellationFlags will be used to prevent crashes during the shutdown of Nearby Connections from pending tasks taking too long during the shutdown period. By using CancellationFlags, we can prevent the retries occuring during the Shutdown by short-circuiting an in flight AttemptToConnect, and checking for Cancellation before retries. Because BluetoothClassic does not use futures, the short circuit only requires a check after ConnectToService, and returning an empty socket. PiperOrigin-RevId: 539755631
Nearby
Nearby is a collection of projects focused on connectivity that enable building cross-device experiences.
This is not an officially supported Google product.
Projects
Nearby Connections
A peer-to-peer networking API that allows apps to easily discover, connect to, and exchange data with nearby devices in real-time, regardless of network connectivity.
Fast Pair
Utilizes Bluetooth Low Energy (BLE) to discover nearby Bluetooth devices without using significant phone battery, enabling "magical" scenarios based on device proximity.
Nearby Presence
An extension to Nearby Connections that features an extensible identity model for authentication and restricted visibility, resource management for system health, and proximity detection through sensor fusion.
Nearby for Embedded Systems
A lightweight implementation of Fast Pair intended for embedded systems.
Contributing
We encourage you to contribute to Nearby! Please check out the Contributing to Nearby guide for guidelines about how to proceed.
License
Nearby is released under the Apache License 2.0