1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2 <HTML style="overflow:auto;"> 3 <HEAD> 4 <meta name="generator" content="JDiff v1.1.0"> 5 <!-- Generated by the JDiff Javadoc doclet --> 6 <!-- (http://www.jdiff.org) --> 7 <meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared."> 8 <meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet"> 9 <TITLE> 10 android.view.MotionEvent 11 </TITLE> 12 <link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" /> 13 <link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" /> 14 <noscript> 15 <style type="text/css"> 16 body{overflow:auto;} 17 #body-content{position:relative; top:0;} 18 #doc-content{overflow:visible;border-left:3px solid #666;} 19 #side-nav{padding:0;} 20 #side-nav .toggle-list ul {display:block;} 21 #resize-packages-nav{border-bottom:3px solid #666;} 22 </style> 23 </noscript> 24 <style type="text/css"> 25 </style> 26 </HEAD> 27 <BODY> 28 <!-- Start of nav bar --> 29 <a name="top"></a> 30 <div id="header" style="margin-bottom:0;padding-bottom:0;"> 31 <div id="headerLeft"> 32 <a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a> 33 </div> 34 <div id="headerRight"> 35 <div id="headerLinks"> 36 <!-- <img src="/assets/images/icon_world.jpg" alt="" /> --> 37 <span class="text"> 38 <!-- <a href="#">English</a> | --> 39 <nobr><a href="http://developer.android.com" target="_top">Android Developers</a> | <a href="http://www.android.com" target="_top">Android.com</a></nobr> 40 </span> 41 </div> 42 <div class="and-diff-id" style="margin-top:6px;margin-right:8px;"> 43 <table class="diffspectable"> 44 <tr> 45 <td colspan="2" class="diffspechead">API Diff Specification</td> 46 </tr> 47 <tr> 48 <td class="diffspec" style="padding-top:.25em">To Level:</td> 49 <td class="diffvaluenew" style="padding-top:.25em">9</td> 50 </tr> 51 <tr> 52 <td class="diffspec">From Level:</td> 53 <td class="diffvalueold">8</td> 54 </tr> 55 <tr> 56 <td class="diffspec">Generated</td> 57 <td class="diffvalue">2010.11.19 19:12</td> 58 </tr> 59 </table> 60 </div><!-- End and-diff-id --> 61 <div class="and-diff-id" style="margin-right:8px;"> 62 <table class="diffspectable"> 63 <tr> 64 <td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a> 65 </tr> 66 </table> 67 </div> <!-- End and-diff-id --> 68 </div> <!-- End headerRight --> 69 </div> <!-- End header --> 70 <div id="body-content" xstyle="padding:12px;padding-right:18px;"> 71 <div id="doc-content" style="position:relative;"> 72 <div id="mainBodyFluid"> 73 <H2> 74 Class android.view.<A HREF="../../../../reference/android/view/MotionEvent.html" target="_top"><font size="+2"><code>MotionEvent</code></font></A> 75 </H2> 76 <p><font xsize="+1">The superclass changed from <code>java.lang.Object</code> to <code>android.view.InputEvent</code>.<br></font> 77 <a NAME="constructors"></a> 78 <a NAME="methods"></a> 79 <p> 80 <a NAME="Removed"></a> 81 <TABLE summary="Removed Methods" WIDTH="100%"> 82 <TR> 83 <TH VALIGN="TOP" COLSPAN=2>Removed Methods</FONT></TD> 84 </TH> 85 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 86 <TD VALIGN="TOP" WIDTH="25%"> 87 <A NAME="android.view.MotionEvent.obtain_removed(long, long, int, int, float, float, float, float, int, float, float, int, int)"></A> 88 <nobr><code>MotionEvent</code> obtain(<code>long,</nobr> long<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 89 </TD> 90 <TD> </TD> 91 </TR> 92 </TABLE> 93 94 <p> 95 <a NAME="Added"></a> 96 <TABLE summary="Added Methods" WIDTH="100%"> 97 <TR> 98 <TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD> 99 </TH> 100 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 101 <TD VALIGN="TOP" WIDTH="25%"> 102 <A NAME="android.view.MotionEvent.addBatch_added(long, android.view.MotionEvent.PointerCoords[], int)"></A> 103 <nobr><code>void</code> <A HREF="../../../../reference/android/view/MotionEvent.html#addBatch(long, android.view.MotionEvent.PointerCoords[], int)" target="_top"><code>addBatch</code></A>(<code>long,</nobr> PointerCoords[]<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 104 </TD> 105 <TD> </TD> 106 </TR> 107 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 108 <TD VALIGN="TOP" WIDTH="25%"> 109 <A NAME="android.view.MotionEvent.getFlags_added()"></A> 110 <nobr><code>int</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getFlags()" target="_top"><code>getFlags</code></A>()</nobr> 111 </TD> 112 <TD> </TD> 113 </TR> 114 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 115 <TD VALIGN="TOP" WIDTH="25%"> 116 <A NAME="android.view.MotionEvent.getHistoricalOrientation_added(int)"></A> 117 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalOrientation(int)" target="_top"><code>getHistoricalOrientation</code></A>(<code>int</code>)</nobr> 118 </TD> 119 <TD> </TD> 120 </TR> 121 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 122 <TD VALIGN="TOP" WIDTH="25%"> 123 <A NAME="android.view.MotionEvent.getHistoricalOrientation_added(int, int)"></A> 124 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalOrientation(int, int)" target="_top"><code>getHistoricalOrientation</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr> 125 </TD> 126 <TD> </TD> 127 </TR> 128 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 129 <TD VALIGN="TOP" WIDTH="25%"> 130 <A NAME="android.view.MotionEvent.getHistoricalPointerCoords_added(int, int, android.view.MotionEvent.PointerCoords)"></A> 131 <nobr><code>void</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalPointerCoords(int, int, android.view.MotionEvent.PointerCoords)" target="_top"><code>getHistoricalPointerCoords</code></A>(<code>int,</nobr> int<nobr>,</nobr> PointerCoords<nobr><nobr></code>)</nobr> 132 </TD> 133 <TD> </TD> 134 </TR> 135 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 136 <TD VALIGN="TOP" WIDTH="25%"> 137 <A NAME="android.view.MotionEvent.getHistoricalToolMajor_added(int)"></A> 138 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalToolMajor(int)" target="_top"><code>getHistoricalToolMajor</code></A>(<code>int</code>)</nobr> 139 </TD> 140 <TD> </TD> 141 </TR> 142 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 143 <TD VALIGN="TOP" WIDTH="25%"> 144 <A NAME="android.view.MotionEvent.getHistoricalToolMajor_added(int, int)"></A> 145 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalToolMajor(int, int)" target="_top"><code>getHistoricalToolMajor</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr> 146 </TD> 147 <TD> </TD> 148 </TR> 149 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 150 <TD VALIGN="TOP" WIDTH="25%"> 151 <A NAME="android.view.MotionEvent.getHistoricalToolMinor_added(int)"></A> 152 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalToolMinor(int)" target="_top"><code>getHistoricalToolMinor</code></A>(<code>int</code>)</nobr> 153 </TD> 154 <TD> </TD> 155 </TR> 156 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 157 <TD VALIGN="TOP" WIDTH="25%"> 158 <A NAME="android.view.MotionEvent.getHistoricalToolMinor_added(int, int)"></A> 159 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalToolMinor(int, int)" target="_top"><code>getHistoricalToolMinor</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr> 160 </TD> 161 <TD> </TD> 162 </TR> 163 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 164 <TD VALIGN="TOP" WIDTH="25%"> 165 <A NAME="android.view.MotionEvent.getHistoricalTouchMajor_added(int)"></A> 166 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalTouchMajor(int)" target="_top"><code>getHistoricalTouchMajor</code></A>(<code>int</code>)</nobr> 167 </TD> 168 <TD> </TD> 169 </TR> 170 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 171 <TD VALIGN="TOP" WIDTH="25%"> 172 <A NAME="android.view.MotionEvent.getHistoricalTouchMajor_added(int, int)"></A> 173 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalTouchMajor(int, int)" target="_top"><code>getHistoricalTouchMajor</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr> 174 </TD> 175 <TD> </TD> 176 </TR> 177 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 178 <TD VALIGN="TOP" WIDTH="25%"> 179 <A NAME="android.view.MotionEvent.getHistoricalTouchMinor_added(int)"></A> 180 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalTouchMinor(int)" target="_top"><code>getHistoricalTouchMinor</code></A>(<code>int</code>)</nobr> 181 </TD> 182 <TD> </TD> 183 </TR> 184 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 185 <TD VALIGN="TOP" WIDTH="25%"> 186 <A NAME="android.view.MotionEvent.getHistoricalTouchMinor_added(int, int)"></A> 187 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getHistoricalTouchMinor(int, int)" target="_top"><code>getHistoricalTouchMinor</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr> 188 </TD> 189 <TD> </TD> 190 </TR> 191 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 192 <TD VALIGN="TOP" WIDTH="25%"> 193 <A NAME="android.view.MotionEvent.getOrientation_added()"></A> 194 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getOrientation()" target="_top"><code>getOrientation</code></A>()</nobr> 195 </TD> 196 <TD> </TD> 197 </TR> 198 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 199 <TD VALIGN="TOP" WIDTH="25%"> 200 <A NAME="android.view.MotionEvent.getOrientation_added(int)"></A> 201 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getOrientation(int)" target="_top"><code>getOrientation</code></A>(<code>int</code>)</nobr> 202 </TD> 203 <TD> </TD> 204 </TR> 205 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 206 <TD VALIGN="TOP" WIDTH="25%"> 207 <A NAME="android.view.MotionEvent.getPointerCoords_added(int, android.view.MotionEvent.PointerCoords)"></A> 208 <nobr><code>void</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getPointerCoords(int, android.view.MotionEvent.PointerCoords)" target="_top"><code>getPointerCoords</code></A>(<code>int,</nobr> PointerCoords<nobr><nobr></code>)</nobr> 209 </TD> 210 <TD> </TD> 211 </TR> 212 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 213 <TD VALIGN="TOP" WIDTH="25%"> 214 <A NAME="android.view.MotionEvent.getToolMajor_added()"></A> 215 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getToolMajor()" target="_top"><code>getToolMajor</code></A>()</nobr> 216 </TD> 217 <TD> </TD> 218 </TR> 219 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 220 <TD VALIGN="TOP" WIDTH="25%"> 221 <A NAME="android.view.MotionEvent.getToolMajor_added(int)"></A> 222 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getToolMajor(int)" target="_top"><code>getToolMajor</code></A>(<code>int</code>)</nobr> 223 </TD> 224 <TD> </TD> 225 </TR> 226 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 227 <TD VALIGN="TOP" WIDTH="25%"> 228 <A NAME="android.view.MotionEvent.getToolMinor_added()"></A> 229 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getToolMinor()" target="_top"><code>getToolMinor</code></A>()</nobr> 230 </TD> 231 <TD> </TD> 232 </TR> 233 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 234 <TD VALIGN="TOP" WIDTH="25%"> 235 <A NAME="android.view.MotionEvent.getToolMinor_added(int)"></A> 236 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getToolMinor(int)" target="_top"><code>getToolMinor</code></A>(<code>int</code>)</nobr> 237 </TD> 238 <TD> </TD> 239 </TR> 240 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 241 <TD VALIGN="TOP" WIDTH="25%"> 242 <A NAME="android.view.MotionEvent.getTouchMajor_added()"></A> 243 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getTouchMajor()" target="_top"><code>getTouchMajor</code></A>()</nobr> 244 </TD> 245 <TD> </TD> 246 </TR> 247 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 248 <TD VALIGN="TOP" WIDTH="25%"> 249 <A NAME="android.view.MotionEvent.getTouchMajor_added(int)"></A> 250 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getTouchMajor(int)" target="_top"><code>getTouchMajor</code></A>(<code>int</code>)</nobr> 251 </TD> 252 <TD> </TD> 253 </TR> 254 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 255 <TD VALIGN="TOP" WIDTH="25%"> 256 <A NAME="android.view.MotionEvent.getTouchMinor_added()"></A> 257 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getTouchMinor()" target="_top"><code>getTouchMinor</code></A>()</nobr> 258 </TD> 259 <TD> </TD> 260 </TR> 261 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 262 <TD VALIGN="TOP" WIDTH="25%"> 263 <A NAME="android.view.MotionEvent.getTouchMinor_added(int)"></A> 264 <nobr><code>float</code> <A HREF="../../../../reference/android/view/MotionEvent.html#getTouchMinor(int)" target="_top"><code>getTouchMinor</code></A>(<code>int</code>)</nobr> 265 </TD> 266 <TD> </TD> 267 </TR> 268 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 269 <TD VALIGN="TOP" WIDTH="25%"> 270 <A NAME="android.view.MotionEvent.obtain_added(long, long, int, int, int[], android.view.MotionEvent.PointerCoords[], int, float, float, int, int, int, int)"></A> 271 <nobr><code>MotionEvent</code> <A HREF="../../../../reference/android/view/MotionEvent.html#obtain(long, long, int, int, int[], android.view.MotionEvent.PointerCoords[], int, float, float, int, int, int, int)" target="_top"><code>obtain</code></A>(<code>long,</nobr> long<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int[]<nobr>,</nobr> PointerCoords[]<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 272 </TD> 273 <TD> </TD> 274 </TR> 275 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 276 <TD VALIGN="TOP" WIDTH="25%"> 277 <A NAME="android.view.MotionEvent.obtain_added(long, long, int, int, float, float, float, float, int, float, float, int, int)"></A> 278 <nobr><code>MotionEvent</code> <A HREF="../../../../reference/android/view/MotionEvent.html#obtain(long, long, int, int, float, float, float, float, int, float, float, int, int)" target="_top"><code>obtain</code></A>(<code>long,</nobr> long<nobr>,</nobr> int<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> float<nobr>,</nobr> float<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr> 279 </TD> 280 <TD> </TD> 281 </TR> 282 </TABLE> 283 284 <p> 285 <a NAME="Changed"></a> 286 <TABLE summary="Changed Methods" WIDTH="100%"> 287 <TR> 288 <TH VALIGN="TOP" COLSPAN=3>Changed Methods</FONT></TD> 289 </TH> 290 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 291 <TD VALIGN="TOP" WIDTH="25%"> 292 <A NAME="android.view.MotionEvent.describeContents_changed()"></A> 293 <nobr><code>int</code> <A HREF="../../../../reference/android/view/InputEvent.html#describeContents()" target="_top"><code>describeContents</code></A>() </nobr> 294 </TD> 295 <TD VALIGN="TOP" WIDTH="30%"> 296 Method was locally defined, but is now inherited from <a href="../../../../reference/android/view/InputEvent.html#describeContents()" target="_top"><code>InputEvent</code></a>. 297 </TD> 298 <TD> </TD> 299 </TR> 300 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 301 <TD VALIGN="TOP" WIDTH="25%"> 302 <A NAME="android.view.MotionEvent.getDeviceId_changed()"></A> 303 <nobr><code>int</code> <A HREF="../../../../reference/android/view/InputEvent.html#getDeviceId()" target="_top"><code>getDeviceId</code></A>() </nobr> 304 </TD> 305 <TD VALIGN="TOP" WIDTH="30%"> 306 Method was locally defined, but is now inherited from <a href="../../../../reference/android/view/InputEvent.html#getDeviceId()" target="_top"><code>InputEvent</code></a>. 307 </TD> 308 <TD> </TD> 309 </TR> 310 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 311 <TD VALIGN="TOP" WIDTH="25%"> 312 <A NAME="android.view.MotionEvent.recycle_changed()"></A> 313 <nobr><code>void</code> <A HREF="../../../../reference/android/view/MotionEvent.html#recycle()" target="_top"><code>recycle</code></A>() </nobr> 314 </TD> 315 <TD VALIGN="TOP" WIDTH="30%"> 316 Change from non-final to final.<br> 317 </TD> 318 <TD> </TD> 319 </TR> 320 </TABLE> 321 322 <a NAME="fields"></a> 323 <p> 324 <a NAME="Added"></a> 325 <TABLE summary="Added Fields" WIDTH="100%"> 326 <TR> 327 <TH VALIGN="TOP" COLSPAN=2>Added Fields</FONT></TD> 328 </TH> 329 <TR BGCOLOR="#FFFFFF" CLASS="TableRowColor"> 330 <TD VALIGN="TOP" WIDTH="25%"> 331 <A NAME="android.view.MotionEvent.FLAG_WINDOW_IS_OBSCURED"></A> 332 <nobr><code>int</code> <A HREF="../../../../reference/android/view/MotionEvent.html#FLAG_WINDOW_IS_OBSCURED" target="_top"><code>FLAG_WINDOW_IS_OBSCURED</code></A></nobr> 333 </TD> 334 <TD> </TD> 335 </TR> 336 </TABLE> 337 338 </div> 339 <div id="footer"> 340 <div id="copyright"> 341 Except as noted, this content is licensed under 342 <a href="http://creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>. 343 For details and restrictions, see the <a href="/license.html">Content License</a>. 344 </div> 345 <div id="footerlinks"> 346 <p> 347 <a href="http://www.android.com/terms.html">Site Terms of Service</a> - 348 <a href="http://www.android.com/privacy.html">Privacy Policy</a> - 349 <a href="http://www.android.com/branding.html">Brand Guidelines</a> 350 </p> 351 </div> 352 </div> <!-- end footer --> 353 </div><!-- end doc-content --> 354 </div> <!-- end body-content --> 355 <script src="//www.google-analytics.com/ga.js" type="text/javascript"> 356 </script> 357 <script type="text/javascript"> 358 try { 359 var pageTracker = _gat._getTracker("UA-5831155-1"); 360 pageTracker._setAllowAnchor(true); 361 pageTracker._initData(); 362 pageTracker._trackPageview(); 363 } catch(e) {} 364 </script> 365 </BODY> 366 </HTML> 367