-
Notifications
You must be signed in to change notification settings - Fork 0
/
ISensorListener.xml
220 lines (219 loc) · 14.1 KB
/
ISensorListener.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<Type Name="ISensorListener" FullName="Android.Hardware.ISensorListener">
<TypeSignature Language="C#" Value="public interface ISensorListener : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit ISensorListener implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Hardware.ISensorListener" />
<TypeSignature Language="F#" Value="type ISensorListener = interface
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/hardware/SensorListener", "", "Android.Hardware.ISensorListenerInvoker")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/hardware/SensorListener", "", "Android.Hardware.ISensorListenerInvoker")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This class is obsoleted in this android platform")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This class is obsoleted in this android platform")>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>Used for receiving notifications from the SensorManager when
sensor values have changed.</summary>
<remarks>
<para>Used for receiving notifications from the SensorManager when
sensor values have changed.</para>
<para>This member is deprecated. Use
<c>android.hardware.SensorEventListener SensorEventListener</c> instead.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/hardware/SensorListener" title="Reference documentation">Java documentation for <code>android.hardware.SensorListener</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1Deprecated since API level 3" />
</Docs>
<Members>
<Member MemberName="OnAccuracyChanged">
<MemberSignature Language="C#" Value="public void OnAccuracyChanged (Android.Hardware.SensorType sensor, Android.Hardware.SensorStatus accuracy);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnAccuracyChanged(valuetype Android.Hardware.SensorType sensor, valuetype Android.Hardware.SensorStatus accuracy) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Hardware.ISensorListener.OnAccuracyChanged(Android.Hardware.SensorType,Android.Hardware.SensorStatus)" />
<MemberSignature Language="F#" Value="abstract member OnAccuracyChanged : Android.Hardware.SensorType * Android.Hardware.SensorStatus -> unit" Usage="iSensorListener.OnAccuracyChanged (sensor, accuracy)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onAccuracyChanged", "(II)V", "GetOnAccuracyChanged_IIHandler:Android.Hardware.ISensorListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onAccuracyChanged", "(II)V", "GetOnAccuracyChanged_IIHandler:Android.Hardware.ISensorListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("deprecated")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("deprecated")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sensor" Type="Android.Hardware.SensorType">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="accuracy" Type="Android.Hardware.SensorStatus">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="sensor">The ID of the sensor being monitored</param>
<param name="accuracy">The new accuracy of this sensor.</param>
<summary>Called when the accuracy of a sensor has changed.</summary>
<remarks>
<para>Called when the accuracy of a sensor has changed.
See <c>android.hardware.SensorManager SensorManager</c>
for details.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/hardware/SensorListener#onAccuracyChanged(int,%20int)" title="Reference documentation">Java documentation for <code>android.hardware.SensorListener.onAccuracyChanged(int, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="OnSensorChanged">
<MemberSignature Language="C#" Value="public void OnSensorChanged (Android.Hardware.SensorType sensor, float[]? values);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnSensorChanged(valuetype Android.Hardware.SensorType sensor, float32[] values) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Hardware.ISensorListener.OnSensorChanged(Android.Hardware.SensorType,System.Single[])" />
<MemberSignature Language="F#" Value="abstract member OnSensorChanged : Android.Hardware.SensorType * single[] -> unit" Usage="iSensorListener.OnSensorChanged (sensor, values)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onSensorChanged", "(I[F)V", "GetOnSensorChanged_IarrayFHandler:Android.Hardware.ISensorListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onSensorChanged", "(I[F)V", "GetOnSensorChanged_IarrayFHandler:Android.Hardware.ISensorListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("deprecated")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("deprecated")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sensor" Type="Android.Hardware.SensorType">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="values" Type="System.Single[]" />
</Parameters>
<Docs>
<param name="sensor">The ID of the sensor being monitored</param>
<param name="values">The new values for the sensor.</param>
<summary>Called when sensor values have changed.</summary>
<remarks>
<para>Called when sensor values have changed.
The length and contents of the values array vary
depending on which sensor is being monitored.
See <c>android.hardware.SensorManager SensorManager</c>
for details on possible sensor types.</para>
<para><u>Definition of the coordinate system used below.</u></para>
<para />
<para>The X axis refers to the screen's horizontal axis
(the small edge in portrait mode, the long edge in landscape mode) and
points to the right.</para>
<para>The Y axis refers to the screen's vertical axis and points towards
the top of the screen (the origin is in the lower-left corner).</para>
<para>The Z axis points toward the sky when the device is lying on its back
on a table.</para>
<para><b>IMPORTANT NOTE:</b> The axis <b><u>are swapped</u></b> when the
device's screen orientation changes. To access the unswapped values,
use indices 3, 4 and 5 in values[].</para>
<para>
<c>android.hardware.SensorManager#SENSOR_ORIENTATION SENSOR_ORIENTATION</c>,
<c>android.hardware.SensorManager#SENSOR_ORIENTATION_RAW SENSOR_ORIENTATION_RAW</c>:</para>
<para>All values are angles in degrees.</para>
<para>values[0]: Azimuth, rotation around the Z axis (0<=azimuth<360).
0 = North, 90 = East, 180 = South, 270 = West</para>
<para>values[1]: Pitch, rotation around X axis (-180<=pitch<=180), with positive
values when the z-axis moves toward the y-axis.</para>
<para>values[2]: Roll, rotation around Y axis (-90<=roll<=90), with positive values
when the z-axis moves toward the x-axis.</para>
<para>Note that this definition of yaw, pitch and roll is different from the
traditional definition used in aviation where the X axis is along the long
side of the plane (tail to nose).</para>
<para>
<c>android.hardware.SensorManager#SENSOR_ACCELEROMETER SENSOR_ACCELEROMETER</c>:</para>
<para>All values are in SI units (m/s^2) and measure contact forces.</para>
<para>values[0]: force applied by the device on the x-axis</para>
<para>values[1]: force applied by the device on the y-axis</para>
<para>values[2]: force applied by the device on the z-axis</para>
<para><u>Examples</u>:
<li>When the device is pushed on its left side toward the right, the
x acceleration value is negative (the device applies a reaction force
to the push toward the left)</li>
<li>When the device lies flat on a table, the acceleration value is
<c>android.hardware.SensorManager#STANDARD_GRAVITY -STANDARD_GRAVITY</c>,
which correspond to the force the device applies on the table in reaction
to gravity.</li></para>
<para>
<c>android.hardware.SensorManager#SENSOR_MAGNETIC_FIELD SENSOR_MAGNETIC_FIELD</c>:</para>
<para>All values are in micro-Tesla (uT) and measure the ambient magnetic
field in the X, Y and -Z axis.</para>
<para><b><u>Note:</u></b> the magnetic field's Z axis is inverted.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/hardware/SensorListener#onSensorChanged(int,%20float[])" title="Reference documentation">Java documentation for <code>android.hardware.SensorListener.onSensorChanged(int, float[])</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
</Members>
</Type>