# Package com.codename1.location.spi

package com.codename1.location.spi

The service-provider interface a port implements to carry `LocationButton` onto a system-rendered location button.

Not part of the public API. Application code uses `LocationButton`, which finds the bridge through `com.codename1.ui.Display#getLocationButtonBridge()` and falls back to an ordinary Codename One button when the base implementation returns null -- which is every port that has no such control.

- Related Packages
  Package
  Description
  com.codename1.location
  Abstraction of location services (GPS/Geofencing etc.) providing user global positioning and monitoring over such changes both in the foreground and background.
- Interfaces
  Class
  Description
  LocationButtonBridge
  The platform half of `LocationButton`.