notmobile.go 502 B

123456789101112131415161718192021222324
  1. // Copyright 2015 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build (linux && !android) || (darwin && !arm && !arm64) || windows
  5. package sensor
  6. import (
  7. "errors"
  8. "time"
  9. )
  10. func enable(t Type, delay time.Duration) error {
  11. return errors.New("sensor: no sensors available")
  12. }
  13. func disable(t Type) error {
  14. return errors.New("sensor: no sensors available")
  15. }
  16. func destroy() error {
  17. return nil
  18. }