github.com/SahandAslani/gomobile@v0.0.0-20210909130135-2cb2d44c09b2/exp/sensor/notmobile.go (about)

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