Documentation ¶
Overview ¶
Package sensor is to access (mobile phone) sensors like accelerometer, ambient light, geolocation, gyroscope etc.
Index ¶
- Constants
- type AbsoluteOrientationReadingValues
- type AbsoluteOrientationSensor
- type Accelerometer
- type AccelerometerReadingValues
- type AccelerometerSensorOptions
- type AmbientLightReadingValues
- type AmbientLightSensor
- type Coordinates
- func (_this *Coordinates) Accuracy() float64
- func (_this *Coordinates) Altitude() *float64
- func (_this *Coordinates) AltitudeAccuracy() *float64
- func (_this *Coordinates) Heading() *float64
- func (_this *Coordinates) JSValue() js.Value
- func (_this *Coordinates) Latitude() float64
- func (_this *Coordinates) Longitude() float64
- func (_this *Coordinates) Speed() *float64
- type DeviceAcceleration
- type DeviceAccelerationInit
- type DeviceMotionEvent
- type DeviceMotionEventInit
- type DeviceOrientationEvent
- type DeviceOrientationEventInit
- type DeviceRotationRate
- type DeviceRotationRateInit
- type Geolocation
- func (_this *Geolocation) ClearWatch(watchId int)
- func (_this *Geolocation) GetCurrentPosition(successCallback *PositionCallback, errorCallback *PositionErrorCallback, ...)
- func (_this *Geolocation) JSValue() js.Value
- func (_this *Geolocation) WatchPosition(successCallback *PositionCallback, errorCallback *PositionErrorCallback, ...) (_result int)
- type GeolocationReadingValues
- type GeolocationSensor
- func (_this *GeolocationSensor) Accuracy() *float64
- func (_this *GeolocationSensor) Altitude() *float64
- func (_this *GeolocationSensor) AltitudeAccuracy() *float64
- func (_this *GeolocationSensor) Heading() *float64
- func (_this *GeolocationSensor) Latitude() *float64
- func (_this *GeolocationSensor) Longitude() *float64
- func (_this *GeolocationSensor) Speed() *float64
- type GeolocationSensorOptions
- type GeolocationSensorReading
- type GravityReadingValues
- type GravitySensor
- type Gyroscope
- type GyroscopeReadingValues
- type GyroscopeSensorOptions
- type LinearAccelerationReadingValues
- type LinearAccelerationSensor
- type LocalCoordinateSystem
- type Magnetometer
- type MagnetometerReadingValues
- type MagnetometerSensorOptions
- type MockSensor
- type MockSensorConfiguration
- type MockSensorReadingValues
- type MockSensorType
- type OrientationSensor
- type OrientationSensorOptions
- type Position
- type PositionCallback
- type PositionCallbackFunc
- type PositionError
- type PositionErrorCallback
- type PositionErrorCallbackFunc
- type PositionOptions
- type PromiseGeolocationSensorReading
- func (_this *PromiseGeolocationSensorReading) Catch(onRejected *PromiseGeolocationSensorReadingOnRejected) (_result *PromiseGeolocationSensorReading)
- func (_this *PromiseGeolocationSensorReading) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseGeolocationSensorReading)
- func (_this *PromiseGeolocationSensorReading) JSValue() js.Value
- func (_this *PromiseGeolocationSensorReading) Then(onFulfilled *PromiseGeolocationSensorReadingOnFulfilled, ...) (_result *PromiseGeolocationSensorReading)
- type PromiseGeolocationSensorReadingOnFulfilled
- type PromiseGeolocationSensorReadingOnFulfilledFunc
- type PromiseGeolocationSensorReadingOnRejected
- type PromiseGeolocationSensorReadingOnRejectedFunc
- type ProximityReadingValues
- type ProximitySensor
- type ReadOptions
- type RelativeOrientationReadingValues
- type RelativeOrientationSensor
- type Sensor
- func (_this *Sensor) Activated() bool
- func (_this *Sensor) AddEventActivate(listener func(event *domcore.Event, currentTarget *Sensor)) js.Func
- func (_this *Sensor) AddEventError(listener func(event *SensorErrorEvent, currentTarget *Sensor)) js.Func
- func (_this *Sensor) AddEventReading(listener func(event *domcore.Event, currentTarget *Sensor)) js.Func
- func (_this *Sensor) HasReading() bool
- func (_this *Sensor) OnActivate() domcore.EventHandlerFunc
- func (_this *Sensor) OnError() domcore.EventHandlerFunc
- func (_this *Sensor) OnReading() domcore.EventHandlerFunc
- func (_this *Sensor) SetOnActivate(listener func(event *domcore.Event, currentTarget *Sensor)) js.Func
- func (_this *Sensor) SetOnError(listener func(event *SensorErrorEvent, currentTarget *Sensor)) js.Func
- func (_this *Sensor) SetOnReading(listener func(event *domcore.Event, currentTarget *Sensor)) js.Func
- func (_this *Sensor) Start()
- func (_this *Sensor) Stop()
- func (_this *Sensor) Timestamp() *float64
- type SensorErrorEvent
- type SensorErrorEventInit
- type SensorOptions
- type UncalibratedMagnetometer
- func (_this *UncalibratedMagnetometer) X() *float64
- func (_this *UncalibratedMagnetometer) XBias() *float64
- func (_this *UncalibratedMagnetometer) Y() *float64
- func (_this *UncalibratedMagnetometer) YBias() *float64
- func (_this *UncalibratedMagnetometer) Z() *float64
- func (_this *UncalibratedMagnetometer) ZBias() *float64
- type UncalibratedMagnetometerReadingValues
- type Union
Constants ¶
const ( PERMISSIONDENIED_PositionError int = 1 POSITIONUNAVAILABLE_PositionError int = 2 TIMEOUT_PositionError int = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbsoluteOrientationReadingValues ¶
type AbsoluteOrientationReadingValues struct {
Quaternion *javascript.FrozenArray
}
dictionary: AbsoluteOrientationReadingValues
func AbsoluteOrientationReadingValuesFromJS ¶
func AbsoluteOrientationReadingValuesFromJS(value js.Value) *AbsoluteOrientationReadingValues
AbsoluteOrientationReadingValuesFromJS is allocating a new AbsoluteOrientationReadingValues object and copy all values in the value javascript object.
func (*AbsoluteOrientationReadingValues) JSValue ¶
func (_this *AbsoluteOrientationReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AbsoluteOrientationSensor ¶
type AbsoluteOrientationSensor struct {
OrientationSensor
}
class: AbsoluteOrientationSensor
func AbsoluteOrientationSensorFromJS ¶
func AbsoluteOrientationSensorFromJS(value js.Value) *AbsoluteOrientationSensor
AbsoluteOrientationSensorFromJS is casting a js.Value into AbsoluteOrientationSensor.
func AbsoluteOrientationSensorFromWrapper ¶
func AbsoluteOrientationSensorFromWrapper(input core.Wrapper) *AbsoluteOrientationSensor
AbsoluteOrientationSensorFromJS is casting from something that holds a js.Value into AbsoluteOrientationSensor.
func NewAbsoluteOrientationSensor ¶
func NewAbsoluteOrientationSensor(sensorOptions *OrientationSensorOptions) (_result *AbsoluteOrientationSensor)
type Accelerometer ¶
type Accelerometer struct {
Sensor
}
class: Accelerometer
func AccelerometerFromJS ¶
func AccelerometerFromJS(value js.Value) *Accelerometer
AccelerometerFromJS is casting a js.Value into Accelerometer.
func AccelerometerFromWrapper ¶
func AccelerometerFromWrapper(input core.Wrapper) *Accelerometer
AccelerometerFromJS is casting from something that holds a js.Value into Accelerometer.
func NewAccelerometer ¶
func NewAccelerometer(options *AccelerometerSensorOptions) (_result *Accelerometer)
func (*Accelerometer) X ¶
func (_this *Accelerometer) X() *float64
X returning attribute 'x' with type float64 (idl: double).
func (*Accelerometer) Y ¶
func (_this *Accelerometer) Y() *float64
Y returning attribute 'y' with type float64 (idl: double).
func (*Accelerometer) Z ¶
func (_this *Accelerometer) Z() *float64
Z returning attribute 'z' with type float64 (idl: double).
type AccelerometerReadingValues ¶
dictionary: AccelerometerReadingValues
func AccelerometerReadingValuesFromJS ¶
func AccelerometerReadingValuesFromJS(value js.Value) *AccelerometerReadingValues
AccelerometerReadingValuesFromJS is allocating a new AccelerometerReadingValues object and copy all values in the value javascript object.
func (*AccelerometerReadingValues) JSValue ¶
func (_this *AccelerometerReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AccelerometerSensorOptions ¶
type AccelerometerSensorOptions struct { Frequency float64 ReferenceFrame LocalCoordinateSystem }
dictionary: AccelerometerSensorOptions
func AccelerometerSensorOptionsFromJS ¶
func AccelerometerSensorOptionsFromJS(value js.Value) *AccelerometerSensorOptions
AccelerometerSensorOptionsFromJS is allocating a new AccelerometerSensorOptions object and copy all values in the value javascript object.
func (*AccelerometerSensorOptions) JSValue ¶
func (_this *AccelerometerSensorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AmbientLightReadingValues ¶
type AmbientLightReadingValues struct {
Illuminance *float64
}
dictionary: AmbientLightReadingValues
func AmbientLightReadingValuesFromJS ¶
func AmbientLightReadingValuesFromJS(value js.Value) *AmbientLightReadingValues
AmbientLightReadingValuesFromJS is allocating a new AmbientLightReadingValues object and copy all values in the value javascript object.
func (*AmbientLightReadingValues) JSValue ¶
func (_this *AmbientLightReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type AmbientLightSensor ¶
type AmbientLightSensor struct {
Sensor
}
class: AmbientLightSensor
func AmbientLightSensorFromJS ¶
func AmbientLightSensorFromJS(value js.Value) *AmbientLightSensor
AmbientLightSensorFromJS is casting a js.Value into AmbientLightSensor.
func AmbientLightSensorFromWrapper ¶
func AmbientLightSensorFromWrapper(input core.Wrapper) *AmbientLightSensor
AmbientLightSensorFromJS is casting from something that holds a js.Value into AmbientLightSensor.
func NewAmbientLightSensor ¶
func NewAmbientLightSensor(sensorOptions *SensorOptions) (_result *AmbientLightSensor)
func (*AmbientLightSensor) Illuminance ¶
func (_this *AmbientLightSensor) Illuminance() *float64
Illuminance returning attribute 'illuminance' with type float64 (idl: double).
type Coordinates ¶
class: Coordinates
func CoordinatesFromJS ¶
func CoordinatesFromJS(value js.Value) *Coordinates
CoordinatesFromJS is casting a js.Value into Coordinates.
func CoordinatesFromWrapper ¶
func CoordinatesFromWrapper(input core.Wrapper) *Coordinates
CoordinatesFromJS is casting from something that holds a js.Value into Coordinates.
func (*Coordinates) Accuracy ¶
func (_this *Coordinates) Accuracy() float64
Accuracy returning attribute 'accuracy' with type float64 (idl: double).
func (*Coordinates) Altitude ¶
func (_this *Coordinates) Altitude() *float64
Altitude returning attribute 'altitude' with type float64 (idl: double).
func (*Coordinates) AltitudeAccuracy ¶
func (_this *Coordinates) AltitudeAccuracy() *float64
AltitudeAccuracy returning attribute 'altitudeAccuracy' with type float64 (idl: double).
func (*Coordinates) Heading ¶
func (_this *Coordinates) Heading() *float64
Heading returning attribute 'heading' with type float64 (idl: double).
func (*Coordinates) JSValue ¶
func (_this *Coordinates) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*Coordinates) Latitude ¶
func (_this *Coordinates) Latitude() float64
Latitude returning attribute 'latitude' with type float64 (idl: double).
func (*Coordinates) Longitude ¶
func (_this *Coordinates) Longitude() float64
Longitude returning attribute 'longitude' with type float64 (idl: double).
func (*Coordinates) Speed ¶
func (_this *Coordinates) Speed() *float64
Speed returning attribute 'speed' with type float64 (idl: double).
type DeviceAcceleration ¶
type DeviceAcceleration struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: DeviceAcceleration
func DeviceAccelerationFromJS ¶
func DeviceAccelerationFromJS(value js.Value) *DeviceAcceleration
DeviceAccelerationFromJS is casting a js.Value into DeviceAcceleration.
func DeviceAccelerationFromWrapper ¶
func DeviceAccelerationFromWrapper(input core.Wrapper) *DeviceAcceleration
DeviceAccelerationFromJS is casting from something that holds a js.Value into DeviceAcceleration.
func (*DeviceAcceleration) JSValue ¶
func (_this *DeviceAcceleration) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*DeviceAcceleration) X ¶
func (_this *DeviceAcceleration) X() *float64
X returning attribute 'x' with type float64 (idl: double).
func (*DeviceAcceleration) Y ¶
func (_this *DeviceAcceleration) Y() *float64
Y returning attribute 'y' with type float64 (idl: double).
func (*DeviceAcceleration) Z ¶
func (_this *DeviceAcceleration) Z() *float64
Z returning attribute 'z' with type float64 (idl: double).
type DeviceAccelerationInit ¶
dictionary: DeviceAccelerationInit
func DeviceAccelerationInitFromJS ¶
func DeviceAccelerationInitFromJS(value js.Value) *DeviceAccelerationInit
DeviceAccelerationInitFromJS is allocating a new DeviceAccelerationInit object and copy all values in the value javascript object.
func (*DeviceAccelerationInit) JSValue ¶
func (_this *DeviceAccelerationInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DeviceMotionEvent ¶
class: DeviceMotionEvent
func DeviceMotionEventFromJS ¶
func DeviceMotionEventFromJS(value js.Value) *DeviceMotionEvent
DeviceMotionEventFromJS is casting a js.Value into DeviceMotionEvent.
func DeviceMotionEventFromWrapper ¶
func DeviceMotionEventFromWrapper(input core.Wrapper) *DeviceMotionEvent
DeviceMotionEventFromJS is casting from something that holds a js.Value into DeviceMotionEvent.
func NewDeviceMotionEvent ¶
func NewDeviceMotionEvent(_type string, eventInitDict *DeviceMotionEventInit) (_result *DeviceMotionEvent)
func (*DeviceMotionEvent) Acceleration ¶
func (_this *DeviceMotionEvent) Acceleration() *DeviceAcceleration
Acceleration returning attribute 'acceleration' with type DeviceAcceleration (idl: DeviceAcceleration).
func (*DeviceMotionEvent) AccelerationIncludingGravity ¶
func (_this *DeviceMotionEvent) AccelerationIncludingGravity() *DeviceAcceleration
AccelerationIncludingGravity returning attribute 'accelerationIncludingGravity' with type DeviceAcceleration (idl: DeviceAcceleration).
func (*DeviceMotionEvent) Interval ¶
func (_this *DeviceMotionEvent) Interval() float64
Interval returning attribute 'interval' with type float64 (idl: double).
func (*DeviceMotionEvent) RotationRate ¶
func (_this *DeviceMotionEvent) RotationRate() *DeviceRotationRate
RotationRate returning attribute 'rotationRate' with type DeviceRotationRate (idl: DeviceRotationRate).
type DeviceMotionEventInit ¶
type DeviceMotionEventInit struct { Bubbles bool Cancelable bool Composed bool Acceleration *DeviceAccelerationInit AccelerationIncludingGravity *DeviceAccelerationInit RotationRate *DeviceRotationRateInit Interval float64 }
dictionary: DeviceMotionEventInit
func DeviceMotionEventInitFromJS ¶
func DeviceMotionEventInitFromJS(value js.Value) *DeviceMotionEventInit
DeviceMotionEventInitFromJS is allocating a new DeviceMotionEventInit object and copy all values in the value javascript object.
func (*DeviceMotionEventInit) JSValue ¶
func (_this *DeviceMotionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DeviceOrientationEvent ¶
class: DeviceOrientationEvent
func DeviceOrientationEventFromJS ¶
func DeviceOrientationEventFromJS(value js.Value) *DeviceOrientationEvent
DeviceOrientationEventFromJS is casting a js.Value into DeviceOrientationEvent.
func DeviceOrientationEventFromWrapper ¶
func DeviceOrientationEventFromWrapper(input core.Wrapper) *DeviceOrientationEvent
DeviceOrientationEventFromJS is casting from something that holds a js.Value into DeviceOrientationEvent.
func NewDeviceOrientationEvent ¶
func NewDeviceOrientationEvent(_type string, eventInitDict *DeviceOrientationEventInit) (_result *DeviceOrientationEvent)
func (*DeviceOrientationEvent) Absolute ¶
func (_this *DeviceOrientationEvent) Absolute() bool
Absolute returning attribute 'absolute' with type bool (idl: boolean).
func (*DeviceOrientationEvent) Alpha ¶
func (_this *DeviceOrientationEvent) Alpha() *float64
Alpha returning attribute 'alpha' with type float64 (idl: double).
func (*DeviceOrientationEvent) Beta ¶
func (_this *DeviceOrientationEvent) Beta() *float64
Beta returning attribute 'beta' with type float64 (idl: double).
func (*DeviceOrientationEvent) Gamma ¶
func (_this *DeviceOrientationEvent) Gamma() *float64
Gamma returning attribute 'gamma' with type float64 (idl: double).
type DeviceOrientationEventInit ¶
type DeviceOrientationEventInit struct { Bubbles bool Cancelable bool Composed bool Alpha *float64 Beta *float64 Gamma *float64 Absolute bool }
dictionary: DeviceOrientationEventInit
func DeviceOrientationEventInitFromJS ¶
func DeviceOrientationEventInitFromJS(value js.Value) *DeviceOrientationEventInit
DeviceOrientationEventInitFromJS is allocating a new DeviceOrientationEventInit object and copy all values in the value javascript object.
func (*DeviceOrientationEventInit) JSValue ¶
func (_this *DeviceOrientationEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type DeviceRotationRate ¶
type DeviceRotationRate struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: DeviceRotationRate
func DeviceRotationRateFromJS ¶
func DeviceRotationRateFromJS(value js.Value) *DeviceRotationRate
DeviceRotationRateFromJS is casting a js.Value into DeviceRotationRate.
func DeviceRotationRateFromWrapper ¶
func DeviceRotationRateFromWrapper(input core.Wrapper) *DeviceRotationRate
DeviceRotationRateFromJS is casting from something that holds a js.Value into DeviceRotationRate.
func (*DeviceRotationRate) Alpha ¶
func (_this *DeviceRotationRate) Alpha() *float64
Alpha returning attribute 'alpha' with type float64 (idl: double).
func (*DeviceRotationRate) Beta ¶
func (_this *DeviceRotationRate) Beta() *float64
Beta returning attribute 'beta' with type float64 (idl: double).
func (*DeviceRotationRate) Gamma ¶
func (_this *DeviceRotationRate) Gamma() *float64
Gamma returning attribute 'gamma' with type float64 (idl: double).
func (*DeviceRotationRate) JSValue ¶
func (_this *DeviceRotationRate) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type DeviceRotationRateInit ¶
dictionary: DeviceRotationRateInit
func DeviceRotationRateInitFromJS ¶
func DeviceRotationRateInitFromJS(value js.Value) *DeviceRotationRateInit
DeviceRotationRateInitFromJS is allocating a new DeviceRotationRateInit object and copy all values in the value javascript object.
func (*DeviceRotationRateInit) JSValue ¶
func (_this *DeviceRotationRateInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Geolocation ¶
class: Geolocation
func GeolocationFromJS ¶
func GeolocationFromJS(value js.Value) *Geolocation
GeolocationFromJS is casting a js.Value into Geolocation.
func GeolocationFromWrapper ¶
func GeolocationFromWrapper(input core.Wrapper) *Geolocation
GeolocationFromJS is casting from something that holds a js.Value into Geolocation.
func (*Geolocation) ClearWatch ¶
func (_this *Geolocation) ClearWatch(watchId int)
func (*Geolocation) GetCurrentPosition ¶
func (_this *Geolocation) GetCurrentPosition(successCallback *PositionCallback, errorCallback *PositionErrorCallback, options *PositionOptions)
func (*Geolocation) JSValue ¶
func (_this *Geolocation) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*Geolocation) WatchPosition ¶
func (_this *Geolocation) WatchPosition(successCallback *PositionCallback, errorCallback *PositionErrorCallback, options *PositionOptions) (_result int)
type GeolocationReadingValues ¶
type GeolocationReadingValues struct { Latitude *float64 Longitude *float64 Altitude *float64 Accuracy *float64 AltitudeAccuracy *float64 Heading *float64 Speed *float64 }
dictionary: GeolocationReadingValues
func GeolocationReadingValuesFromJS ¶
func GeolocationReadingValuesFromJS(value js.Value) *GeolocationReadingValues
GeolocationReadingValuesFromJS is allocating a new GeolocationReadingValues object and copy all values in the value javascript object.
func (*GeolocationReadingValues) JSValue ¶
func (_this *GeolocationReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type GeolocationSensor ¶
type GeolocationSensor struct {
Sensor
}
class: GeolocationSensor
func GeolocationSensorFromJS ¶
func GeolocationSensorFromJS(value js.Value) *GeolocationSensor
GeolocationSensorFromJS is casting a js.Value into GeolocationSensor.
func GeolocationSensorFromWrapper ¶
func GeolocationSensorFromWrapper(input core.Wrapper) *GeolocationSensor
GeolocationSensorFromJS is casting from something that holds a js.Value into GeolocationSensor.
func NewGeolocationSensor ¶
func NewGeolocationSensor(options *GeolocationSensorOptions) (_result *GeolocationSensor)
func (*GeolocationSensor) Accuracy ¶
func (_this *GeolocationSensor) Accuracy() *float64
Accuracy returning attribute 'accuracy' with type float64 (idl: unrestricted double).
func (*GeolocationSensor) Altitude ¶
func (_this *GeolocationSensor) Altitude() *float64
Altitude returning attribute 'altitude' with type float64 (idl: unrestricted double).
func (*GeolocationSensor) AltitudeAccuracy ¶
func (_this *GeolocationSensor) AltitudeAccuracy() *float64
AltitudeAccuracy returning attribute 'altitudeAccuracy' with type float64 (idl: unrestricted double).
func (*GeolocationSensor) Heading ¶
func (_this *GeolocationSensor) Heading() *float64
Heading returning attribute 'heading' with type float64 (idl: unrestricted double).
func (*GeolocationSensor) Latitude ¶
func (_this *GeolocationSensor) Latitude() *float64
Latitude returning attribute 'latitude' with type float64 (idl: unrestricted double).
func (*GeolocationSensor) Longitude ¶
func (_this *GeolocationSensor) Longitude() *float64
Longitude returning attribute 'longitude' with type float64 (idl: unrestricted double).
func (*GeolocationSensor) Speed ¶
func (_this *GeolocationSensor) Speed() *float64
Speed returning attribute 'speed' with type float64 (idl: unrestricted double).
type GeolocationSensorOptions ¶
type GeolocationSensorOptions struct {
Frequency float64
}
dictionary: GeolocationSensorOptions
func GeolocationSensorOptionsFromJS ¶
func GeolocationSensorOptionsFromJS(value js.Value) *GeolocationSensorOptions
GeolocationSensorOptionsFromJS is allocating a new GeolocationSensorOptions object and copy all values in the value javascript object.
func (*GeolocationSensorOptions) JSValue ¶
func (_this *GeolocationSensorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type GeolocationSensorReading ¶
type GeolocationSensorReading struct { Timestamp *float64 Latitude *float64 Longitude *float64 Altitude *float64 Accuracy *float64 AltitudeAccuracy *float64 Heading *float64 Speed *float64 }
dictionary: GeolocationSensorReading
func GeolocationSensorReadingFromJS ¶
func GeolocationSensorReadingFromJS(value js.Value) *GeolocationSensorReading
GeolocationSensorReadingFromJS is allocating a new GeolocationSensorReading object and copy all values in the value javascript object.
func (*GeolocationSensorReading) JSValue ¶
func (_this *GeolocationSensorReading) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type GravityReadingValues ¶
dictionary: GravityReadingValues
func GravityReadingValuesFromJS ¶
func GravityReadingValuesFromJS(value js.Value) *GravityReadingValues
GravityReadingValuesFromJS is allocating a new GravityReadingValues object and copy all values in the value javascript object.
func (*GravityReadingValues) JSValue ¶
func (_this *GravityReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type GravitySensor ¶
type GravitySensor struct {
Accelerometer
}
class: GravitySensor
func GravitySensorFromJS ¶
func GravitySensorFromJS(value js.Value) *GravitySensor
GravitySensorFromJS is casting a js.Value into GravitySensor.
func GravitySensorFromWrapper ¶
func GravitySensorFromWrapper(input core.Wrapper) *GravitySensor
GravitySensorFromJS is casting from something that holds a js.Value into GravitySensor.
func NewGravitySensor ¶
func NewGravitySensor(options *AccelerometerSensorOptions) (_result *GravitySensor)
type Gyroscope ¶
type Gyroscope struct {
Sensor
}
class: Gyroscope
func GyroscopeFromJS ¶
GyroscopeFromJS is casting a js.Value into Gyroscope.
func GyroscopeFromWrapper ¶
GyroscopeFromJS is casting from something that holds a js.Value into Gyroscope.
func NewGyroscope ¶
func NewGyroscope(sensorOptions *GyroscopeSensorOptions) (_result *Gyroscope)
type GyroscopeReadingValues ¶
dictionary: GyroscopeReadingValues
func GyroscopeReadingValuesFromJS ¶
func GyroscopeReadingValuesFromJS(value js.Value) *GyroscopeReadingValues
GyroscopeReadingValuesFromJS is allocating a new GyroscopeReadingValues object and copy all values in the value javascript object.
func (*GyroscopeReadingValues) JSValue ¶
func (_this *GyroscopeReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type GyroscopeSensorOptions ¶
type GyroscopeSensorOptions struct { Frequency float64 ReferenceFrame LocalCoordinateSystem }
dictionary: GyroscopeSensorOptions
func GyroscopeSensorOptionsFromJS ¶
func GyroscopeSensorOptionsFromJS(value js.Value) *GyroscopeSensorOptions
GyroscopeSensorOptionsFromJS is allocating a new GyroscopeSensorOptions object and copy all values in the value javascript object.
func (*GyroscopeSensorOptions) JSValue ¶
func (_this *GyroscopeSensorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type LinearAccelerationReadingValues ¶
dictionary: LinearAccelerationReadingValues
func LinearAccelerationReadingValuesFromJS ¶
func LinearAccelerationReadingValuesFromJS(value js.Value) *LinearAccelerationReadingValues
LinearAccelerationReadingValuesFromJS is allocating a new LinearAccelerationReadingValues object and copy all values in the value javascript object.
func (*LinearAccelerationReadingValues) JSValue ¶
func (_this *LinearAccelerationReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type LinearAccelerationSensor ¶
type LinearAccelerationSensor struct {
Accelerometer
}
class: LinearAccelerationSensor
func LinearAccelerationSensorFromJS ¶
func LinearAccelerationSensorFromJS(value js.Value) *LinearAccelerationSensor
LinearAccelerationSensorFromJS is casting a js.Value into LinearAccelerationSensor.
func LinearAccelerationSensorFromWrapper ¶
func LinearAccelerationSensorFromWrapper(input core.Wrapper) *LinearAccelerationSensor
LinearAccelerationSensorFromJS is casting from something that holds a js.Value into LinearAccelerationSensor.
func NewLinearAccelerationSensor ¶
func NewLinearAccelerationSensor(options *AccelerometerSensorOptions) (_result *LinearAccelerationSensor)
type LocalCoordinateSystem ¶
type LocalCoordinateSystem int
enum: GenericSensorLocalCoordinateSystem
const ( CoordinateSystemDevice LocalCoordinateSystem = iota CoordinateSystemScreen )
func LocalCoordinateSystemFromJS ¶
func LocalCoordinateSystemFromJS(value js.Value) LocalCoordinateSystem
LocalCoordinateSystemFromJS is converting a javascript value into a LocalCoordinateSystem enum value.
func (*LocalCoordinateSystem) JSValue ¶
func (this *LocalCoordinateSystem) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (LocalCoordinateSystem) Value ¶
func (this LocalCoordinateSystem) Value() string
Value is converting this into javascript defined string value
type Magnetometer ¶
type Magnetometer struct {
Sensor
}
class: Magnetometer
func MagnetometerFromJS ¶
func MagnetometerFromJS(value js.Value) *Magnetometer
MagnetometerFromJS is casting a js.Value into Magnetometer.
func MagnetometerFromWrapper ¶
func MagnetometerFromWrapper(input core.Wrapper) *Magnetometer
MagnetometerFromJS is casting from something that holds a js.Value into Magnetometer.
func NewMagnetometer ¶
func NewMagnetometer(sensorOptions *MagnetometerSensorOptions) (_result *Magnetometer)
func (*Magnetometer) X ¶
func (_this *Magnetometer) X() *float64
X returning attribute 'x' with type float64 (idl: double).
func (*Magnetometer) Y ¶
func (_this *Magnetometer) Y() *float64
Y returning attribute 'y' with type float64 (idl: double).
func (*Magnetometer) Z ¶
func (_this *Magnetometer) Z() *float64
Z returning attribute 'z' with type float64 (idl: double).
type MagnetometerReadingValues ¶
dictionary: MagnetometerReadingValues
func MagnetometerReadingValuesFromJS ¶
func MagnetometerReadingValuesFromJS(value js.Value) *MagnetometerReadingValues
MagnetometerReadingValuesFromJS is allocating a new MagnetometerReadingValues object and copy all values in the value javascript object.
func (*MagnetometerReadingValues) JSValue ¶
func (_this *MagnetometerReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MagnetometerSensorOptions ¶
type MagnetometerSensorOptions struct { Frequency float64 ReferenceFrame LocalCoordinateSystem }
dictionary: MagnetometerSensorOptions
func MagnetometerSensorOptionsFromJS ¶
func MagnetometerSensorOptionsFromJS(value js.Value) *MagnetometerSensorOptions
MagnetometerSensorOptionsFromJS is allocating a new MagnetometerSensorOptions object and copy all values in the value javascript object.
func (*MagnetometerSensorOptions) JSValue ¶
func (_this *MagnetometerSensorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MockSensor ¶
type MockSensor struct { MaxSamplingFrequency float64 MinSamplingFrequency float64 RequestedSamplingFrequency float64 }
dictionary: MockSensor
func MockSensorFromJS ¶
func MockSensorFromJS(value js.Value) *MockSensor
MockSensorFromJS is allocating a new MockSensor object and copy all values in the value javascript object.
func (*MockSensor) JSValue ¶
func (_this *MockSensor) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MockSensorConfiguration ¶
type MockSensorConfiguration struct { MockSensorType MockSensorType Connected bool MaxSamplingFrequency *float64 MinSamplingFrequency *float64 }
dictionary: MockSensorConfiguration
func MockSensorConfigurationFromJS ¶
func MockSensorConfigurationFromJS(value js.Value) *MockSensorConfiguration
MockSensorConfigurationFromJS is allocating a new MockSensorConfiguration object and copy all values in the value javascript object.
func (*MockSensorConfiguration) JSValue ¶
func (_this *MockSensorConfiguration) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MockSensorReadingValues ¶
type MockSensorReadingValues struct { }
dictionary: MockSensorReadingValues
func MockSensorReadingValuesFromJS ¶
func MockSensorReadingValuesFromJS(value js.Value) *MockSensorReadingValues
MockSensorReadingValuesFromJS is allocating a new MockSensorReadingValues object and copy all values in the value javascript object.
func (*MockSensorReadingValues) JSValue ¶
func (_this *MockSensorReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MockSensorType ¶
type MockSensorType int
enum: MockSensorType
const ( AmbientLightMockSensorType MockSensorType = iota AccelerometerMockSensorType LinearAccelerationMockSensorType GravityMockSensorType GyroscopeMockSensorType MagnetometerMockSensorType UncalibratedMagnetometerMockSensorType AbsoluteOrientationMockSensorType RelativeOrientationMockSensorType GeolocationMockSensorType ProximityMockSensorType )
func MockSensorTypeFromJS ¶
func MockSensorTypeFromJS(value js.Value) MockSensorType
MockSensorTypeFromJS is converting a javascript value into a MockSensorType enum value.
func (*MockSensorType) JSValue ¶
func (this *MockSensorType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (MockSensorType) Value ¶
func (this MockSensorType) Value() string
Value is converting this into javascript defined string value
type OrientationSensor ¶
type OrientationSensor struct {
Sensor
}
class: OrientationSensor
func OrientationSensorFromJS ¶
func OrientationSensorFromJS(value js.Value) *OrientationSensor
OrientationSensorFromJS is casting a js.Value into OrientationSensor.
func OrientationSensorFromWrapper ¶
func OrientationSensorFromWrapper(input core.Wrapper) *OrientationSensor
OrientationSensorFromJS is casting from something that holds a js.Value into OrientationSensor.
func (*OrientationSensor) PopulateMatrix ¶
func (_this *OrientationSensor) PopulateMatrix(targetMatrix *Union)
func (*OrientationSensor) Quaternion ¶
func (_this *OrientationSensor) Quaternion() *javascript.FrozenArray
Quaternion returning attribute 'quaternion' with type javascript.FrozenArray (idl: FrozenArray).
type OrientationSensorOptions ¶
type OrientationSensorOptions struct { Frequency float64 ReferenceFrame LocalCoordinateSystem }
dictionary: OrientationSensorOptions
func OrientationSensorOptionsFromJS ¶
func OrientationSensorOptionsFromJS(value js.Value) *OrientationSensorOptions
OrientationSensorOptionsFromJS is allocating a new OrientationSensorOptions object and copy all values in the value javascript object.
func (*OrientationSensorOptions) JSValue ¶
func (_this *OrientationSensorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Position ¶
class: Position
func PositionFromJS ¶
PositionFromJS is casting a js.Value into Position.
func PositionFromWrapper ¶
PositionFromJS is casting from something that holds a js.Value into Position.
func (*Position) Coords ¶
func (_this *Position) Coords() *Coordinates
Coords returning attribute 'coords' with type Coordinates (idl: Coordinates).
type PositionCallback ¶
PositionCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PositionCallbackToJS ¶
func PositionCallbackToJS(callback PositionCallbackFunc) *PositionCallback
type PositionCallbackFunc ¶
type PositionCallbackFunc func(position *Position)
callback: PositionCallback
func PositionCallbackFromJS ¶
func PositionCallbackFromJS(_value js.Value) PositionCallbackFunc
type PositionError ¶
class: PositionError
func PositionErrorFromJS ¶
func PositionErrorFromJS(value js.Value) *PositionError
PositionErrorFromJS is casting a js.Value into PositionError.
func PositionErrorFromWrapper ¶
func PositionErrorFromWrapper(input core.Wrapper) *PositionError
PositionErrorFromJS is casting from something that holds a js.Value into PositionError.
func (*PositionError) Code ¶
func (_this *PositionError) Code() int
Code returning attribute 'code' with type int (idl: unsigned short).
func (*PositionError) JSValue ¶
func (_this *PositionError) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PositionError) Message ¶
func (_this *PositionError) Message() string
Message returning attribute 'message' with type string (idl: DOMString).
type PositionErrorCallback ¶
PositionErrorCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PositionErrorCallbackToJS ¶
func PositionErrorCallbackToJS(callback PositionErrorCallbackFunc) *PositionErrorCallback
type PositionErrorCallbackFunc ¶
type PositionErrorCallbackFunc func(positionError *PositionError)
callback: PositionErrorCallback
func PositionErrorCallbackFromJS ¶
func PositionErrorCallbackFromJS(_value js.Value) PositionErrorCallbackFunc
type PositionOptions ¶
dictionary: PositionOptions
func PositionOptionsFromJS ¶
func PositionOptionsFromJS(value js.Value) *PositionOptions
PositionOptionsFromJS is allocating a new PositionOptions object and copy all values in the value javascript object.
func (*PositionOptions) JSValue ¶
func (_this *PositionOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type PromiseGeolocationSensorReading ¶
type PromiseGeolocationSensorReading struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseGeolocationSensorReadingFromJS ¶
func PromiseGeolocationSensorReadingFromJS(value js.Value) *PromiseGeolocationSensorReading
PromiseGeolocationSensorReadingFromJS is casting a js.Value into PromiseGeolocationSensorReading.
func PromiseGeolocationSensorReadingFromWrapper ¶
func PromiseGeolocationSensorReadingFromWrapper(input core.Wrapper) *PromiseGeolocationSensorReading
PromiseGeolocationSensorReadingFromJS is casting from something that holds a js.Value into PromiseGeolocationSensorReading.
func Read ¶
func Read(readOptions *ReadOptions) (_result *PromiseGeolocationSensorReading)
func (*PromiseGeolocationSensorReading) Catch ¶
func (_this *PromiseGeolocationSensorReading) Catch(onRejected *PromiseGeolocationSensorReadingOnRejected) (_result *PromiseGeolocationSensorReading)
func (*PromiseGeolocationSensorReading) Finally ¶
func (_this *PromiseGeolocationSensorReading) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseGeolocationSensorReading)
func (*PromiseGeolocationSensorReading) JSValue ¶
func (_this *PromiseGeolocationSensorReading) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseGeolocationSensorReading) Then ¶
func (_this *PromiseGeolocationSensorReading) Then(onFulfilled *PromiseGeolocationSensorReadingOnFulfilled, onRejected *PromiseGeolocationSensorReadingOnRejected) (_result *PromiseGeolocationSensorReading)
type PromiseGeolocationSensorReadingOnFulfilled ¶
PromiseGeolocationSensorReadingOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseGeolocationSensorReadingOnFulfilledToJS ¶
func PromiseGeolocationSensorReadingOnFulfilledToJS(callback PromiseGeolocationSensorReadingOnFulfilledFunc) *PromiseGeolocationSensorReadingOnFulfilled
type PromiseGeolocationSensorReadingOnFulfilledFunc ¶
type PromiseGeolocationSensorReadingOnFulfilledFunc func(value *GeolocationSensorReading)
callback: PromiseTemplateOnFulfilled
func PromiseGeolocationSensorReadingOnFulfilledFromJS ¶
func PromiseGeolocationSensorReadingOnFulfilledFromJS(_value js.Value) PromiseGeolocationSensorReadingOnFulfilledFunc
type PromiseGeolocationSensorReadingOnRejected ¶
PromiseGeolocationSensorReadingOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseGeolocationSensorReadingOnRejectedToJS ¶
func PromiseGeolocationSensorReadingOnRejectedToJS(callback PromiseGeolocationSensorReadingOnRejectedFunc) *PromiseGeolocationSensorReadingOnRejected
type PromiseGeolocationSensorReadingOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseGeolocationSensorReadingOnRejectedFromJS ¶
func PromiseGeolocationSensorReadingOnRejectedFromJS(_value js.Value) PromiseGeolocationSensorReadingOnRejectedFunc
type ProximityReadingValues ¶
dictionary: ProximityReadingValues
func ProximityReadingValuesFromJS ¶
func ProximityReadingValuesFromJS(value js.Value) *ProximityReadingValues
ProximityReadingValuesFromJS is allocating a new ProximityReadingValues object and copy all values in the value javascript object.
func (*ProximityReadingValues) JSValue ¶
func (_this *ProximityReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type ProximitySensor ¶
type ProximitySensor struct {
Sensor
}
class: ProximitySensor
func NewProximitySensor ¶
func NewProximitySensor(sensorOptions *SensorOptions) (_result *ProximitySensor)
func ProximitySensorFromJS ¶
func ProximitySensorFromJS(value js.Value) *ProximitySensor
ProximitySensorFromJS is casting a js.Value into ProximitySensor.
func ProximitySensorFromWrapper ¶
func ProximitySensorFromWrapper(input core.Wrapper) *ProximitySensor
ProximitySensorFromJS is casting from something that holds a js.Value into ProximitySensor.
func (*ProximitySensor) Distance ¶
func (_this *ProximitySensor) Distance() *float64
Distance returning attribute 'distance' with type float64 (idl: double).
func (*ProximitySensor) Max ¶
func (_this *ProximitySensor) Max() *float64
Max returning attribute 'max' with type float64 (idl: double).
func (*ProximitySensor) Near ¶
func (_this *ProximitySensor) Near() *bool
Near returning attribute 'near' with type bool (idl: boolean).
type ReadOptions ¶
type ReadOptions struct { Frequency float64 Signal *domcore.AbortSignal }
dictionary: ReadOptions
func ReadOptionsFromJS ¶
func ReadOptionsFromJS(value js.Value) *ReadOptions
ReadOptionsFromJS is allocating a new ReadOptions object and copy all values in the value javascript object.
func (*ReadOptions) JSValue ¶
func (_this *ReadOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type RelativeOrientationReadingValues ¶
type RelativeOrientationReadingValues struct {
Quaternion *javascript.FrozenArray
}
dictionary: RelativeOrientationReadingValues
func RelativeOrientationReadingValuesFromJS ¶
func RelativeOrientationReadingValuesFromJS(value js.Value) *RelativeOrientationReadingValues
RelativeOrientationReadingValuesFromJS is allocating a new RelativeOrientationReadingValues object and copy all values in the value javascript object.
func (*RelativeOrientationReadingValues) JSValue ¶
func (_this *RelativeOrientationReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type RelativeOrientationSensor ¶
type RelativeOrientationSensor struct {
OrientationSensor
}
class: RelativeOrientationSensor
func NewRelativeOrientationSensor ¶
func NewRelativeOrientationSensor(sensorOptions *OrientationSensorOptions) (_result *RelativeOrientationSensor)
func RelativeOrientationSensorFromJS ¶
func RelativeOrientationSensorFromJS(value js.Value) *RelativeOrientationSensor
RelativeOrientationSensorFromJS is casting a js.Value into RelativeOrientationSensor.
func RelativeOrientationSensorFromWrapper ¶
func RelativeOrientationSensorFromWrapper(input core.Wrapper) *RelativeOrientationSensor
RelativeOrientationSensorFromJS is casting from something that holds a js.Value into RelativeOrientationSensor.
type Sensor ¶
type Sensor struct {
domcore.EventTarget
}
class: Sensor
func SensorFromJS ¶
SensorFromJS is casting a js.Value into Sensor.
func SensorFromWrapper ¶
SensorFromJS is casting from something that holds a js.Value into Sensor.
func (*Sensor) AddEventActivate ¶
func (_this *Sensor) AddEventActivate(listener func(event *domcore.Event, currentTarget *Sensor)) js.Func
AddActivate is adding doing AddEventListener for 'Activate' on target. This method is returning allocated javascript function that need to be released.
func (*Sensor) AddEventError ¶
func (_this *Sensor) AddEventError(listener func(event *SensorErrorEvent, currentTarget *Sensor)) js.Func
AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.
func (*Sensor) AddEventReading ¶
func (_this *Sensor) AddEventReading(listener func(event *domcore.Event, currentTarget *Sensor)) js.Func
AddReading is adding doing AddEventListener for 'Reading' on target. This method is returning allocated javascript function that need to be released.
func (*Sensor) HasReading ¶
HasReading returning attribute 'hasReading' with type bool (idl: boolean).
func (*Sensor) OnActivate ¶
func (_this *Sensor) OnActivate() domcore.EventHandlerFunc
OnActivate returning attribute 'onactivate' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Sensor) OnError ¶
func (_this *Sensor) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Sensor) OnReading ¶
func (_this *Sensor) OnReading() domcore.EventHandlerFunc
OnReading returning attribute 'onreading' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Sensor) SetOnActivate ¶
func (_this *Sensor) SetOnActivate(listener func(event *domcore.Event, currentTarget *Sensor)) js.Func
SetOnActivate is assigning a function to 'onactivate'. This This method is returning allocated javascript function that need to be released.
func (*Sensor) SetOnError ¶
func (_this *Sensor) SetOnError(listener func(event *SensorErrorEvent, currentTarget *Sensor)) js.Func
SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.
type SensorErrorEvent ¶
class: SensorErrorEvent
func NewSensorErrorEvent ¶
func NewSensorErrorEvent(_type string, errorEventInitDict *SensorErrorEventInit) (_result *SensorErrorEvent)
func SensorErrorEventFromJS ¶
func SensorErrorEventFromJS(value js.Value) *SensorErrorEvent
SensorErrorEventFromJS is casting a js.Value into SensorErrorEvent.
func SensorErrorEventFromWrapper ¶
func SensorErrorEventFromWrapper(input core.Wrapper) *SensorErrorEvent
SensorErrorEventFromJS is casting from something that holds a js.Value into SensorErrorEvent.
func (*SensorErrorEvent) Error ¶
func (_this *SensorErrorEvent) Error() *domcore.DOMException
Error returning attribute 'error' with type domcore.DOMException (idl: DOMException).
type SensorErrorEventInit ¶
type SensorErrorEventInit struct { Bubbles bool Cancelable bool Composed bool Error *domcore.DOMException }
dictionary: SensorErrorEventInit
func SensorErrorEventInitFromJS ¶
func SensorErrorEventInitFromJS(value js.Value) *SensorErrorEventInit
SensorErrorEventInitFromJS is allocating a new SensorErrorEventInit object and copy all values in the value javascript object.
func (*SensorErrorEventInit) JSValue ¶
func (_this *SensorErrorEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type SensorOptions ¶
type SensorOptions struct {
Frequency float64
}
dictionary: SensorOptions
func SensorOptionsFromJS ¶
func SensorOptionsFromJS(value js.Value) *SensorOptions
SensorOptionsFromJS is allocating a new SensorOptions object and copy all values in the value javascript object.
func (*SensorOptions) JSValue ¶
func (_this *SensorOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type UncalibratedMagnetometer ¶
type UncalibratedMagnetometer struct {
Sensor
}
class: UncalibratedMagnetometer
func NewUncalibratedMagnetometer ¶
func NewUncalibratedMagnetometer(sensorOptions *MagnetometerSensorOptions) (_result *UncalibratedMagnetometer)
func UncalibratedMagnetometerFromJS ¶
func UncalibratedMagnetometerFromJS(value js.Value) *UncalibratedMagnetometer
UncalibratedMagnetometerFromJS is casting a js.Value into UncalibratedMagnetometer.
func UncalibratedMagnetometerFromWrapper ¶
func UncalibratedMagnetometerFromWrapper(input core.Wrapper) *UncalibratedMagnetometer
UncalibratedMagnetometerFromJS is casting from something that holds a js.Value into UncalibratedMagnetometer.
func (*UncalibratedMagnetometer) X ¶
func (_this *UncalibratedMagnetometer) X() *float64
X returning attribute 'x' with type float64 (idl: double).
func (*UncalibratedMagnetometer) XBias ¶
func (_this *UncalibratedMagnetometer) XBias() *float64
XBias returning attribute 'xBias' with type float64 (idl: double).
func (*UncalibratedMagnetometer) Y ¶
func (_this *UncalibratedMagnetometer) Y() *float64
Y returning attribute 'y' with type float64 (idl: double).
func (*UncalibratedMagnetometer) YBias ¶
func (_this *UncalibratedMagnetometer) YBias() *float64
YBias returning attribute 'yBias' with type float64 (idl: double).
func (*UncalibratedMagnetometer) Z ¶
func (_this *UncalibratedMagnetometer) Z() *float64
Z returning attribute 'z' with type float64 (idl: double).
func (*UncalibratedMagnetometer) ZBias ¶
func (_this *UncalibratedMagnetometer) ZBias() *float64
ZBias returning attribute 'zBias' with type float64 (idl: double).
type UncalibratedMagnetometerReadingValues ¶
type UncalibratedMagnetometerReadingValues struct { X *float64 Y *float64 Z *float64 XBias *float64 YBias *float64 ZBias *float64 }
dictionary: UncalibratedMagnetometerReadingValues
func UncalibratedMagnetometerReadingValuesFromJS ¶
func UncalibratedMagnetometerReadingValuesFromJS(value js.Value) *UncalibratedMagnetometerReadingValues
UncalibratedMagnetometerReadingValuesFromJS is allocating a new UncalibratedMagnetometerReadingValues object and copy all values in the value javascript object.
func (*UncalibratedMagnetometerReadingValues) JSValue ¶
func (_this *UncalibratedMagnetometerReadingValues) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values