notmobile.go 554 B

12345678910111213141516171819202122232425
  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. // +build linux,!android darwin,!arm,!arm64 windows
  6. package sensor
  7. import (
  8. "errors"
  9. "time"
  10. )
  11. func enable(t Type, delay time.Duration) error {
  12. return errors.New("sensor: no sensors available")
  13. }
  14. func disable(t Type) error {
  15. return errors.New("sensor: no sensors available")
  16. }
  17. func destroy() error {
  18. return nil
  19. }