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<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/wearable/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>RemoteInputConstants</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169 170 171 172 173 174 175 176<div class="sum-details-links"> 177 178Summary: 179 180 181 182 183 184 <a href="#constants">Constants</a> 185 186 187 188 189 190 191 | <a href="#pubctors">Ctors</a> 192 193 194 195 196 197 198 | <a href="#inhmethods">Inherited Methods</a> 199 200| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 201 202</div><!-- end sum-details-links --> 203</div><!-- end api-info-block --> 204 205<div class="api apilevel-" id="jd-content"> 206 207<!-- ======== START OF CLASS DATA ======== --> 208 209<h1 class="api-title">RemoteInputConstants</h1> 210<p> 211<code class="api-signature"> 212 public 213 214 215 216 class 217 RemoteInputConstants 218</code> 219<br> 220 221 222<code class="api-signature"> 223 224 extends Object 225 226 227 228</code> 229 230<code class="api-signature"> 231 232 233 234</code> 235 236</p><table class="jd-inheritance-table"> 237 238 239 <tr> 240 241 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object 242 </td> 243 </tr> 244 245 246 <tr> 247 248 <td class="jd-inheritance-space"> ↳</td> 249 250 <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.input.RemoteInputConstants 251 </td> 252 </tr> 253 254 255</table> 256 257 258 259 260<br><hr> 261 262 263 <p>Constants for customizing a <code><a href="/reference/android/app/RemoteInput.html">RemoteInput</a></code> instance. 264 265 <p>These constants define extras that can be added to a <code><a href="/reference/android/app/RemoteInput.html">RemoteInput</a></code> to change the 266 input options that will be presented. 267 268 <p>For example, to create a RemoteInput that will allow free form input (e.g. voice input on 269 Wear), but not show the Draw Emoji option: 270 <pre class="prettyprint"><code>Bundle extras = new Bundle(); 271 extras.putBoolean(RemoteInputConstants.EXTRA_DISALLOW_EMOJI, true); 272 RemoteInput remoteInput = new RemoteInput.Builder(resultKey) 273 .setAllowFreeFormInput(true) 274 .addExtras(extras) 275 .build();</code></pre> 276</p> 277 278 279 280 281 282 283 284<h2 class="api-section">Summary</h2> 285 286 287 288 289 290 291 292 293 294 295 296 297 298<!-- =========== ENUM CONSTANT SUMMARY =========== --> 299<table id="constants" class="responsive constants"> 300<tr><th colspan="2"><h3>Constants</h3></th></tr> 301 302 303 304 <tr class="api apilevel-" > 305 <td><code>String</code></td> 306 <td width="100%"> 307 <code><a href="/reference/android/support/wearable/input/RemoteInputConstants.html#EXTRA_DISALLOW_EMOJI">EXTRA_DISALLOW_EMOJI</a></code> 308 <p>Key for a boolean extra that can be added to a <code><a href="/reference/android/app/RemoteInput.html">RemoteInput</a></code> to cause emoji-only 309 options (e.g. 310 311 312</p> 313 </td> 314 </tr> 315 316 317 318</table> 319 320 321 322 323 324 325 326 327 328 329 330 331<!-- ======== CONSTRUCTOR SUMMARY ======== --> 332<table id="pubctors" class="responsive constructors"> 333<tr><th colspan="2"><h3>Public constructors</h3></th></tr> 334 335 336 337 338 <tr class="api apilevel-" > 339 340 341 <td width="100%"> 342 <code> 343 <a href="/reference/android/support/wearable/input/RemoteInputConstants.html#RemoteInputConstants()">RemoteInputConstants</a>() 344 </code> 345 346 </td> 347 </tr> 348 349 350 351</table> 352 353 354 355 356 357 358 359 360 361 362 363<!-- ========== METHOD SUMMARY =========== --> 364<table id="inhmethods" class="methods inhtable"> 365<tr><th><h3>Inherited methods</h3></th></tr> 366 367 368<tr class="api apilevel-" > 369<td colspan="2"> 370 371 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 372 ><img height="34" id="inherited-methods-java.lang.Object-trigger" 373 src="/assets/images/styles/disclosure_down.png" 374 class="jd-expando-trigger-img" /></a>From 375class 376<code> 377 378 java.lang.Object 379 380</code> 381<div id="inherited-methods-java.lang.Object"> 382 <div id="inherited-methods-java.lang.Object-list" 383 class="jd-inheritedlinks"> 384 </div> 385 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 386 <table class="jd-sumtable-expando responsive"> 387 388 389 390 391 <tr class="api apilevel-" > 392 393 394 <td><code> 395 396 397 398 399 400 Object</code> 401 </td> 402 403 <td width="100%"> 404 <code> 405 clone() 406 </code> 407 408 </td> 409 </tr> 410 411 412 413 <tr class="api apilevel-" > 414 415 416 <td><code> 417 418 419 420 421 422 boolean</code> 423 </td> 424 425 <td width="100%"> 426 <code> 427 equals(Object arg0) 428 </code> 429 430 </td> 431 </tr> 432 433 434 435 <tr class="api apilevel-" > 436 437 438 <td><code> 439 440 441 442 443 444 void</code> 445 </td> 446 447 <td width="100%"> 448 <code> 449 finalize() 450 </code> 451 452 </td> 453 </tr> 454 455 456 457 <tr class="api apilevel-" > 458 459 460 <td><code> 461 462 463 464 final 465 466 Class<?></code> 467 </td> 468 469 <td width="100%"> 470 <code> 471 getClass() 472 </code> 473 474 </td> 475 </tr> 476 477 478 479 <tr class="api apilevel-" > 480 481 482 <td><code> 483 484 485 486 487 488 int</code> 489 </td> 490 491 <td width="100%"> 492 <code> 493 hashCode() 494 </code> 495 496 </td> 497 </tr> 498 499 500 501 <tr class="api apilevel-" > 502 503 504 <td><code> 505 506 507 508 final 509 510 void</code> 511 </td> 512 513 <td width="100%"> 514 <code> 515 notify() 516 </code> 517 518 </td> 519 </tr> 520 521 522 523 <tr class="api apilevel-" > 524 525 526 <td><code> 527 528 529 530 final 531 532 void</code> 533 </td> 534 535 <td width="100%"> 536 <code> 537 notifyAll() 538 </code> 539 540 </td> 541 </tr> 542 543 544 545 <tr class="api apilevel-" > 546 547 548 <td><code> 549 550 551 552 553 554 String</code> 555 </td> 556 557 <td width="100%"> 558 <code> 559 toString() 560 </code> 561 562 </td> 563 </tr> 564 565 566 567 <tr class="api apilevel-" > 568 569 570 <td><code> 571 572 573 574 final 575 576 void</code> 577 </td> 578 579 <td width="100%"> 580 <code> 581 wait(long arg0, int arg1) 582 </code> 583 584 </td> 585 </tr> 586 587 588 589 <tr class="api apilevel-" > 590 591 592 <td><code> 593 594 595 596 final 597 598 void</code> 599 </td> 600 601 <td width="100%"> 602 <code> 603 wait(long arg0) 604 </code> 605 606 </td> 607 </tr> 608 609 610 611 <tr class="api apilevel-" > 612 613 614 <td><code> 615 616 617 618 final 619 620 void</code> 621 </td> 622 623 <td width="100%"> 624 <code> 625 wait() 626 </code> 627 628 </td> 629 </tr> 630 631 632 633 </table> 634 </div> 635</div> 636</td></tr> 637 638 639</table> 640 641 642 643<!-- XML Attributes --> 644 645 646<!-- Enum Values --> 647 648 649<!-- Constants --> 650 651 652<!-- ========= ENUM CONSTANTS DETAIL ======== --> 653<h2 class="api-section">Constants</h2> 654 655 656 657 658<A NAME="EXTRA_DISALLOW_EMOJI"></A> 659 660<div class="api apilevel-"> 661 <h3 class="api-name">EXTRA_DISALLOW_EMOJI</h3> 662 <div class="api-level"> 663 664 665 666 667 </div> 668<pre class="api-signature no-pretty-print"> 669String EXTRA_DISALLOW_EMOJI</pre> 670 671 672 673 674 <p>Key for a boolean extra that can be added to a <code><a href="/reference/android/app/RemoteInput.html">RemoteInput</a></code> to cause emoji-only 675 options (e.g. the Draw Emoji option) to not be shown. 676 677 <p>If this extra has value true, the Draw Emoji option will not be shown. If this extra 678 is not present or has any other value, the Draw Emoji option will be shown as long as 679 the <code><a href="/reference/android/app/RemoteInput.html">RemoteInput</a></code> allows free form input. 680</p> 681 682 683 <p>Constant Value: 684 685 "android.support.wearable.input.extra.DISALLOW_EMOJI" 686 687 688</div> 689 690 691 692 693<!-- Fields --> 694 695 696<!-- Public ctors --> 697 698 699<!-- ========= CONSTRUCTOR DETAIL ======== --> 700<h2 class="api-section">Public constructors</h2> 701 702 703 704<A NAME="RemoteInputConstants()"></A> 705 706<div class="api apilevel-"> 707 <h3 class="api-name">RemoteInputConstants</h3> 708 <div class="api-level"> 709 <div></div> 710 711 712 713 </div> 714<pre class="api-signature no-pretty-print"> 715RemoteInputConstants ()</pre> 716 717 718 719 720 <p></p> 721 722</div> 723 724 725 726 727 728<!-- ========= CONSTRUCTOR DETAIL ======== --> 729<!-- Protected ctors --> 730 731 732 733<!-- ========= METHOD DETAIL ======== --> 734<!-- Public methdos --> 735 736 737 738<!-- ========= METHOD DETAIL ======== --> 739 740 741 742<!-- ========= END OF CLASS DATA ========= --> 743 744</div><!-- end jd-content --> 745 746 747 748<div class="data-reference-resources-wrapper"> 749 750 <ul data-reference-resources> 751 752 753 754 <li><h2>Classes</h2> 755 <ul> 756 <li class="selected api apilevel-"><a href="/reference/android/support/wearable/input/RemoteInputConstants.html">RemoteInputConstants</a></li> 757 <li class="api apilevel-"><a href="/reference/android/support/wearable/input/RemoteInputIntent.html">RemoteInputIntent</a></li> 758 </ul> 759 </li> 760 761 762 763 </ul> 764 765</div> 766 767 768 769</body> 770</html> 771