Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProvider ¶
func SetProvider(p Provider)
Types ¶
type Position ¶
type Position struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Accuracy float64 `json:"accuracy,omitempty"`
}
func GetCurrentPosition ¶
func GetCurrentPosition(opts PositionOptions) (*Position, error)
type PositionOptions ¶
type Provider ¶
type Provider interface {
GetCurrentPosition(opts PositionOptions) (*Position, error)
}
Provider is a native geolocation backend. On mobile the shell registers one via SetProvider (FusedLocationProvider / CLLocationManager); on desktop the built-in platform implementation is used when no provider is set.
Click to show internal directories.
Click to hide internal directories.