Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 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 | <html> |
| 77 | <head> |
| 78 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 79 | |
| 80 | <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> |
| 81 | <title>CameraUpdateFactory | Android Developers</title> |
| 82 | |
| 83 | <!-- STYLESHEETS --> |
| 84 | <link rel="stylesheet" |
Robert Ly | f6f5cf4 | 2013-02-04 18:24:15 -0800 | [diff] [blame] | 85 | href="//fonts.googleapis.com/css?family=Roboto:regular,medium,thin,italic,mediumitalic,bold" title="roboto"> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 86 | <link href="/assets/css/default.css" rel="stylesheet" type="text/css"> |
| 87 | |
| 88 | |
| 89 | |
| 90 | <!-- JAVASCRIPT --> |
Dirk Dougherty | 8a72b6e | 2013-02-01 15:00:09 -0800 | [diff] [blame] | 91 | <script src="//www.google.com/jsapi" type="text/javascript"></script> |
Robert Ly | f6f5cf4 | 2013-02-04 18:24:15 -0800 | [diff] [blame] | 92 | <script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 93 | <script type="text/javascript"> |
| 94 | var toRoot = "/"; |
Robert Ly | f6f5cf4 | 2013-02-04 18:24:15 -0800 | [diff] [blame] | 95 | |
| 96 | var devsite = false; |
| 97 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 98 | </script> |
| 99 | <script src="/assets/js/docs.js" type="text/javascript"></script> |
| 100 | |
| 101 | <script src="/gms_navtree_data.js" type="text/javascript"></script> |
| 102 | <script src="/gcm_navtree_data.js" type="text/javascript"></script> |
| 103 | |
Robert Ly | f6f5cf4 | 2013-02-04 18:24:15 -0800 | [diff] [blame] | 104 | |
| 105 | <script type="text/javascript"> |
| 106 | var _gaq = _gaq || []; |
| 107 | _gaq.push(['_setAccount', 'UA-5831155-1']); |
| 108 | _gaq.push(['_trackPageview']); |
| 109 | |
| 110 | (function() { |
| 111 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
| 112 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
| 113 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
| 114 | })(); |
| 115 | </script> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 116 | </head> |
Robert Ly | 555c93b | 2012-12-03 12:24:07 -0800 | [diff] [blame] | 117 | <body class="gc-documentation google |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 118 | develop" itemscope itemtype="http://schema.org/Article"> |
| 119 | <div id="doc-api-level" class="" style="display:none"></div> |
| 120 | <a name="top"></a> |
| 121 | |
| 122 | <!-- Header --> |
| 123 | <div id="header"> |
| 124 | <div class="wrap" id="header-wrap"> |
| 125 | <div class="col-3 logo"> |
| 126 | <a href="/index.html"> |
| 127 | <img src="/assets/images/dac_logo.png" width="123" height="25" alt="Android Developers" /> |
| 128 | </a> |
| 129 | <div class="btn-quicknav" id="btn-quicknav"> |
| 130 | <a href="#" class="arrow-inactive">Quicknav</a> |
| 131 | <a href="#" class="arrow-active">Quicknav</a> |
| 132 | </div> |
| 133 | </div> |
| 134 | <ul class="nav-x col-9"> |
| 135 | <li class="design"> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 136 | <a href="/design/index.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 137 | zh-TW-lang="設計" |
| 138 | zh-CN-lang="设计" |
| 139 | ru-lang="Проектирование" |
| 140 | ko-lang="디자인" |
| 141 | ja-lang="設計" |
| 142 | es-lang="Diseñar" |
| 143 | >Design</a></li> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 144 | <li class="develop"><a href="/develop/index.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 145 | zh-TW-lang="開發" |
| 146 | zh-CN-lang="开发" |
| 147 | ru-lang="Разработка" |
| 148 | ko-lang="개발" |
| 149 | ja-lang="開発" |
| 150 | es-lang="Desarrollar" |
| 151 | >Develop</a></li> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 152 | <li class="distribute last"><a href="/distribute/index.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 153 | zh-TW-lang="發佈" |
| 154 | zh-CN-lang="分发" |
| 155 | ru-lang="Распространение" |
| 156 | ko-lang="배포" |
| 157 | ja-lang="配布" |
| 158 | es-lang="Distribuir" |
| 159 | >Distribute</a></li> |
| 160 | </ul> |
| 161 | |
| 162 | <!-- New Search --> |
| 163 | <div class="menu-container"> |
| 164 | <div class="moremenu"> |
| 165 | <div id="more-btn"></div> |
| 166 | </div> |
| 167 | <div class="morehover" id="moremenu"> |
| 168 | <div class="top"></div> |
| 169 | <div class="mid"> |
| 170 | <div class="header">Links</div> |
| 171 | <ul> |
| 172 | <li><a href="https://play.google.com/apps/publish/">Google Play Developer Console</a></li> |
| 173 | <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> |
| 174 | <li><a href="/about/index.html">About Android</a></li> |
| 175 | </ul> |
| 176 | <div class="header">Android Sites</div> |
| 177 | <ul> |
| 178 | <li><a href="http://www.android.com">Android.com</a></li> |
| 179 | <li class="active"><a>Android Developers</a></li> |
| 180 | <li><a href="http://source.android.com">Android Open Source Project</a></li> |
| 181 | </ul> |
Robert Ly | f6f5cf4 | 2013-02-04 18:24:15 -0800 | [diff] [blame] | 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | <div class="header">Language</div> |
| 187 | <div id="language" class="locales"> |
| 188 | <select name="language" onChange="changeLangPref(this.value, true)"> |
| 189 | <option value="en">English</option> |
| 190 | <option value="es">Español</option> |
| 191 | <option value="ja">日本語</option> |
| 192 | <option value="ko">한국어</option> |
| 193 | <option value="ru">Русский</option> |
| 194 | <option value="zh-CN">中文 (中国)</option> |
| 195 | <option value="zh-TW">中文 (台灣)</option> |
| 196 | </select> |
| 197 | </div> |
| 198 | <script type="text/javascript"> |
| 199 | <!-- |
| 200 | loadLangPref(); |
| 201 | //--> |
| 202 | </script> |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 207 | <br class="clearfix" /> |
| 208 | </div> |
| 209 | <div class="bottom"></div> |
| 210 | </div> |
| 211 | <div class="search" id="search-container"> |
| 212 | <div class="search-inner"> |
| 213 | <div id="search-btn"></div> |
| 214 | <div class="left"></div> |
| 215 | <form onsubmit="return submit_search()"> |
| 216 | <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" |
| 217 | onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" |
| 218 | onkeydown="return search_changed(event, true, '/')" |
| 219 | onkeyup="return search_changed(event, false, '/')" /> |
| 220 | </form> |
| 221 | <div class="right"></div> |
| 222 | <a class="close hide">close</a> |
| 223 | <div class="left"></div> |
| 224 | <div class="right"></div> |
| 225 | </div> |
| 226 | </div> |
| 227 | <div id="search_filtered_wrapper"> |
| 228 | <div id="search_filtered_div" class="no-display"> |
| 229 | <ul id="search_filtered"> |
| 230 | </ul> |
| 231 | </div> |
| 232 | </div> |
| 233 | |
| 234 | </div> |
| 235 | <!-- /New Search> |
| 236 | |
| 237 | |
| 238 | <!-- Expanded quicknav --> |
| 239 | <div id="quicknav" class="col-9"> |
| 240 | <ul> |
| 241 | <li class="design"> |
| 242 | <ul> |
| 243 | <li><a href="/design/index.html">Get Started</a></li> |
| 244 | <li><a href="/design/style/index.html">Style</a></li> |
| 245 | <li><a href="/design/patterns/index.html">Patterns</a></li> |
| 246 | <li><a href="/design/building-blocks/index.html">Building Blocks</a></li> |
| 247 | <li><a href="/design/downloads/index.html">Downloads</a></li> |
| 248 | <li><a href="/design/videos/index.html">Videos</a></li> |
| 249 | </ul> |
| 250 | </li> |
| 251 | <li class="develop"> |
| 252 | <ul> |
| 253 | <li><a href="/training/index.html" |
| 254 | zh-TW-lang="訓練課程" |
| 255 | zh-CN-lang="培训" |
| 256 | ru-lang="Курсы" |
| 257 | ko-lang="교육" |
| 258 | ja-lang="トレーニング" |
| 259 | es-lang="Capacitación" |
| 260 | >Training</a></li> |
| 261 | <li><a href="/guide/components/index.html" |
| 262 | zh-TW-lang="API 指南" |
| 263 | zh-CN-lang="API 指南" |
| 264 | ru-lang="Руководства по API" |
| 265 | ko-lang="API 가이드" |
| 266 | ja-lang="API ガイド" |
| 267 | es-lang="Guías de la API" |
| 268 | >API Guides</a></li> |
| 269 | <li><a href="/reference/packages.html" |
| 270 | zh-TW-lang="參考資源" |
| 271 | zh-CN-lang="参考" |
| 272 | ru-lang="Справочник" |
| 273 | ko-lang="참조문서" |
| 274 | ja-lang="リファレンス" |
| 275 | es-lang="Referencia" |
| 276 | >Reference</a></li> |
| 277 | <li><a href="/tools/index.html" |
| 278 | zh-TW-lang="相關工具" |
| 279 | zh-CN-lang="工具" |
| 280 | ru-lang="Инструменты" |
| 281 | ko-lang="도구" |
| 282 | ja-lang="ツール" |
| 283 | es-lang="Herramientas" |
| 284 | >Tools</a> |
| 285 | <ul><li><a href="/sdk/index.html">Get the SDK</a></li></ul> |
| 286 | </li> |
| 287 | <li><a href="/google/index.html">Google Services</a> |
| 288 | </li> |
| 289 | </ul> |
| 290 | </li> |
| 291 | <li class="distribute last"> |
| 292 | <ul> |
| 293 | <li><a href="/distribute/index.html">Google Play</a></li> |
| 294 | <li><a href="/distribute/googleplay/publish/index.html">Publishing</a></li> |
| 295 | <li><a href="/distribute/googleplay/promote/index.html">Promoting</a></li> |
| 296 | <li><a href="/distribute/googleplay/quality/index.html">App Quality</a></li> |
| 297 | <li><a href="/distribute/googleplay/spotlight/index.html">Spotlight</a></li> |
| 298 | <li><a href="/distribute/open.html">Open Distribution</a></li> |
| 299 | </ul> |
| 300 | </li> |
| 301 | </ul> |
| 302 | </div> |
| 303 | <!-- /Expanded quicknav --> |
| 304 | </div> |
| 305 | </div> |
| 306 | <!-- /Header --> |
| 307 | |
| 308 | |
| 309 | <div id="searchResults" class="wrap" style="display:none;"> |
| 310 | <h2 id="searchTitle">Results</h2> |
| 311 | <div id="leftSearchControl" class="search-control">Loading...</div> |
| 312 | </div> |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | <!-- Secondary x-nav --> |
| 318 | <div id="nav-x"> |
| 319 | <div class="wrap"> |
| 320 | <ul class="nav-x col-9 develop" style="width:100%"> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 321 | <li class="training"><a href="/training/index.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 322 | zh-TW-lang="訓練課程" |
| 323 | zh-CN-lang="培训" |
| 324 | ru-lang="Курсы" |
| 325 | ko-lang="교육" |
| 326 | ja-lang="トレーニング" |
| 327 | es-lang="Capacitación" |
| 328 | >Training</a></li> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 329 | <li class="guide"><a href="/guide/components/index.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 330 | zh-TW-lang="API 指南" |
| 331 | zh-CN-lang="API 指南" |
| 332 | ru-lang="Руководства по API" |
| 333 | ko-lang="API 가이드" |
| 334 | ja-lang="API ガイド" |
| 335 | es-lang="Guías de la API" |
| 336 | >API Guides</a></li> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 337 | <li class="reference"><a href="/reference/packages.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 338 | zh-TW-lang="參考資源" |
| 339 | zh-CN-lang="参考" |
| 340 | ru-lang="Справочник" |
| 341 | ko-lang="참조문서" |
| 342 | ja-lang="リファレンス" |
| 343 | es-lang="Referencia" |
| 344 | >Reference</a></li> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 345 | <li class="tools"><a href="/tools/index.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 346 | zh-TW-lang="相關工具" |
| 347 | zh-CN-lang="工具" |
| 348 | ru-lang="Инструменты" |
| 349 | ko-lang="도구" |
| 350 | ja-lang="ツール" |
| 351 | es-lang="Herramientas" |
| 352 | >Tools</a></li> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 353 | <li class="google"><a href="/google/index.html" |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 354 | >Google Services</a> |
| 355 | </li> |
| 356 | </ul> |
| 357 | </div> |
| 358 | |
| 359 | </div> |
| 360 | <!-- /Sendondary x-nav --> |
| 361 | |
| 362 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 363 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 364 | <div class="wrap clearfix" id="body-content"> |
| 365 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 366 | <div id="devdoc-nav" class="scroll-pane"> |
| 367 | <a class="totop" href="#top" data-g-event="left-nav-top">to top</a> |
| 368 | |
| 369 | |
| 370 | |
| 371 | <ul id="nav"> |
| 372 | <li class="nav-section"> |
| 373 | <div class="nav-section-header empty"><a href="/google/index.html"> |
| 374 | <span class="en">Overview</span> |
| 375 | </a></div> |
| 376 | </li> |
| 377 | |
| 378 | <li class="nav-section"> |
| 379 | <div class="nav-section-header"><a href="/google/play-services/index.html"> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 380 | <span class="en">Google Play Services</span></a> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 381 | </div> |
| 382 | <ul> |
| 383 | <li><a href="/google/play-services/setup.html"> |
| 384 | <span class="en">Setup</span></a> |
| 385 | </li> |
| 386 | |
| 387 | <li><a href="/google/play-services/auth.html"> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 388 | <span class="en">Authorization</span></a> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 389 | </li> |
| 390 | |
| 391 | <li><a href="/google/play-services/plus.html"> |
| 392 | <span class="en">Google+</span></a> |
| 393 | </li> |
| 394 | |
| 395 | <li><a href="/google/play-services/maps.html"> |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 396 | <span class="en">Google Maps</span></a> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 397 | </li> |
| 398 | |
| 399 | <li id="gms-tree-list" class="nav-section"> |
| 400 | <div class="nav-section-header"> |
| 401 | <a href="/reference/gms-packages.html"> |
| 402 | <span class="en">Reference</span> |
| 403 | </a> |
| 404 | <div> |
| 405 | </li> |
| 406 | |
| 407 | </ul> |
| 408 | </li> |
| 409 | |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 410 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 411 | <li class="nav-section"> |
| 412 | <div class="nav-section-header"><a href="/google/play/billing/index.html"> |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 413 | <span class="en">Google Play In-app Billing</span></a> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 414 | </div> |
| 415 | <ul> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 416 | <li><a href="/google/play/billing/billing_overview.html"> |
| 417 | <span class="en">Overview</span></a> |
| 418 | </li> |
| 419 | <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html"> |
| 420 | <span class="en">Version 3 API</span></a></div> |
| 421 | <ul> |
| 422 | <li><a href="/google/play/billing/billing_integrate.html"> |
| 423 | <span class="en">Implementing the API</span></a></li> |
| 424 | <li><a href="/google/play/billing/billing_reference.html"> |
| 425 | <span class="en">Reference</span></a></li> |
| 426 | </ul> |
| 427 | </li> |
| 428 | <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html"> |
| 429 | <span class="en">Version 2 API</span></a></div> |
| 430 | <ul> |
| 431 | <li><a href="/google/play/billing/v2/billing_integrate.html"> |
| 432 | <span class="en">Implementing the API</span></a></li> |
| 433 | <li><a href="/google/play/billing/v2/billing_subscriptions.html"> |
| 434 | <span class="en">Subscriptions</span></a></li> |
| 435 | <li><a href="/google/play/billing/v2/billing_reference.html"> |
| 436 | <span class="en">Reference</span></a></li> |
| 437 | </ul> |
| 438 | </li> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 439 | <li><a href="/google/play/billing/billing_subscriptions.html"> |
| 440 | <span class="en">Subscriptions</span></a> |
| 441 | </li> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 442 | <li><a href="/google/play/billing/billing_best_practices.html"> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 443 | <span class="en">Security and Design</span></a> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 444 | </li> |
| 445 | <li><a href="/google/play/billing/billing_testing.html"> |
Robert Ly | 555c93b | 2012-12-03 12:24:07 -0800 | [diff] [blame] | 446 | <span class="en">Testing In-app Billing</span></a> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 447 | </li> |
| 448 | <li><a href="/google/play/billing/billing_admin.html"> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 449 | <span class="en">Administering In-app Billing</span></a> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 450 | </li> |
| 451 | <li><a href="/google/play/billing/versions.html"> |
| 452 | <span class="en">Version Notes</span></a> |
| 453 | </li> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 454 | </ul> |
| 455 | </li> |
| 456 | |
| 457 | <li class="nav-section"> |
| 458 | <div class="nav-section-header"><a href="/google/play/dist.html"> |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 459 | <span class="en">Google Play Distribution</span></a> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 460 | </div> |
| 461 | <ul> |
| 462 | <li><a href="/google/play/filters.html"> |
| 463 | <span class="en">Filters on Google Play</span></a> |
| 464 | </li> |
| 465 | |
| 466 | <li><a href="/google/play/publishing/multiple-apks.html"> |
| 467 | <span class="en">Multiple APK Support</span></a> |
| 468 | </li> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 469 | <li><a href="/google/play/expansion-files.html"> |
| 470 | <span class="en">APK Expansion Files</span></a> |
| 471 | </li> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 472 | <li class="nav-section"> |
| 473 | <div class="nav-section-header"><a href="/google/play/licensing/index.html"> |
| 474 | <span class="en">Application Licensing</span></a> |
| 475 | </div> |
| 476 | <ul> |
| 477 | <li><a href="/google/play/licensing/overview.html"> |
| 478 | <span class="en">Licensing Overview</span></a> |
| 479 | </li> |
| 480 | <li><a href="/google/play/licensing/setting-up.html"> |
| 481 | <span class="en">Setting Up for Licensing</span></a> |
| 482 | </li> |
| 483 | <li><a href="/google/play/licensing/adding-licensing.html"> |
| 484 | <span class="en">Adding Licensing to Your App</span></a> |
| 485 | </li> |
| 486 | <li><a href="/google/play/licensing/licensing-reference.html"> |
| 487 | <span class="en">Licensing Reference</span></a> |
| 488 | </li> |
| 489 | </ul> |
| 490 | </li> |
| 491 | </ul> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 492 | </li> |
| 493 | |
| 494 | <li class="nav-section"> |
| 495 | <div class="nav-section-header"><a href="/google/gcm/index.html"> |
| 496 | <span class="en">Google Cloud Messaging</span></a> |
| 497 | </div> |
| 498 | <ul> |
| 499 | <li><a href="/google/gcm/gs.html"> |
| 500 | <span class="en">Getting Started</span></a> |
| 501 | </li> |
| 502 | <li><a href="/google/gcm/gcm.html"> |
| 503 | <span class="en">Architectural Overview</span></a> |
| 504 | </li> |
| 505 | <li><a href="/google/gcm/demo.html"> |
| 506 | <span class="en">Demo App Tutorial</span></a> |
| 507 | </li> |
| 508 | <li><a href="/google/gcm/adv.html"> |
| 509 | <span class="en">Advanced Topics</span></a> |
| 510 | </li> |
| 511 | <li><a href="/google/gcm/c2dm.html"> |
| 512 | <span class="en">Migration</span></a> |
| 513 | </li> |
| 514 | <li id="gcm-tree-list" class="nav-section"> |
| 515 | <div class="nav-section-header"> |
| 516 | <a href="/reference/gcm-packages.html"> |
| 517 | <span class="en">Reference</span> |
| 518 | </a> |
| 519 | <div> |
| 520 | </li> |
| 521 | </ul> |
| 522 | </li> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 523 | |
| 524 | |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 525 | <li class="nav-section"> |
| 526 | <div class="nav-section-header"><a href="/google/backup/index.html"> |
| 527 | Android Backup Service</a> |
| 528 | </div> |
| 529 | <ul> |
| 530 | <li><a href="/google/backup/signup.html"> |
| 531 | Register</a> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 532 | </li> |
Robert Ly | d84d5cc | 2013-01-04 10:13:35 -0800 | [diff] [blame] | 533 | </ul> |
| 534 | </li> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 535 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 536 | </ul> |
| 537 | |
| 538 | <script type="text/javascript"> |
| 539 | <!-- |
| 540 | buildToggleLists(); |
| 541 | changeNavLang(getLangPref()); |
| 542 | //--> |
| 543 | </script> |
| 544 | |
| 545 | |
| 546 | |
| 547 | |
| 548 | </div> |
| 549 | <script type="text/javascript"> |
| 550 | showGoogleRefTree(); |
| 551 | |
| 552 | </script> |
| 553 | </div> <!-- end side-nav --> |
| 554 | <script> |
| 555 | $(document).ready(function() { |
| 556 | scrollIntoView("devdoc-nav"); |
| 557 | }); |
| 558 | </script> |
| 559 | |
| 560 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 561 | |
| 562 | |
| 563 | <div class="col-12" id="doc-col"> |
| 564 | |
| 565 | <div id="api-info-block"> |
| 566 | |
| 567 | |
| 568 | |
| 569 | |
| 570 | |
| 571 | |
| 572 | |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | <div class="sum-details-links"> |
| 578 | |
| 579 | Summary: |
| 580 | |
| 581 | |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | |
| 589 | |
| 590 | |
| 591 | <a href="#pubmethods">Methods</a> |
| 592 | |
| 593 | |
| 594 | |
| 595 | |
| 596 | | <a href="#inhmethods">Inherited Methods</a> |
| 597 | |
| 598 | | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> |
| 599 | |
| 600 | </div><!-- end sum-details-links --> |
| 601 | <div class="api-level"> |
| 602 | |
| 603 | |
| 604 | |
| 605 | |
| 606 | </div> |
| 607 | </div><!-- end api-info-block --> |
| 608 | |
| 609 | |
| 610 | <!-- ======== START OF CLASS DATA ======== --> |
| 611 | |
| 612 | <div id="jd-header"> |
| 613 | public |
| 614 | |
| 615 | final |
| 616 | |
| 617 | class |
| 618 | <h1 itemprop="name">CameraUpdateFactory</h1> |
| 619 | |
| 620 | |
| 621 | |
| 622 | |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 623 | extends Object<br/> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 624 | |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | |
| 630 | |
| 631 | |
| 632 | |
| 633 | </div><!-- end header --> |
| 634 | |
| 635 | <div id="naMessage"></div> |
| 636 | |
| 637 | <div id="jd-content" class="api apilevel-"> |
| 638 | <table class="jd-inheritance-table"> |
| 639 | |
| 640 | |
| 641 | <tr> |
| 642 | |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 643 | <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 644 | </tr> |
| 645 | |
| 646 | |
| 647 | <tr> |
| 648 | |
| 649 | <td class="jd-inheritance-space"> ↳</td> |
| 650 | |
| 651 | <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gms.maps.CameraUpdateFactory</td> |
| 652 | </tr> |
| 653 | |
| 654 | |
| 655 | </table> |
| 656 | |
| 657 | |
| 658 | |
| 659 | |
| 660 | |
| 661 | |
| 662 | |
| 663 | <div class="jd-descr"> |
| 664 | |
| 665 | |
| 666 | <h2>Class Overview</h2> |
| 667 | <p itemprop="articleBody">A class containing methods for creating <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> objects that change a map's camera. |
| 668 | To modify the map's camera, call <code><a href="/reference/com/google/android/gms/maps/GoogleMap.html#animateCamera(com.google.android.gms.maps.CameraUpdate)">animateCamera(CameraUpdate)</a></code>, |
| 669 | <code><a href="/reference/com/google/android/gms/maps/GoogleMap.html#animateCamera(com.google.android.gms.maps.CameraUpdate, com.google.android.gms.maps.GoogleMap.CancelableCallback)">animateCamera(CameraUpdate, GoogleMap.CancelableCallback)</a></code> or |
| 670 | <code><a href="/reference/com/google/android/gms/maps/GoogleMap.html#moveCamera(com.google.android.gms.maps.CameraUpdate)">moveCamera(CameraUpdate)</a></code>, using a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> object created with this |
| 671 | class. |
| 672 | <p> |
| 673 | For example, to zoom in on a map, you can use the following code: |
| 674 | <pre> <code>GoogleMap map = ...; |
| 675 | map.animateCamera(CameraUpdateFactory.zoomIn());</code></pre> |
| 676 | <p> |
| 677 | Prior to using any methods from this class, you must do one of the following to ensure that this |
| 678 | class is initialized: |
| 679 | <ul> |
| 680 | <li> Wait for a <code><a href="/reference/com/google/android/gms/maps/GoogleMap.html">GoogleMap</a></code> to become available from a <code><a href="/reference/com/google/android/gms/maps/MapFragment.html">MapFragment</a></code> or |
| 681 | <code><a href="/reference/com/google/android/gms/maps/MapView.html">MapView</a></code> that you have added to your application. You can verify that the |
| 682 | <code><a href="/reference/com/google/android/gms/maps/GoogleMap.html">GoogleMap</a></code> is available by calling the <code>getMap()</code> method and checking that the |
| 683 | returned object is not null. |
| 684 | <li> Call <code><a href="/reference/com/google/android/gms/maps/MapsInitializer.html#initialize(android.content.Context)">initialize(Context)</a></code>. As long as a |
| 685 | <code><a href="/reference/com/google/android/gms/common/GooglePlayServicesNotAvailableException.html">GooglePlayServicesNotAvailableException</a></code> isn't thrown, this class will be correctly initialized. |
| 686 | </ul> |
Robert Ly | 05c8e63 | 2013-02-25 14:43:01 -0800 | [diff] [blame] | 687 | <p> |
| 688 | <h3>Developer Guide</h3> |
| 689 | <p> |
| 690 | For more information, read the <a |
| 691 | href="https://developers.google.com/maps/documentation/android/views">Changing the View</a> |
| 692 | developer guide. |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 693 | </p> |
| 694 | |
| 695 | |
| 696 | |
| 697 | |
| 698 | |
| 699 | </div><!-- jd-descr --> |
| 700 | |
| 701 | |
| 702 | |
| 703 | |
| 704 | |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | |
| 713 | |
| 714 | |
| 715 | |
| 716 | <div class="jd-descr"> |
| 717 | |
| 718 | |
| 719 | <h2>Summary</h2> |
| 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 | <!-- ========== METHOD SUMMARY =========== --> |
| 748 | <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> |
| 749 | |
| 750 | |
| 751 | |
| 752 | |
| 753 | <tr class="alt-color api apilevel-" > |
| 754 | <td class="jd-typecol"><nobr> |
| 755 | |
| 756 | |
| 757 | |
| 758 | static |
| 759 | |
| 760 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 761 | </td> |
| 762 | <td class="jd-linkcol" width="100%"><nobr> |
| 763 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newCameraPosition(com.google.android.gms.maps.model.CameraPosition)">newCameraPosition</a></span>(<a href="/reference/com/google/android/gms/maps/model/CameraPosition.html">CameraPosition</a> cameraPosition)</nobr> |
| 764 | |
| 765 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the camera to a specified <code><a href="/reference/com/google/android/gms/maps/model/CameraPosition.html">CameraPosition</a></code>.</div> |
| 766 | |
| 767 | </td></tr> |
| 768 | |
| 769 | |
| 770 | |
| 771 | <tr class=" api apilevel-" > |
| 772 | <td class="jd-typecol"><nobr> |
| 773 | |
| 774 | |
| 775 | |
| 776 | static |
| 777 | |
| 778 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 779 | </td> |
| 780 | <td class="jd-linkcol" width="100%"><nobr> |
| 781 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newLatLng(com.google.android.gms.maps.model.LatLng)">newLatLng</a></span>(<a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a> latLng)</nobr> |
| 782 | |
| 783 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the center of the screen to a latitude and |
| 784 | longitude specified by a <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> object.</div> |
| 785 | |
| 786 | </td></tr> |
| 787 | |
| 788 | |
| 789 | |
| 790 | <tr class="alt-color api apilevel-" > |
| 791 | <td class="jd-typecol"><nobr> |
| 792 | |
| 793 | |
| 794 | |
| 795 | static |
| 796 | |
| 797 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 798 | </td> |
| 799 | <td class="jd-linkcol" width="100%"><nobr> |
| 800 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int)">newLatLngBounds</a></span>(<a href="/reference/com/google/android/gms/maps/model/LatLngBounds.html">LatLngBounds</a> bounds, int padding)</nobr> |
| 801 | |
| 802 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that transforms the camera such that the specified |
| 803 | latitude/longitude bounds are centered on screen at the greatest possible zoom level.</div> |
| 804 | |
| 805 | </td></tr> |
| 806 | |
| 807 | |
| 808 | |
| 809 | <tr class=" api apilevel-" > |
| 810 | <td class="jd-typecol"><nobr> |
| 811 | |
| 812 | |
| 813 | |
| 814 | static |
| 815 | |
| 816 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 817 | </td> |
| 818 | <td class="jd-linkcol" width="100%"><nobr> |
| 819 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int, int, int)">newLatLngBounds</a></span>(<a href="/reference/com/google/android/gms/maps/model/LatLngBounds.html">LatLngBounds</a> bounds, int width, int height, int padding)</nobr> |
| 820 | |
| 821 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that transforms the camera such that the specified |
| 822 | latitude/longitude bounds are centered on screen within a bounding box of specified |
| 823 | dimensions at the greatest possible zoom level.</div> |
| 824 | |
| 825 | </td></tr> |
| 826 | |
| 827 | |
| 828 | |
| 829 | <tr class="alt-color api apilevel-" > |
| 830 | <td class="jd-typecol"><nobr> |
| 831 | |
| 832 | |
| 833 | |
| 834 | static |
| 835 | |
| 836 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 837 | </td> |
| 838 | <td class="jd-linkcol" width="100%"><nobr> |
| 839 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newLatLngZoom(com.google.android.gms.maps.model.LatLng, float)">newLatLngZoom</a></span>(<a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a> latLng, float zoom)</nobr> |
| 840 | |
| 841 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the center of the screen to a latitude and |
| 842 | longitude specified by a <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> object, and moves to the given zoom level.</div> |
| 843 | |
| 844 | </td></tr> |
| 845 | |
| 846 | |
| 847 | |
| 848 | <tr class=" api apilevel-" > |
| 849 | <td class="jd-typecol"><nobr> |
| 850 | |
| 851 | |
| 852 | |
| 853 | static |
| 854 | |
| 855 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 856 | </td> |
| 857 | <td class="jd-linkcol" width="100%"><nobr> |
| 858 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#scrollBy(float, float)">scrollBy</a></span>(float xPixel, float yPixel)</nobr> |
| 859 | |
| 860 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that scrolls the camera over the map, shifting the center of |
| 861 | view by the specified number of pixels in the x and y directions.</div> |
| 862 | |
| 863 | </td></tr> |
| 864 | |
| 865 | |
| 866 | |
| 867 | <tr class="alt-color api apilevel-" > |
| 868 | <td class="jd-typecol"><nobr> |
| 869 | |
| 870 | |
| 871 | |
| 872 | static |
| 873 | |
| 874 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 875 | </td> |
| 876 | <td class="jd-linkcol" width="100%"><nobr> |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 877 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#zoomBy(float, android.graphics.Point)">zoomBy</a></span>(float amount, Point focus)</nobr> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 878 | |
| 879 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that shifts the zoom level of the current camera viewpoint.</div> |
| 880 | |
| 881 | </td></tr> |
| 882 | |
| 883 | |
| 884 | |
| 885 | <tr class=" api apilevel-" > |
| 886 | <td class="jd-typecol"><nobr> |
| 887 | |
| 888 | |
| 889 | |
| 890 | static |
| 891 | |
| 892 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 893 | </td> |
| 894 | <td class="jd-linkcol" width="100%"><nobr> |
| 895 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#zoomBy(float)">zoomBy</a></span>(float amount)</nobr> |
| 896 | |
| 897 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that shifts the zoom level of the current camera viewpoint.</div> |
| 898 | |
| 899 | </td></tr> |
| 900 | |
| 901 | |
| 902 | |
| 903 | <tr class="alt-color api apilevel-" > |
| 904 | <td class="jd-typecol"><nobr> |
| 905 | |
| 906 | |
| 907 | |
| 908 | static |
| 909 | |
| 910 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 911 | </td> |
| 912 | <td class="jd-linkcol" width="100%"><nobr> |
| 913 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#zoomIn()">zoomIn</a></span>()</nobr> |
| 914 | |
| 915 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that zooms in on the map by moving the viewpoint's height |
| 916 | closer to the Earth's surface.</div> |
| 917 | |
| 918 | </td></tr> |
| 919 | |
| 920 | |
| 921 | |
| 922 | <tr class=" api apilevel-" > |
| 923 | <td class="jd-typecol"><nobr> |
| 924 | |
| 925 | |
| 926 | |
| 927 | static |
| 928 | |
| 929 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 930 | </td> |
| 931 | <td class="jd-linkcol" width="100%"><nobr> |
| 932 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#zoomOut()">zoomOut</a></span>()</nobr> |
| 933 | |
| 934 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that zooms out on the map by moving the viewpoint's height |
| 935 | farther away from the Earth's surface.</div> |
| 936 | |
| 937 | </td></tr> |
| 938 | |
| 939 | |
| 940 | |
| 941 | <tr class="alt-color api apilevel-" > |
| 942 | <td class="jd-typecol"><nobr> |
| 943 | |
| 944 | |
| 945 | |
| 946 | static |
| 947 | |
| 948 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></nobr> |
| 949 | </td> |
| 950 | <td class="jd-linkcol" width="100%"><nobr> |
| 951 | <span class="sympad"><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#zoomTo(float)">zoomTo</a></span>(float zoom)</nobr> |
| 952 | |
| 953 | <div class="jd-descrdiv">Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the camera viewpoint to a particular zoom level.</div> |
| 954 | |
| 955 | </td></tr> |
| 956 | |
| 957 | |
| 958 | |
| 959 | </table> |
| 960 | |
| 961 | |
| 962 | |
| 963 | |
| 964 | |
| 965 | |
| 966 | |
| 967 | <!-- ========== METHOD SUMMARY =========== --> |
| 968 | <table id="inhmethods" class="jd-sumtable"><tr><th> |
| 969 | <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> |
| 970 | <div style="clear:left;">Inherited Methods</div></th></tr> |
| 971 | |
| 972 | |
| 973 | <tr class="api apilevel-" > |
| 974 | <td colspan="12"> |
| 975 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" |
| 976 | ><img id="inherited-methods-java.lang.Object-trigger" |
| 977 | src="/assets/images/triangle-closed.png" |
| 978 | class="jd-expando-trigger-img" /></a> |
| 979 | From class |
| 980 | |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 981 | java.lang.Object |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 982 | |
| 983 | <div id="inherited-methods-java.lang.Object"> |
| 984 | <div id="inherited-methods-java.lang.Object-list" |
| 985 | class="jd-inheritedlinks"> |
| 986 | </div> |
| 987 | <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> |
| 988 | <table class="jd-sumtable-expando"> |
| 989 | |
| 990 | |
| 991 | |
| 992 | |
| 993 | <tr class="alt-color api apilevel-" > |
| 994 | <td class="jd-typecol"><nobr> |
| 995 | |
| 996 | |
| 997 | |
| 998 | |
| 999 | |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 1000 | Object</nobr> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1001 | </td> |
| 1002 | <td class="jd-linkcol" width="100%"><nobr> |
| 1003 | <span class="sympad">clone</span>()</nobr> |
| 1004 | |
| 1005 | </td></tr> |
| 1006 | |
| 1007 | |
| 1008 | |
| 1009 | <tr class=" api apilevel-" > |
| 1010 | <td class="jd-typecol"><nobr> |
| 1011 | |
| 1012 | |
| 1013 | |
| 1014 | |
| 1015 | |
| 1016 | boolean</nobr> |
| 1017 | </td> |
| 1018 | <td class="jd-linkcol" width="100%"><nobr> |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 1019 | <span class="sympad">equals</span>(Object arg0)</nobr> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1020 | |
| 1021 | </td></tr> |
| 1022 | |
| 1023 | |
| 1024 | |
| 1025 | <tr class="alt-color api apilevel-" > |
| 1026 | <td class="jd-typecol"><nobr> |
| 1027 | |
| 1028 | |
| 1029 | |
| 1030 | |
| 1031 | |
| 1032 | void</nobr> |
| 1033 | </td> |
| 1034 | <td class="jd-linkcol" width="100%"><nobr> |
| 1035 | <span class="sympad">finalize</span>()</nobr> |
| 1036 | |
| 1037 | </td></tr> |
| 1038 | |
| 1039 | |
| 1040 | |
| 1041 | <tr class=" api apilevel-" > |
| 1042 | <td class="jd-typecol"><nobr> |
| 1043 | |
| 1044 | |
| 1045 | final |
| 1046 | |
| 1047 | |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 1048 | Class<?></nobr> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1049 | </td> |
| 1050 | <td class="jd-linkcol" width="100%"><nobr> |
| 1051 | <span class="sympad">getClass</span>()</nobr> |
| 1052 | |
| 1053 | </td></tr> |
| 1054 | |
| 1055 | |
| 1056 | |
| 1057 | <tr class="alt-color api apilevel-" > |
| 1058 | <td class="jd-typecol"><nobr> |
| 1059 | |
| 1060 | |
| 1061 | |
| 1062 | |
| 1063 | |
| 1064 | int</nobr> |
| 1065 | </td> |
| 1066 | <td class="jd-linkcol" width="100%"><nobr> |
| 1067 | <span class="sympad">hashCode</span>()</nobr> |
| 1068 | |
| 1069 | </td></tr> |
| 1070 | |
| 1071 | |
| 1072 | |
| 1073 | <tr class=" api apilevel-" > |
| 1074 | <td class="jd-typecol"><nobr> |
| 1075 | |
| 1076 | |
| 1077 | final |
| 1078 | |
| 1079 | |
| 1080 | void</nobr> |
| 1081 | </td> |
| 1082 | <td class="jd-linkcol" width="100%"><nobr> |
| 1083 | <span class="sympad">notify</span>()</nobr> |
| 1084 | |
| 1085 | </td></tr> |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | <tr class="alt-color api apilevel-" > |
| 1090 | <td class="jd-typecol"><nobr> |
| 1091 | |
| 1092 | |
| 1093 | final |
| 1094 | |
| 1095 | |
| 1096 | void</nobr> |
| 1097 | </td> |
| 1098 | <td class="jd-linkcol" width="100%"><nobr> |
| 1099 | <span class="sympad">notifyAll</span>()</nobr> |
| 1100 | |
| 1101 | </td></tr> |
| 1102 | |
| 1103 | |
| 1104 | |
| 1105 | <tr class=" api apilevel-" > |
| 1106 | <td class="jd-typecol"><nobr> |
| 1107 | |
| 1108 | |
| 1109 | |
| 1110 | |
| 1111 | |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 1112 | String</nobr> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1113 | </td> |
| 1114 | <td class="jd-linkcol" width="100%"><nobr> |
| 1115 | <span class="sympad">toString</span>()</nobr> |
| 1116 | |
| 1117 | </td></tr> |
| 1118 | |
| 1119 | |
| 1120 | |
| 1121 | <tr class="alt-color api apilevel-" > |
| 1122 | <td class="jd-typecol"><nobr> |
| 1123 | |
| 1124 | |
| 1125 | final |
| 1126 | |
| 1127 | |
| 1128 | void</nobr> |
| 1129 | </td> |
| 1130 | <td class="jd-linkcol" width="100%"><nobr> |
| 1131 | <span class="sympad">wait</span>()</nobr> |
| 1132 | |
| 1133 | </td></tr> |
| 1134 | |
| 1135 | |
| 1136 | |
| 1137 | <tr class=" api apilevel-" > |
| 1138 | <td class="jd-typecol"><nobr> |
| 1139 | |
| 1140 | |
| 1141 | final |
| 1142 | |
| 1143 | |
| 1144 | void</nobr> |
| 1145 | </td> |
| 1146 | <td class="jd-linkcol" width="100%"><nobr> |
| 1147 | <span class="sympad">wait</span>(long arg0, int arg1)</nobr> |
| 1148 | |
| 1149 | </td></tr> |
| 1150 | |
| 1151 | |
| 1152 | |
| 1153 | <tr class="alt-color api apilevel-" > |
| 1154 | <td class="jd-typecol"><nobr> |
| 1155 | |
| 1156 | |
| 1157 | final |
| 1158 | |
| 1159 | |
| 1160 | void</nobr> |
| 1161 | </td> |
| 1162 | <td class="jd-linkcol" width="100%"><nobr> |
| 1163 | <span class="sympad">wait</span>(long arg0)</nobr> |
| 1164 | |
| 1165 | </td></tr> |
| 1166 | |
| 1167 | |
| 1168 | </table> |
| 1169 | </div> |
| 1170 | </div> |
| 1171 | </td></tr> |
| 1172 | |
| 1173 | |
| 1174 | </table> |
| 1175 | |
| 1176 | |
| 1177 | </div><!-- jd-descr (summary) --> |
| 1178 | |
| 1179 | <!-- Details --> |
| 1180 | |
| 1181 | |
| 1182 | |
| 1183 | |
| 1184 | |
| 1185 | |
| 1186 | |
| 1187 | |
| 1188 | <!-- XML Attributes --> |
| 1189 | |
| 1190 | |
| 1191 | <!-- Enum Values --> |
| 1192 | |
| 1193 | |
| 1194 | <!-- Constants --> |
| 1195 | |
| 1196 | |
| 1197 | <!-- Fields --> |
| 1198 | |
| 1199 | |
| 1200 | <!-- Public ctors --> |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 1205 | <!-- Protected ctors --> |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | <!-- ========= METHOD DETAIL ======== --> |
| 1210 | <!-- Public methdos --> |
| 1211 | |
| 1212 | <h2>Public Methods</h2> |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | <A NAME="newCameraPosition(com.google.android.gms.maps.model.CameraPosition)"></A> |
| 1217 | |
| 1218 | <div class="jd-details api apilevel-"> |
| 1219 | <h4 class="jd-details-title"> |
| 1220 | <span class="normal"> |
| 1221 | public |
| 1222 | static |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1227 | </span> |
| 1228 | <span class="sympad">newCameraPosition</span> |
| 1229 | <span class="normal">(<a href="/reference/com/google/android/gms/maps/model/CameraPosition.html">CameraPosition</a> cameraPosition)</span> |
| 1230 | </h4> |
| 1231 | <div class="api-level"> |
| 1232 | <div></div> |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | </div> |
| 1237 | <div class="jd-details-descr"> |
| 1238 | |
| 1239 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the camera to a specified <code><a href="/reference/com/google/android/gms/maps/model/CameraPosition.html">CameraPosition</a></code>. |
| 1240 | In effect, this creates a transformation from the <code><a href="/reference/com/google/android/gms/maps/model/CameraPosition.html">CameraPosition</a></code> object's latitude, |
| 1241 | longitude, zoom level, bearing and tilt.</p></div> |
| 1242 | <div class="jd-tagdata"> |
| 1243 | <h5 class="jd-tagtitle">Returns</h5> |
| 1244 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1245 | </li></ul> |
| 1246 | </div> |
| 1247 | |
| 1248 | </div> |
| 1249 | </div> |
| 1250 | |
| 1251 | |
| 1252 | <A NAME="newLatLng(com.google.android.gms.maps.model.LatLng)"></A> |
| 1253 | |
| 1254 | <div class="jd-details api apilevel-"> |
| 1255 | <h4 class="jd-details-title"> |
| 1256 | <span class="normal"> |
| 1257 | public |
| 1258 | static |
| 1259 | |
| 1260 | |
| 1261 | |
| 1262 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1263 | </span> |
| 1264 | <span class="sympad">newLatLng</span> |
| 1265 | <span class="normal">(<a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a> latLng)</span> |
| 1266 | </h4> |
| 1267 | <div class="api-level"> |
| 1268 | <div></div> |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | </div> |
| 1273 | <div class="jd-details-descr"> |
| 1274 | |
| 1275 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the center of the screen to a latitude and |
| 1276 | longitude specified by a <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> object. This centers the camera on the <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> |
| 1277 | object.</p></div> |
| 1278 | <div class="jd-tagdata"> |
| 1279 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1280 | <table class="jd-tagtable"> |
| 1281 | <tr> |
| 1282 | <th>latLng</td> |
| 1283 | <td>a <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> object containing the desired latitude and longitude.</td> |
| 1284 | </tr> |
| 1285 | </table> |
| 1286 | </div> |
| 1287 | <div class="jd-tagdata"> |
| 1288 | <h5 class="jd-tagtitle">Returns</h5> |
| 1289 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1290 | </li></ul> |
| 1291 | </div> |
| 1292 | |
| 1293 | </div> |
| 1294 | </div> |
| 1295 | |
| 1296 | |
| 1297 | <A NAME="newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int)"></A> |
| 1298 | |
| 1299 | <div class="jd-details api apilevel-"> |
| 1300 | <h4 class="jd-details-title"> |
| 1301 | <span class="normal"> |
| 1302 | public |
| 1303 | static |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1308 | </span> |
| 1309 | <span class="sympad">newLatLngBounds</span> |
| 1310 | <span class="normal">(<a href="/reference/com/google/android/gms/maps/model/LatLngBounds.html">LatLngBounds</a> bounds, int padding)</span> |
| 1311 | </h4> |
| 1312 | <div class="api-level"> |
| 1313 | <div></div> |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | </div> |
| 1318 | <div class="jd-details-descr"> |
| 1319 | |
| 1320 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that transforms the camera such that the specified |
| 1321 | latitude/longitude bounds are centered on screen at the greatest possible zoom level. You can |
| 1322 | specify padding, in order to inset the bounding box from the map view's edges. The returned |
| 1323 | <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> has a bearing of 0 and a tilt of 0. |
| 1324 | <p> |
| 1325 | Do not change the camera with this camera update until the map has undergone layout (in order |
| 1326 | for this method to correctly determine the appropriate bounding box and zoom level, the map |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 1327 | must have a size). Otherwise an <code><a href="/reference/java/lang/IllegalStateException.html">IllegalStateException</a></code> will be thrown. It is NOT |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1328 | sufficient for the map to be available (i.e. <code><a href="/reference/com/google/android/gms/maps/MapFragment.html#getMap()">getMap()</a></code> returns a non-null |
| 1329 | object); the view containing the map must have also undergone layout such that its dimensions |
| 1330 | have been determined. If you cannot be sure that this has occured, use |
| 1331 | <code><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int, int, int)">newLatLngBounds(LatLngBounds, int, int, int)</a></code> instead and provide the dimensions of |
| 1332 | the map manually.</p></div> |
| 1333 | <div class="jd-tagdata"> |
| 1334 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1335 | <table class="jd-tagtable"> |
| 1336 | <tr> |
| 1337 | <th>bounds</td> |
| 1338 | <td>region to fit on screen</td> |
| 1339 | </tr> |
| 1340 | <tr> |
| 1341 | <th>padding</td> |
| 1342 | <td>space (in px) to leave between the bounding box edges and the view edges. This |
| 1343 | value is applied to all four sides of the bounding box.</td> |
| 1344 | </tr> |
| 1345 | </table> |
| 1346 | </div> |
| 1347 | <div class="jd-tagdata"> |
| 1348 | <h5 class="jd-tagtitle">Returns</h5> |
| 1349 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1350 | </li></ul> |
| 1351 | </div> |
| 1352 | |
| 1353 | </div> |
| 1354 | </div> |
| 1355 | |
| 1356 | |
| 1357 | <A NAME="newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int, int, int)"></A> |
| 1358 | |
| 1359 | <div class="jd-details api apilevel-"> |
| 1360 | <h4 class="jd-details-title"> |
| 1361 | <span class="normal"> |
| 1362 | public |
| 1363 | static |
| 1364 | |
| 1365 | |
| 1366 | |
| 1367 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1368 | </span> |
| 1369 | <span class="sympad">newLatLngBounds</span> |
| 1370 | <span class="normal">(<a href="/reference/com/google/android/gms/maps/model/LatLngBounds.html">LatLngBounds</a> bounds, int width, int height, int padding)</span> |
| 1371 | </h4> |
| 1372 | <div class="api-level"> |
| 1373 | <div></div> |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | </div> |
| 1378 | <div class="jd-details-descr"> |
| 1379 | |
| 1380 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that transforms the camera such that the specified |
| 1381 | latitude/longitude bounds are centered on screen within a bounding box of specified |
| 1382 | dimensions at the greatest possible zoom level. You can specify additional padding, to |
| 1383 | further restrict the size of the bounding box. The returned <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> has a |
| 1384 | bearing of 0 and a tilt of 0. |
| 1385 | <p> |
| 1386 | Unlike <code><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#newLatLngBounds(com.google.android.gms.maps.model.LatLngBounds, int)">newLatLngBounds(LatLngBounds, int)</a></code>, you can use the <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> |
| 1387 | returned by this method to change the camera prior to the map's the layout phase, because the |
| 1388 | arguments specify the desired size of the bounding box.</p></div> |
| 1389 | <div class="jd-tagdata"> |
| 1390 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1391 | <table class="jd-tagtable"> |
| 1392 | <tr> |
| 1393 | <th>bounds</td> |
| 1394 | <td>the region to fit in the bounding box</td> |
| 1395 | </tr> |
| 1396 | <tr> |
| 1397 | <th>width</td> |
| 1398 | <td>bounding box width in pixels (px)</td> |
| 1399 | </tr> |
| 1400 | <tr> |
| 1401 | <th>height</td> |
| 1402 | <td>bounding box height in pixels (px)</td> |
| 1403 | </tr> |
| 1404 | <tr> |
| 1405 | <th>padding</td> |
| 1406 | <td>additional size restriction (in px) of the bounding box</td> |
| 1407 | </tr> |
| 1408 | </table> |
| 1409 | </div> |
| 1410 | <div class="jd-tagdata"> |
| 1411 | <h5 class="jd-tagtitle">Returns</h5> |
| 1412 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1413 | </li></ul> |
| 1414 | </div> |
| 1415 | |
| 1416 | </div> |
| 1417 | </div> |
| 1418 | |
| 1419 | |
| 1420 | <A NAME="newLatLngZoom(com.google.android.gms.maps.model.LatLng, float)"></A> |
| 1421 | |
| 1422 | <div class="jd-details api apilevel-"> |
| 1423 | <h4 class="jd-details-title"> |
| 1424 | <span class="normal"> |
| 1425 | public |
| 1426 | static |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1431 | </span> |
| 1432 | <span class="sympad">newLatLngZoom</span> |
| 1433 | <span class="normal">(<a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a> latLng, float zoom)</span> |
| 1434 | </h4> |
| 1435 | <div class="api-level"> |
| 1436 | <div></div> |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | </div> |
| 1441 | <div class="jd-details-descr"> |
| 1442 | |
| 1443 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the center of the screen to a latitude and |
| 1444 | longitude specified by a <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> object, and moves to the given zoom level.</p></div> |
| 1445 | <div class="jd-tagdata"> |
| 1446 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1447 | <table class="jd-tagtable"> |
| 1448 | <tr> |
| 1449 | <th>latLng</td> |
| 1450 | <td>a <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> object containing the desired latitude and longitude.</td> |
| 1451 | </tr> |
| 1452 | <tr> |
| 1453 | <th>zoom</td> |
| 1454 | <td>the desired zoom level, in the range of 2.0 to 21.0. Values below this range are |
| 1455 | set to 2.0, and values above it are set to 21.0. Increase the value to zoom in. |
| 1456 | Not all areas have tiles at the largest zoom levels.</td> |
| 1457 | </tr> |
| 1458 | </table> |
| 1459 | </div> |
| 1460 | <div class="jd-tagdata"> |
| 1461 | <h5 class="jd-tagtitle">Returns</h5> |
| 1462 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1463 | </li></ul> |
| 1464 | </div> |
| 1465 | |
| 1466 | </div> |
| 1467 | </div> |
| 1468 | |
| 1469 | |
| 1470 | <A NAME="scrollBy(float, float)"></A> |
| 1471 | |
| 1472 | <div class="jd-details api apilevel-"> |
| 1473 | <h4 class="jd-details-title"> |
| 1474 | <span class="normal"> |
| 1475 | public |
| 1476 | static |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1481 | </span> |
| 1482 | <span class="sympad">scrollBy</span> |
| 1483 | <span class="normal">(float xPixel, float yPixel)</span> |
| 1484 | </h4> |
| 1485 | <div class="api-level"> |
| 1486 | <div></div> |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | </div> |
| 1491 | <div class="jd-details-descr"> |
| 1492 | |
| 1493 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that scrolls the camera over the map, shifting the center of |
| 1494 | view by the specified number of pixels in the x and y directions. |
| 1495 | <p> |
| 1496 | Examples: |
| 1497 | <ul> |
| 1498 | <li>If xPixel = 5 and yPixel = 0, the system scrolls right by moving the camera so that the |
| 1499 | map appears to have shifted 5 pixels to the left.</li> |
| 1500 | <li>If xPixel = 0 and yPixel = 5, the system scrolls down by moving the camera so that the |
| 1501 | map appears to have shifted 5 pixels upwards.</li> |
| 1502 | </ul> |
| 1503 | <p> |
| 1504 | The scrolling is relative to the camera's current orientation. For example, if the camera is |
| 1505 | bearing 90 degrees, then east is "up" and scrolling right will move the camera south.</p></div> |
| 1506 | <div class="jd-tagdata"> |
| 1507 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1508 | <table class="jd-tagtable"> |
| 1509 | <tr> |
| 1510 | <th>xPixel</td> |
| 1511 | <td>the number of pixels to scroll horizontally. A positive value moves the camera |
| 1512 | to the right, with respect to its current orientation. A negative value moves the |
| 1513 | camera to the left, with respect to its current orientation.</td> |
| 1514 | </tr> |
| 1515 | <tr> |
| 1516 | <th>yPixel</td> |
| 1517 | <td>the number of pixels to scroll vertically. A positive value moves the camera |
| 1518 | downwards, with respect to its current orientation. A negative value moves the |
| 1519 | camera upwards, with respect to its current orientation.</td> |
| 1520 | </tr> |
| 1521 | </table> |
| 1522 | </div> |
| 1523 | <div class="jd-tagdata"> |
| 1524 | <h5 class="jd-tagtitle">Returns</h5> |
| 1525 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1526 | </li></ul> |
| 1527 | </div> |
| 1528 | |
| 1529 | </div> |
| 1530 | </div> |
| 1531 | |
| 1532 | |
| 1533 | <A NAME="zoomBy(float, android.graphics.Point)"></A> |
| 1534 | |
| 1535 | <div class="jd-details api apilevel-"> |
| 1536 | <h4 class="jd-details-title"> |
| 1537 | <span class="normal"> |
| 1538 | public |
| 1539 | static |
| 1540 | |
| 1541 | |
| 1542 | |
| 1543 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1544 | </span> |
| 1545 | <span class="sympad">zoomBy</span> |
Robert Ly | 672b3ad | 2012-11-30 16:15:46 -0800 | [diff] [blame] | 1546 | <span class="normal">(float amount, Point focus)</span> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1547 | </h4> |
| 1548 | <div class="api-level"> |
| 1549 | <div></div> |
| 1550 | |
| 1551 | |
| 1552 | |
| 1553 | </div> |
| 1554 | <div class="jd-details-descr"> |
| 1555 | |
| 1556 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that shifts the zoom level of the current camera viewpoint. |
| 1557 | <p> |
| 1558 | A point specified by focus will remain fixed (i.e., it corresponds to the same lat/long both |
| 1559 | before and after the zoom process). |
| 1560 | <p> |
| 1561 | This method is different to <code><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#zoomTo(float)">zoomTo(float)</a></code> in that zoom is relative to the current |
| 1562 | camera. |
| 1563 | <p> |
| 1564 | For example, if the <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> (11.11, 22.22) is currently at the screen location (23, |
| 1565 | 45). After calling this method with a zoom amount and this <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code>, the screen |
| 1566 | location of this <code><a href="/reference/com/google/android/gms/maps/model/LatLng.html">LatLng</a></code> will still be (23, 45).</p></div> |
| 1567 | <div class="jd-tagdata"> |
| 1568 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1569 | <table class="jd-tagtable"> |
| 1570 | <tr> |
| 1571 | <th>amount</td> |
| 1572 | <td>amount to change the zoom level. Positive values indicate zooming closer to the |
| 1573 | surface of the Earth while negative values indicate zooming away from the surface |
| 1574 | of the Earth.</td> |
| 1575 | </tr> |
| 1576 | <tr> |
| 1577 | <th>focus</td> |
| 1578 | <td>pixel location on the screen that is to remain fixed after the zooming process. |
| 1579 | The lat/long that was at that pixel location before the camera move will remain |
| 1580 | the same after the camera has moved.</td> |
| 1581 | </tr> |
| 1582 | </table> |
| 1583 | </div> |
| 1584 | <div class="jd-tagdata"> |
| 1585 | <h5 class="jd-tagtitle">Returns</h5> |
| 1586 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1587 | </li></ul> |
| 1588 | </div> |
| 1589 | |
| 1590 | </div> |
| 1591 | </div> |
| 1592 | |
| 1593 | |
| 1594 | <A NAME="zoomBy(float)"></A> |
| 1595 | |
| 1596 | <div class="jd-details api apilevel-"> |
| 1597 | <h4 class="jd-details-title"> |
| 1598 | <span class="normal"> |
| 1599 | public |
| 1600 | static |
| 1601 | |
| 1602 | |
| 1603 | |
| 1604 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1605 | </span> |
| 1606 | <span class="sympad">zoomBy</span> |
| 1607 | <span class="normal">(float amount)</span> |
| 1608 | </h4> |
| 1609 | <div class="api-level"> |
| 1610 | <div></div> |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | </div> |
| 1615 | <div class="jd-details-descr"> |
| 1616 | |
| 1617 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that shifts the zoom level of the current camera viewpoint. |
| 1618 | <p> |
| 1619 | This method is different to <code><a href="/reference/com/google/android/gms/maps/CameraUpdateFactory.html#zoomTo(float)">zoomTo(float)</a></code> in that zoom is relative to the current |
| 1620 | camera.</p></div> |
| 1621 | <div class="jd-tagdata"> |
| 1622 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1623 | <table class="jd-tagtable"> |
| 1624 | <tr> |
| 1625 | <th>amount</td> |
| 1626 | <td>amount to change the zoom level. Positive values indicate zooming closer to the |
| 1627 | surface of the Earth while negative values indicate zooming away from the surface |
| 1628 | of the Earth.</td> |
| 1629 | </tr> |
| 1630 | </table> |
| 1631 | </div> |
| 1632 | <div class="jd-tagdata"> |
| 1633 | <h5 class="jd-tagtitle">Returns</h5> |
| 1634 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1635 | </li></ul> |
| 1636 | </div> |
| 1637 | |
| 1638 | </div> |
| 1639 | </div> |
| 1640 | |
| 1641 | |
| 1642 | <A NAME="zoomIn()"></A> |
| 1643 | |
| 1644 | <div class="jd-details api apilevel-"> |
| 1645 | <h4 class="jd-details-title"> |
| 1646 | <span class="normal"> |
| 1647 | public |
| 1648 | static |
| 1649 | |
| 1650 | |
| 1651 | |
| 1652 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1653 | </span> |
| 1654 | <span class="sympad">zoomIn</span> |
| 1655 | <span class="normal">()</span> |
| 1656 | </h4> |
| 1657 | <div class="api-level"> |
| 1658 | <div></div> |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | </div> |
| 1663 | <div class="jd-details-descr"> |
| 1664 | |
| 1665 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that zooms in on the map by moving the viewpoint's height |
| 1666 | closer to the Earth's surface. The zoom increment is 1.0.</p></div> |
| 1667 | <div class="jd-tagdata"> |
| 1668 | <h5 class="jd-tagtitle">Returns</h5> |
| 1669 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1670 | </li></ul> |
| 1671 | </div> |
| 1672 | |
| 1673 | </div> |
| 1674 | </div> |
| 1675 | |
| 1676 | |
| 1677 | <A NAME="zoomOut()"></A> |
| 1678 | |
| 1679 | <div class="jd-details api apilevel-"> |
| 1680 | <h4 class="jd-details-title"> |
| 1681 | <span class="normal"> |
| 1682 | public |
| 1683 | static |
| 1684 | |
| 1685 | |
| 1686 | |
| 1687 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1688 | </span> |
| 1689 | <span class="sympad">zoomOut</span> |
| 1690 | <span class="normal">()</span> |
| 1691 | </h4> |
| 1692 | <div class="api-level"> |
| 1693 | <div></div> |
| 1694 | |
| 1695 | |
| 1696 | |
| 1697 | </div> |
| 1698 | <div class="jd-details-descr"> |
| 1699 | |
| 1700 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that zooms out on the map by moving the viewpoint's height |
| 1701 | farther away from the Earth's surface. The zoom increment is -1.0.</p></div> |
| 1702 | <div class="jd-tagdata"> |
| 1703 | <h5 class="jd-tagtitle">Returns</h5> |
| 1704 | <ul class="nolist"><li>a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> containing the transformation. |
| 1705 | </li></ul> |
| 1706 | </div> |
| 1707 | |
| 1708 | </div> |
| 1709 | </div> |
| 1710 | |
| 1711 | |
| 1712 | <A NAME="zoomTo(float)"></A> |
| 1713 | |
| 1714 | <div class="jd-details api apilevel-"> |
| 1715 | <h4 class="jd-details-title"> |
| 1716 | <span class="normal"> |
| 1717 | public |
| 1718 | static |
| 1719 | |
| 1720 | |
| 1721 | |
| 1722 | <a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a> |
| 1723 | </span> |
| 1724 | <span class="sympad">zoomTo</span> |
| 1725 | <span class="normal">(float zoom)</span> |
| 1726 | </h4> |
| 1727 | <div class="api-level"> |
| 1728 | <div></div> |
| 1729 | |
| 1730 | |
| 1731 | |
| 1732 | </div> |
| 1733 | <div class="jd-details-descr"> |
| 1734 | |
| 1735 | <div class="jd-tagdata jd-tagdescr"><p>Returns a <code><a href="/reference/com/google/android/gms/maps/CameraUpdate.html">CameraUpdate</a></code> that moves the camera viewpoint to a particular zoom level.</p></div> |
| 1736 | <div class="jd-tagdata"> |
| 1737 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1738 | <table class="jd-tagtable"> |
| 1739 | <tr> |
| 1740 | <th>zoom</td> |
| 1741 | <td>the desired zoom level, in the range of 2.0 to 21.0. Values below this range are |
| 1742 | set to 2.0, and values above it are set to 21.0. Increase the value to zoom in. |
| 1743 | Not all areas have tiles at the largest zoom levels. |
| 1744 | </td> |
| 1745 | </tr> |
| 1746 | </table> |
| 1747 | </div> |
| 1748 | |
| 1749 | </div> |
| 1750 | </div> |
| 1751 | |
| 1752 | |
| 1753 | |
| 1754 | |
| 1755 | |
| 1756 | <!-- ========= METHOD DETAIL ======== --> |
| 1757 | |
| 1758 | |
| 1759 | |
| 1760 | <!-- ========= END OF CLASS DATA ========= --> |
| 1761 | <A NAME="navbar_top"></A> |
| 1762 | |
| 1763 | <div id="footer" class="wrap" > |
| 1764 | |
| 1765 | |
| 1766 | <div id="copyright"> |
| 1767 | |
| 1768 | Except as noted, this content is licensed under <a |
| 1769 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 1770 | For details and restrictions, see the <a href="/license.html"> |
| 1771 | Content License</a>. |
| 1772 | </div> |
Robert Ly | f6f5cf4 | 2013-02-04 18:24:15 -0800 | [diff] [blame] | 1773 | <div id="build_info"> |
| 1774 | |
| 1775 | <script src="/timestamp.js" type="text/javascript"></script> |
| 1776 | <script>document.write(BUILD_TIMESTAMP)</script> |
| 1777 | |
| 1778 | </div> |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1779 | |
| 1780 | |
| 1781 | <div id="footerlinks"> |
| 1782 | |
| 1783 | <p> |
| 1784 | <a href="/about/index.html">About Android</a> | |
| 1785 | <a href="/legal.html">Legal</a> | |
| 1786 | <a href="/support.html">Support</a> |
| 1787 | </p> |
| 1788 | </div> |
| 1789 | |
| 1790 | </div> <!-- end footer --> |
| 1791 | </div> <!-- jd-content --> |
| 1792 | |
| 1793 | </div><!-- end doc-content --> |
| 1794 | |
| 1795 | </div> <!-- end body-content --> |
| 1796 | |
| 1797 | |
| 1798 | |
| 1799 | |
Robert Ly | 3c4b4f7 | 2012-11-30 04:02:04 -0800 | [diff] [blame] | 1800 | |
| 1801 | |
| 1802 | </body> |
| 1803 | </html> |