MCPcopy Create free account
hub / github.com/golang/mobile / Disable

Function Disable

exp/sensor/sensor.go:115–120  ·  view source on GitHub ↗

Disable disables to feed the manager with the specified sensor. Disable is not safe for concurrent use.

(t Type)

Source from the content-addressed store, hash-verified

113// Disable disables to feed the manager with the specified sensor.
114// Disable is not safe for concurrent use.
115func Disable(t Type) error {
116 if t < 0 || int(t) >= len(sensorNames) {
117 return errors.New("sensor: unknown sensor type")
118 }
119 return disable(t)
120}
121
122func validSender() error {
123 senderMu.Lock()

Callers

nothing calls this directly

Calls 2

NewMethod · 0.80
disableFunction · 0.70

Tested by

no test coverage detected