This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
MotionEvent.xml
6405 lines (6397 loc) · 406 KB
/
MotionEvent.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="MotionEvent" FullName="Android.Views.MotionEvent">
<TypeSignature Language="C#" Value="public sealed class MotionEvent : Android.Views.InputEvent, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit MotionEvent extends Android.Views.InputEvent implements class Android.OS.IParcelable, class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Views.MotionEvent" />
<TypeSignature Language="F#" Value="type MotionEvent = class
 inherit InputEvent
 interface IParcelable
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Android.Views.InputEvent</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.OS.IParcelable</InterfaceName>
</Interface>
<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/view/MotionEvent", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/view/MotionEvent", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>Object used to report movement (mouse, pen, finger, trackball) events.</summary>
<remarks>
<para>Object used to report movement (mouse, pen, finger, trackball) events.
Motion events may hold either absolute or relative movements and other data,
depending on the type of device.
<h3>Overview</h3></para>
<para>Motion events describe movements in terms of an action code and a set of axis values.
The action code specifies the state change that occurred such as a pointer going
down or up. The axis values describe the position and other movement properties.</para>
<para>For example, when the user first touches the screen, the system delivers a touch
event to the appropriate <c>View</c> with the action code <c>#ACTION_DOWN</c>
and a set of axis values that include the X and Y coordinates of the touch and
information about the pressure, size and orientation of the contact area.</para>
<para>Some devices can report multiple movement traces at the same time. Multi-touch
screens emit one movement trace for each finger. The individual fingers or
other objects that generate movement traces are referred to as <em>pointers</em>.
Motion events contain information about all of the pointers that are currently active
even if some of them have not moved since the last event was delivered.</para>
<para>The number of pointers only ever changes by one as individual pointers go up and down,
except when the gesture is canceled.</para>
<para>Each pointer has a unique id that is assigned when it first goes down
(indicated by <c>#ACTION_DOWN</c> or <c>#ACTION_POINTER_DOWN</c>). A pointer id
remains valid until the pointer eventually goes up (indicated by <c>#ACTION_UP</c>
or <c>#ACTION_POINTER_UP</c>) or when the gesture is canceled (indicated by
<c>#ACTION_CANCEL</c>).</para>
<para>The MotionEvent class provides many methods to query the position and other properties of
pointers, such as <c>#getX(int)</c>, <c>#getY(int)</c>, <c>#getAxisValue</c>,
<c>#getPointerId(int)</c>, <c>#getToolType(int)</c>, and many others. Most of these
methods accept the pointer index as a parameter rather than the pointer id.
The pointer index of each pointer in the event ranges from 0 to one less than the value
returned by <c>#getPointerCount()</c>.</para>
<para>The order in which individual pointers appear within a motion event is undefined.
Thus the pointer index of a pointer can change from one event to the next but
the pointer id of a pointer is guaranteed to remain constant as long as the pointer
remains active. Use the <c>#getPointerId(int)</c> method to obtain the
pointer id of a pointer to track it across all subsequent motion events in a gesture.
Then for successive motion events, use the <c>#findPointerIndex(int)</c> method
to obtain the pointer index for a given pointer id in that motion event.</para>
<para>Mouse and stylus buttons can be retrieved using <c>#getButtonState()</c>. It is a
good idea to check the button state while handling <c>#ACTION_DOWN</c> as part
of a touch event. The application may choose to perform some different action
if the touch event starts due to a secondary button click, such as presenting a
context menu.</para>
<para><h3>Batching</h3></para>
<para>For efficiency, motion events with <c>#ACTION_MOVE</c> may batch together
multiple movement samples within a single object. The most current
pointer coordinates are available using <c>#getX(int)</c> and <c>#getY(int)</c>.
Earlier coordinates within the batch are accessed using <c>#getHistoricalX(int, int)</c>
and <c>#getHistoricalY(int, int)</c>. The coordinates are "historical" only
insofar as they are older than the current coordinates in the batch; however,
they are still distinct from any other coordinates reported in prior motion events.
To process all coordinates in the batch in time order, first consume the historical
coordinates then consume the current coordinates.</para>
<para>Example: Consuming all samples for all pointers in a motion event in time order.</para>
<para />
<code lang="text/java"><code>
void printSamples(MotionEvent ev) {
final int historySize = ev.getHistorySize();
final int pointerCount = ev.getPointerCount();
for (int h = 0; h &lt; historySize; h++) {
System.out.printf("At time %d:", ev.getHistoricalEventTime(h));
for (int p = 0; p &lt; pointerCount; p++) {
System.out.printf(" pointer %d: (%f,%f)",
ev.getPointerId(p), ev.getHistoricalX(p, h), ev.getHistoricalY(p, h));
}
}
System.out.printf("At time %d:", ev.getEventTime());
for (int p = 0; p &lt; pointerCount; p++) {
System.out.printf(" pointer %d: (%f,%f)",
ev.getPointerId(p), ev.getX(p), ev.getY(p));
}
}
</code></code>
<para></p>
<h3>Device Types</h3></para>
<para>The interpretation of the contents of a MotionEvent varies significantly depending
on the source class of the device.</para>
<para>On pointing devices with source class <c>InputDevice#SOURCE_CLASS_POINTER</c>
such as touch screens, the pointer coordinates specify absolute
positions such as view X/Y coordinates. Each complete gesture is represented
by a sequence of motion events with actions that describe pointer state transitions
and movements. A gesture starts with a motion event with <c>#ACTION_DOWN</c>
that provides the location of the first pointer down. As each additional
pointer that goes down or up, the framework will generate a motion event with
<c>#ACTION_POINTER_DOWN</c> or <c>#ACTION_POINTER_UP</c> accordingly.
Pointer movements are described by motion events with <c>#ACTION_MOVE</c>.
Finally, a gesture end either when the final pointer goes up as represented
by a motion event with <c>#ACTION_UP</c> or when gesture is canceled
with <c>#ACTION_CANCEL</c>.</para>
<para>Some pointing devices such as mice may support vertical and/or horizontal scrolling.
A scroll event is reported as a generic motion event with <c>#ACTION_SCROLL</c> that
includes the relative scroll offset in the <c>#AXIS_VSCROLL</c> and
<c>#AXIS_HSCROLL</c> axes. See <c>#getAxisValue(int)</c> for information
about retrieving these additional axes.</para>
<para>On trackball devices with source class <c>InputDevice#SOURCE_CLASS_TRACKBALL</c>,
the pointer coordinates specify relative movements as X/Y deltas.
A trackball gesture consists of a sequence of movements described by motion
events with <c>#ACTION_MOVE</c> interspersed with occasional <c>#ACTION_DOWN</c>
or <c>#ACTION_UP</c> motion events when the trackball button is pressed or released.</para>
<para>On joystick devices with source class <c>InputDevice#SOURCE_CLASS_JOYSTICK</c>,
the pointer coordinates specify the absolute position of the joystick axes.
The joystick axis values are normalized to a range of -1.0 to 1.0 where 0.0 corresponds
to the center position. More information about the set of available axes and the
range of motion can be obtained using <c>InputDevice#getMotionRange</c>.
Some common joystick axes are <c>#AXIS_X</c>, <c>#AXIS_Y</c>,
<c>#AXIS_HAT_X</c>, <c>#AXIS_HAT_Y</c>, <c>#AXIS_Z</c> and <c>#AXIS_RZ</c>.</para>
<para>Refer to <c>InputDevice</c> for more information about how different kinds of
input devices and sources represent pointer coordinates.</para>
<para><h3>Consistency Guarantees</h3></para>
<para>Motion events are always delivered to views as a consistent stream of events.
What constitutes a consistent stream varies depending on the type of device.
For touch events, consistency implies that pointers go down one at a time,
move around as a group and then go up one at a time or are canceled.</para>
<para>While the framework tries to deliver consistent streams of motion events to
views, it cannot guarantee it. Some events may be dropped or modified by
containing views in the application before they are delivered thereby making
the stream of events inconsistent. Views should always be prepared to
handle <c>#ACTION_CANCEL</c> and should tolerate anomalous
situations such as receiving a new <c>#ACTION_DOWN</c> without first having
received an <c>#ACTION_UP</c> for the prior gesture.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent" title="Reference documentation">Java documentation for <code>android.view.MotionEvent</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>
<Members>
<Member MemberName="Action">
<MemberSignature Language="C#" Value="public Android.Views.MotionEventActions Action { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Android.Views.MotionEventActions Action" />
<MemberSignature Language="DocId" Value="P:Android.Views.MotionEvent.Action" />
<MemberSignature Language="F#" Value="member this.Action : Android.Views.MotionEventActions with get, set" Usage="Android.Views.MotionEvent.Action" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAction", "()I", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAction", "()I", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: Android.Runtime.Register("setAction", "(I)V", "")]</AttributeName>
<AttributeName Language="F#">[<set: Android.Runtime.Register("setAction", "(I)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.MotionEventActions</ReturnType>
</ReturnValue>
<Docs>
<summary>Return the kind of action being performed. -or- Sets this event's action.</summary>
<value>The action, such as <c>#ACTION_DOWN</c> or
the combination of <c>#ACTION_POINTER_DOWN</c> with a shifted pointer index.</value>
<remarks>
<para>Property getter documentation:</para>
<para>Return the kind of action being performed.
Consider using <c>#getActionMasked</c> and <c>#getActionIndex</c> to retrieve
the separate masked action and pointer index.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#getAction()" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.getAction()</code>.</a>
</format>
</para>
<para>Property setter documentation:</para>
<para>Sets this event's action.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#setAction(int)" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.setAction(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="ActionButton">
<MemberSignature Language="C#" Value="public Android.Views.MotionEventButtonState ActionButton { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Android.Views.MotionEventButtonState ActionButton" />
<MemberSignature Language="DocId" Value="P:Android.Views.MotionEvent.ActionButton" />
<MemberSignature Language="F#" Value="member this.ActionButton : Android.Views.MotionEventButtonState" Usage="Android.Views.MotionEvent.ActionButton" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getActionButton", "()I", "", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getActionButton", "()I", "", ApiSince=23)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.MotionEventButtonState</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets which button has been modified during a press or release action.</summary>
<value>To be added.</value>
<remarks>
<para>Gets which button has been modified during a press or release action.
For actions other than <c>#ACTION_BUTTON_PRESS</c> and <c>#ACTION_BUTTON_RELEASE</c>
the returned value is undefined.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#getActionButton()" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.getActionButton()</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>
</Docs>
</Member>
<Member MemberName="ActionIndex">
<MemberSignature Language="C#" Value="public int ActionIndex { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 ActionIndex" />
<MemberSignature Language="DocId" Value="P:Android.Views.MotionEvent.ActionIndex" />
<MemberSignature Language="F#" Value="member this.ActionIndex : int" Usage="Android.Views.MotionEvent.ActionIndex" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getActionIndex", "()I", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getActionIndex", "()I", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>For <c>#ACTION_POINTER_DOWN</c> or <c>#ACTION_POINTER_UP</c>
as returned by <c>#getActionMasked</c>, this returns the associated
pointer index.</summary>
<value>The index associated with the action.</value>
<remarks>
<para>For <c>#ACTION_POINTER_DOWN</c> or <c>#ACTION_POINTER_UP</c>
as returned by <c>#getActionMasked</c>, this returns the associated
pointer index.
The index may be used with <c>#getPointerId(int)</c>,
<c>#getX(int)</c>, <c>#getY(int)</c>, <c>#getPressure(int)</c>,
and <c>#getSize(int)</c> to get information about the pointer that has
gone down or up.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#getActionIndex()" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.getActionIndex()</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 8" />
</Docs>
</Member>
<Member MemberName="ActionMasked">
<MemberSignature Language="C#" Value="public Android.Views.MotionEventActions ActionMasked { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Android.Views.MotionEventActions ActionMasked" />
<MemberSignature Language="DocId" Value="P:Android.Views.MotionEvent.ActionMasked" />
<MemberSignature Language="F#" Value="member this.ActionMasked : Android.Views.MotionEventActions" Usage="Android.Views.MotionEvent.ActionMasked" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getActionMasked", "()I", "")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getActionMasked", "()I", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.MotionEventActions</ReturnType>
</ReturnValue>
<Docs>
<summary>Return the masked action being performed, without pointer index information.</summary>
<value>The action, such as <c>#ACTION_DOWN</c> or <c>#ACTION_POINTER_DOWN</c>.</value>
<remarks>
<para>Return the masked action being performed, without pointer index information.
Use <c>#getActionIndex</c> to return the index associated with pointer actions.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#getActionMasked()" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.getActionMasked()</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 8" />
</Docs>
</Member>
<Member MemberName="ActionToString">
<MemberSignature Language="C#" Value="public static string? ActionToString (Android.Views.MotionEventActions action);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig string ActionToString(valuetype Android.Views.MotionEventActions action) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.MotionEvent.ActionToString(Android.Views.MotionEventActions)" />
<MemberSignature Language="F#" Value="static member ActionToString : Android.Views.MotionEventActions -> string" Usage="Android.Views.MotionEvent.ActionToString action" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("actionToString", "(I)Ljava/lang/String;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("actionToString", "(I)Ljava/lang/String;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="action" Type="Android.Views.MotionEventActions">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="action">The unmasked action.</param>
<summary>Returns a string that represents the symbolic name of the specified unmasked action
such as "ACTION_DOWN", "ACTION_POINTER_DOWN(3)" or an equivalent numeric constant
such as "35" if unknown.</summary>
<returns>The symbolic name of the specified action.</returns>
<remarks>
<para>Returns a string that represents the symbolic name of the specified unmasked action
such as "ACTION_DOWN", "ACTION_POINTER_DOWN(3)" or an equivalent numeric constant
such as "35" if unknown.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#actionToString(int)" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.actionToString(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>
<altmember cref="P:Android.Views.MotionEvent.Action" />
</Docs>
<since version="Added in API level 19" />
</Member>
<Member MemberName="AddBatch">
<MemberSignature Language="C#" Value="public void AddBatch (long eventTime, Android.Views.MotionEvent.PointerCoords[]? pointerCoords, Android.Views.MetaKeyStates metaState);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddBatch(int64 eventTime, class Android.Views.MotionEvent/PointerCoords[] pointerCoords, valuetype Android.Views.MetaKeyStates metaState) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.MotionEvent.AddBatch(System.Int64,Android.Views.MotionEvent.PointerCoords[],Android.Views.MetaKeyStates)" />
<MemberSignature Language="F#" Value="member this.AddBatch : int64 * Android.Views.MotionEvent.PointerCoords[] * Android.Views.MetaKeyStates -> unit" Usage="motionEvent.AddBatch (eventTime, pointerCoords, metaState)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("addBatch", "(J[Landroid/view/MotionEvent$PointerCoords;I)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("addBatch", "(J[Landroid/view/MotionEvent$PointerCoords;I)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventTime" Type="System.Int64" />
<Parameter Name="pointerCoords" Type="Android.Views.MotionEvent+PointerCoords[]" />
<Parameter Name="metaState" Type="Android.Views.MetaKeyStates">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="eventTime">The time stamp (in ms) for this data.</param>
<param name="pointerCoords">The new pointer coordinates.</param>
<param name="metaState">Meta key state.</param>
<summary>Add a new movement to the batch of movements in this event.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#addBatch(long,%20float,%20float,%20float,%20float,%20int)" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.addBatch(long, float, float, float, float, 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 9" />
</Docs>
</Member>
<Member MemberName="AddBatch">
<MemberSignature Language="C#" Value="public void AddBatch (long eventTime, float x, float y, float pressure, float size, Android.Views.MetaKeyStates metaState);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void AddBatch(int64 eventTime, float32 x, float32 y, float32 pressure, float32 size, valuetype Android.Views.MetaKeyStates metaState) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.MotionEvent.AddBatch(System.Int64,System.Single,System.Single,System.Single,System.Single,Android.Views.MetaKeyStates)" />
<MemberSignature Language="F#" Value="member this.AddBatch : int64 * single * single * single * single * Android.Views.MetaKeyStates -> unit" Usage="motionEvent.AddBatch (eventTime, x, y, pressure, size, metaState)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("addBatch", "(JFFFFI)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("addBatch", "(JFFFFI)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="eventTime" Type="System.Int64" />
<Parameter Name="x" Type="System.Single" />
<Parameter Name="y" Type="System.Single" />
<Parameter Name="pressure" Type="System.Single" />
<Parameter Name="size" Type="System.Single" />
<Parameter Name="metaState" Type="Android.Views.MetaKeyStates">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="eventTime">The time stamp (in ms) for this data.</param>
<param name="x">The new X position.</param>
<param name="y">The new Y position.</param>
<param name="pressure">The new pressure.</param>
<param name="size">The new size.</param>
<param name="metaState">Meta key state.</param>
<summary>Add a new movement to the batch of movements in this event.</summary>
<remarks>
<para>Add a new movement to the batch of movements in this event. The event's
current location, position and size is updated to the new values.
The current values in the event are added to a list of historical values.
Only applies to <c>#ACTION_MOVE</c> or <c>#ACTION_HOVER_MOVE</c> events.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#addBatch(long,%20float,%20float,%20float,%20float,%20int)" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.addBatch(long, float, float, float, float, 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="AxisFromString">
<MemberSignature Language="C#" Value="public static Android.Views.Axis AxisFromString (string? symbolicName);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype Android.Views.Axis AxisFromString(string symbolicName) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.MotionEvent.AxisFromString(System.String)" />
<MemberSignature Language="F#" Value="static member AxisFromString : string -> Android.Views.Axis" Usage="Android.Views.MotionEvent.AxisFromString symbolicName" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("axisFromString", "(Ljava/lang/String;)I", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("axisFromString", "(Ljava/lang/String;)I", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.Axis</ReturnType>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</ReturnValue>
<Parameters>
<Parameter Name="symbolicName" Type="System.String" />
</Parameters>
<Docs>
<param name="symbolicName">The symbolic name of the axis.</param>
<summary>Gets an axis by its symbolic name such as "AXIS_X" or an
equivalent numeric constant such as "42".</summary>
<returns>The axis or -1 if not found.</returns>
<remarks>
<para>Gets an axis by its symbolic name such as "AXIS_X" or an
equivalent numeric constant such as "42".</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#axisFromString(java.lang.String)" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.axisFromString(java.lang.String)</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 12" />
<altmember cref="M:Android.Views.KeyEvent.KeyCodeToString(Android.Views.Keycode)" />
</Docs>
</Member>
<Member MemberName="AxisGesturePinchScaleFactor">
<MemberSignature Language="C#" Value="public const Android.Views.Axis AxisGesturePinchScaleFactor = 52;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.Axis AxisGesturePinchScaleFactor = (52)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.AxisGesturePinchScaleFactor" />
<MemberSignature Language="F#" Value="val mutable AxisGesturePinchScaleFactor : Android.Views.Axis" Usage="Android.Views.MotionEvent.AxisGesturePinchScaleFactor" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("AXIS_GESTURE_PINCH_SCALE_FACTOR", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("AXIS_GESTURE_PINCH_SCALE_FACTOR", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.Axis</ReturnType>
</ReturnValue>
<MemberValue>52</MemberValue>
<Docs>
<summary>Axis constant: pinch scale factor of a motion event.</summary>
<remarks>
<para>Axis constant: pinch scale factor of a motion event.</para>
<para><ul>
<li>For a touch pad, reports the change in distance between the fingers when the user is
making a pinch gesture, as a proportion of the previous distance. For example, if the fingers
were 50 units apart and are now 52 units apart, the scale factor would be 1.04.
</ul>
These values are relative to the state from the last event, not accumulated, so developers
should make sure to process this axis value for all batched historical events.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#AXIS_GESTURE_PINCH_SCALE_FACTOR" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.AXIS_GESTURE_PINCH_SCALE_FACTOR</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>
</Docs>
</Member>
<Member MemberName="AxisGestureScrollXDistance">
<MemberSignature Language="C#" Value="public const Android.Views.Axis AxisGestureScrollXDistance = 50;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.Axis AxisGestureScrollXDistance = (50)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.AxisGestureScrollXDistance" />
<MemberSignature Language="F#" Value="val mutable AxisGestureScrollXDistance : Android.Views.Axis" Usage="Android.Views.MotionEvent.AxisGestureScrollXDistance" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("AXIS_GESTURE_SCROLL_X_DISTANCE", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("AXIS_GESTURE_SCROLL_X_DISTANCE", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.Axis</ReturnType>
</ReturnValue>
<MemberValue>50</MemberValue>
<Docs>
<summary>Axis constant: X scroll distance axis of a motion event.</summary>
<remarks>
<para>Axis constant: X scroll distance axis of a motion event.</para>
<para><ul>
<li>For a touch pad, reports the distance that should be scrolled in the X axis as a result
of the user's two-finger scroll gesture, in display pixels.
</ul>
These values are relative to the state from the last event, not accumulated, so developers
should make sure to process this axis value for all batched historical events.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#AXIS_GESTURE_SCROLL_X_DISTANCE" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.AXIS_GESTURE_SCROLL_X_DISTANCE</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>
</Docs>
</Member>
<Member MemberName="AxisGestureScrollYDistance">
<MemberSignature Language="C#" Value="public const Android.Views.Axis AxisGestureScrollYDistance = 51;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.Axis AxisGestureScrollYDistance = (51)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.AxisGestureScrollYDistance" />
<MemberSignature Language="F#" Value="val mutable AxisGestureScrollYDistance : Android.Views.Axis" Usage="Android.Views.MotionEvent.AxisGestureScrollYDistance" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("AXIS_GESTURE_SCROLL_Y_DISTANCE", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("AXIS_GESTURE_SCROLL_Y_DISTANCE", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.Axis</ReturnType>
</ReturnValue>
<MemberValue>51</MemberValue>
<Docs>
<summary>Axis constant: Y scroll distance axis of a motion event.</summary>
<remarks>
<para>Axis constant: Y scroll distance axis of a motion event.
The same as <c>#AXIS_GESTURE_SCROLL_X_DISTANCE</c>, but for the Y axis.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#AXIS_GESTURE_SCROLL_Y_DISTANCE" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.AXIS_GESTURE_SCROLL_Y_DISTANCE</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>
</Docs>
</Member>
<Member MemberName="AxisGestureXOffset">
<MemberSignature Language="C#" Value="public const Android.Views.Axis AxisGestureXOffset = 48;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.Axis AxisGestureXOffset = (48)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.AxisGestureXOffset" />
<MemberSignature Language="F#" Value="val mutable AxisGestureXOffset : Android.Views.Axis" Usage="Android.Views.MotionEvent.AxisGestureXOffset" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("AXIS_GESTURE_X_OFFSET", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("AXIS_GESTURE_X_OFFSET", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.Axis</ReturnType>
</ReturnValue>
<MemberValue>48</MemberValue>
<Docs>
<summary>Axis constant: X gesture offset axis of a motion event.</summary>
<remarks>
<para>Axis constant: X gesture offset axis of a motion event.</para>
<para><ul>
<li>For a touch pad, reports the distance that a swipe gesture has moved in the X axis, as a
proportion of the touch pad's size. For example, if a touch pad is 1000 units wide, and a
swipe gesture starts at X = 500 then moves to X = 400, this axis would have a value of
-0.1.
</ul>
These values are relative to the state from the last event, not accumulated, so developers
should make sure to process this axis value for all batched historical events.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#AXIS_GESTURE_X_OFFSET" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.AXIS_GESTURE_X_OFFSET</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>
</Docs>
</Member>
<Member MemberName="AxisGestureYOffset">
<MemberSignature Language="C#" Value="public const Android.Views.Axis AxisGestureYOffset = 49;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.Axis AxisGestureYOffset = (49)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.AxisGestureYOffset" />
<MemberSignature Language="F#" Value="val mutable AxisGestureYOffset : Android.Views.Axis" Usage="Android.Views.MotionEvent.AxisGestureYOffset" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("AXIS_GESTURE_Y_OFFSET", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("AXIS_GESTURE_Y_OFFSET", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.Axis enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.Axis</ReturnType>
</ReturnValue>
<MemberValue>49</MemberValue>
<Docs>
<summary>Axis constant: Y gesture offset axis of a motion event.</summary>
<remarks>
<para>Axis constant: Y gesture offset axis of a motion event.
The same as <c>#AXIS_GESTURE_X_OFFSET</c>, but for the Y axis.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#AXIS_GESTURE_Y_OFFSET" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.AXIS_GESTURE_Y_OFFSET</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>
</Docs>
</Member>
<Member MemberName="AxisToString">
<MemberSignature Language="C#" Value="public static string? AxisToString (Android.Views.Axis axis);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig string AxisToString(valuetype Android.Views.Axis axis) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.MotionEvent.AxisToString(Android.Views.Axis)" />
<MemberSignature Language="F#" Value="static member AxisToString : Android.Views.Axis -> string" Usage="Android.Views.MotionEvent.AxisToString axis" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("axisToString", "(I)Ljava/lang/String;", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("axisToString", "(I)Ljava/lang/String;", "")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="axis" Type="Android.Views.Axis">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="axis">The axis.</param>
<summary>Returns a string that represents the symbolic name of the specified axis
such as "AXIS_X" or an equivalent numeric constant such as "42" if unknown.</summary>
<returns>The symbolic name of the specified axis.</returns>
<remarks>
<para>Returns a string that represents the symbolic name of the specified axis
such as "AXIS_X" or an equivalent numeric constant such as "42" if unknown.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#axisToString(int)" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.axisToString(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 12" />
</Docs>
</Member>
<Member MemberName="ButtonBack">
<MemberSignature Language="C#" Value="public const Android.Views.MotionEventButtonState ButtonBack = 8;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.MotionEventButtonState ButtonBack = (8)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.ButtonBack" />
<MemberSignature Language="F#" Value="val mutable ButtonBack : Android.Views.MotionEventButtonState" Usage="Android.Views.MotionEvent.ButtonBack" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("BUTTON_BACK")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("BUTTON_BACK")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventButtonState enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventButtonState enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.MotionEventButtonState</ReturnType>
</ReturnValue>
<MemberValue>8</MemberValue>
<Docs>
<summary>Button constant: Back button pressed (mouse back button).</summary>
<remarks>
<para>Button constant: Back button pressed (mouse back button).</para>
<para>The system may send a <c>KeyEvent#KEYCODE_BACK</c> key press to the application
when this button is pressed.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#BUTTON_BACK" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.BUTTON_BACK</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 14" />
<altmember cref="P:Android.Views.MotionEvent.ButtonState" />
</Docs>
</Member>
<Member MemberName="ButtonForward">
<MemberSignature Language="C#" Value="public const Android.Views.MotionEventButtonState ButtonForward = 16;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.MotionEventButtonState ButtonForward = (16)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.ButtonForward" />
<MemberSignature Language="F#" Value="val mutable ButtonForward : Android.Views.MotionEventButtonState" Usage="Android.Views.MotionEvent.ButtonForward" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("BUTTON_FORWARD")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("BUTTON_FORWARD")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventButtonState enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.MotionEventButtonState enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Views.MotionEventButtonState</ReturnType>
</ReturnValue>
<MemberValue>16</MemberValue>
<Docs>
<summary>Button constant: Forward button pressed (mouse forward button).</summary>
<remarks>
<para>Button constant: Forward button pressed (mouse forward button).</para>
<para>The system may send a <c>KeyEvent#KEYCODE_FORWARD</c> key press to the application
when this button is pressed.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/MotionEvent#BUTTON_FORWARD" title="Reference documentation">Java documentation for <code>android.view.MotionEvent.BUTTON_FORWARD</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 14" />
<altmember cref="P:Android.Views.MotionEvent.ButtonState" />
</Docs>
</Member>
<Member MemberName="ButtonPrimary">
<MemberSignature Language="C#" Value="public const Android.Views.MotionEventButtonState ButtonPrimary = 1;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Views.MotionEventButtonState ButtonPrimary = (1)" />
<MemberSignature Language="DocId" Value="F:Android.Views.MotionEvent.ButtonPrimary" />
<MemberSignature Language="F#" Value="val mutable ButtonPrimary : Android.Views.MotionEventButtonState" Usage="Android.Views.MotionEvent.ButtonPrimary" />
<MemberType>Field</MemberType>
<Implements>
<InterfaceMember>F:Android.OS.IParcelable.ContentsFileDescriptor</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("BUTTON_PRIMARY")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("BUTTON_PRIMARY")>]</AttributeName>
</Attribute>
<Attribute>