Documentation
¶
Overview ¶
Query location provider availability for geofencing use cases. Note: RequestGeofence requires a PendingIntent which cannot be fully serialized from a non-app context. This example demonstrates the prerequisite checks: listing providers and verifying GPS availability.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/geofence ./examples/geofence/ adb push build/geofence /data/local/tmp/ && adb shell /data/local/tmp/geofence
Click to show internal directories.
Click to hide internal directories.