Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProvider ¶
func SetProvider(p Provider)
func StartSensor ¶
func StopSensor ¶
Types ¶
type Provider ¶
type Provider interface {
StartSensor(sensorType string) error
StopSensor(sensorType string) error
}
Provider is a native sensors backend. On mobile the shell registers one via SetProvider (SensorManager on Android, CoreMotion on iOS) and delivers readings through the bridge event channel. Desktop machines rarely have motion sensors; the JS bridge falls back to devicemotion/deviceorientation events where the WebView supports them.
Click to show internal directories.
Click to hide internal directories.