# Package com.codename1.nearby.spi

package com.codename1.nearby.spi

The service-provider interface each port implements to carry `com.codename1.nearby` onto the platform's short-range stacks.

Not part of the public API. Application code uses `Ranging`, `CompanionDevices` and `NearbyTransport`; those find the bridge through `com.codename1.ui.Display#getNearbyBridge()`, and the base implementation returns null so every port that implements nothing degrades identically.

- Related Packages
  Package
  Description
  com.codename1.nearby
  Nearby devices: how far away one is, which one is yours, and how to send it something.
  com.codename1.nearby.companion
  Companion-device association: telling the operating system which accessory is yours, and getting privileges back for it.
  com.codename1.nearby.ranging
  Ultra-wideband precision ranging: how far away another device is, and in which direction.
  com.codename1.nearby.transport
  Sending bytes and files to a device in the same room, with no access point, no pairing and no internet.
- Interfaces
  Class
  Description
  NearbyBridge
  Internal service-provider interface implemented by each platform port to carry the `com.codename1.nearby` API onto the native short-range stacks: Apple's Nearby Interaction, MultipeerConnectivity and AccessorySetupKit, Android's Jetpack UWB, Nearby Connections and `CompanionDeviceManager`.