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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 <html> 100 <head> 101 102 103 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 104 <meta name="viewport" content="width=device-width" /> 105 106 <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> 107 <title>PlusShare.Builder | Android Developers</title> 108 109 <!-- STYLESHEETS --> 110 <link rel="stylesheet" 111 href="//fonts.googleapis.com/css?family=Roboto+Condensed"> 112 <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" 113 title="roboto"> 114 <link href="/assets/css/default.css?v=4" rel="stylesheet" type="text/css"> 115 116 117 118 <!-- JAVASCRIPT --> 119 <script src="//www.google.com/jsapi" type="text/javascript"></script> 120 <script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script> 121 <script type="text/javascript"> 122 var toRoot = "/"; 123 var metaTags = []; 124 var devsite = false; 125 </script> 126 <script src="/assets/js/docs.js?v=3" type="text/javascript"></script> 127 128 129 130 <script> 131 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 132 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 133 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 134 })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 135 136 ga('create', 'UA-5831155-1', 'android.com'); 137 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); 138 ga('send', 'pageview'); 139 ga('universal.send', 'pageview'); // Send page view for new tracker. 140 </script> 141 142 </head> 143 144 <body class="gc-documentation google 145 develop reference" itemscope itemtype="http://schema.org/Article"> 146 <div id="doc-api-level" class="" style="display:none"></div> 147 <a name="top"></a> 148 149 150 <a name="top"></a> 151 152 <!-- dialog to prompt lang pref change when loaded from hardcoded URL 153 <div id="langMessage" style="display:none"> 154 <div> 155 <div class="lang en"> 156 <p>You requested a page in English, would you like to proceed with this language setting?</p> 157 </div> 158 <div class="lang es"> 159 <p>You requested a page in Spanish (Espaol), would you like to proceed with this language setting?</p> 160 </div> 161 <div class="lang ja"> 162 <p>You requested a page in Japanese (), would you like to proceed with this language setting?</p> 163 </div> 164 <div class="lang ko"> 165 <p>You requested a page in Korean (), would you like to proceed with this language setting?</p> 166 </div> 167 <div class="lang ru"> 168 <p>You requested a page in Russian (), would you like to proceed with this language setting?</p> 169 </div> 170 <div class="lang zh-cn"> 171 <p>You requested a page in Simplified Chinese (), would you like to proceed with this language setting?</p> 172 </div> 173 <div class="lang zh-tw"> 174 <p>You requested a page in Traditional Chinese (), would you like to proceed with this language setting?</p> 175 </div> 176 <a href="#" class="button yes" onclick="return false;"> 177 <span class="lang en">Yes</span> 178 <span class="lang es">S</span> 179 <span class="lang ja">Yes</span> 180 <span class="lang ko">Yes</span> 181 <span class="lang ru">Yes</span> 182 <span class="lang zh-cn"></span> 183 <span class="lang zh-tw"></span> 184 </a> 185 <a href="#" class="button" onclick="$('#langMessage').hide();return false;"> 186 <span class="lang en">No</span> 187 <span class="lang es">No</span> 188 <span class="lang ja">No</span> 189 <span class="lang ko">No</span> 190 <span class="lang ru">No</span> 191 <span class="lang zh-cn"></span> 192 <span class="lang zh-tw"></span> 193 </a> 194 </div> 195 </div> --> 196 197 198 <!-- Header --> 199 <div id="header-wrapper"> 200 <div id="header"> 201 202 203 204 205 <div class="wrap" id="header-wrap"> 206 <div class="col-3 logo"> 207 <a href="/index.html"> 208 <img src="/assets/images/dac_logo.png" 209 srcset="/assets/images/dac_logo (a] 2x.png 2x" 210 width="123" height="25" alt="Android Developers" /> 211 </a> 212 <div class="btn-quicknav" id="btn-quicknav"> 213 <a href="#" class="arrow-inactive">Quicknav</a> 214 <a href="#" class="arrow-active">Quicknav</a> 215 </div> 216 </div> 217 <ul class="nav-x col-9"> 218 <li class="design"> 219 <a href="/design/index.html" 220 zh-tw-lang="" 221 zh-cn-lang="" 222 ru-lang="" 223 ko-lang="" 224 ja-lang="" 225 es-lang="Disear" 226 >Design</a></li> 227 <li class="develop"><a href="/develop/index.html" 228 zh-tw-lang="" 229 zh-cn-lang="" 230 ru-lang="" 231 ko-lang="" 232 ja-lang="" 233 es-lang="Desarrollar" 234 >Develop</a></li> 235 <li class="distribute last"><a href="/distribute/index.html" 236 zh-tw-lang="" 237 zh-cn-lang="" 238 ru-lang="" 239 ko-lang="" 240 ja-lang="" 241 es-lang="Distribuir" 242 >Distribute</a></li> 243 </ul> 244 245 246 247 248 <div class="menu-container"> 249 <div class="moremenu"> 250 <div id="more-btn"></div> 251 </div> 252 <div class="morehover" id="moremenu"> 253 <div class="top"></div> 254 <div class="mid"> 255 <div class="header">Links</div> 256 <ul> 257 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> 258 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> 259 <li><a href="/about/index.html">About Android</a></li> 260 </ul> 261 <div class="header">Android Sites</div> 262 <ul> 263 <li><a href="http://www.android.com">Android.com</a></li> 264 <li class="active"><a>Android Developers</a></li> 265 <li><a href="http://source.android.com">Android Open Source Project</a></li> 266 </ul> 267 268 269 270 <div class="header">Language</div> 271 <div id="language" class="locales"> 272 <select name="language" onChange="changeLangPref(this.value, true)"> 273 <option value="en">English</option> 274 <option value="es">Espaol</option> 275 <option value="ja"></option> 276 <option value="ko"></option> 277 <option value="ru"></option> 278 <option value="zh-cn">)</option> 279 <option value="zh-tw">)</option> 280 </select> 281 </div> 282 <script type="text/javascript"> 283 <!-- 284 loadLangPref(); 285 //--> 286 </script> 287 288 289 <br class="clearfix" /> 290 </div><!-- end 'mid' --> 291 <div class="bottom"></div> 292 </div><!-- end 'moremenu' --> 293 294 <div class="search" id="search-container"> 295 <div class="search-inner"> 296 <div id="search-btn"></div> 297 <div class="left"></div> 298 <form onsubmit="return submit_search()"> 299 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" 300 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" 301 onkeydown="return search_changed(event, true, '/')" 302 onkeyup="return search_changed(event, false, '/')" /> 303 </form> 304 <div class="right"></div> 305 <a class="close hide">close</a> 306 <div class="left"></div> 307 <div class="right"></div> 308 </div><!-- end search-inner --> 309 </div><!-- end search-container --> 310 311 <div class="search_filtered_wrapper reference"> 312 <div class="suggest-card reference no-display"> 313 <ul class="search_filtered"> 314 </ul> 315 </div> 316 </div> 317 318 <div class="search_filtered_wrapper docs"> 319 <div class="suggest-card dummy no-display"> </div> 320 <div class="suggest-card develop no-display"> 321 <ul class="search_filtered"> 322 </ul> 323 <div class="child-card guides no-display"> 324 </div> 325 <div class="child-card training no-display"> 326 </div> 327 <div class="child-card samples no-display"> 328 </div> 329 </div> 330 <div class="suggest-card design no-display"> 331 <ul class="search_filtered"> 332 </ul> 333 </div> 334 <div class="suggest-card distribute no-display"> 335 <ul class="search_filtered"> 336 </ul> 337 </div> 338 </div> 339 </div><!-- end menu-container (search and menu widget) --> 340 341 342 343 <!-- Expanded quicknav --> 344 <div id="quicknav" class="col-13"> 345 <ul> 346 <li class="about"> 347 <ul> 348 <li><a href="/about/index.html">About</a></li> 349 <li><a href="/wear/index.html">Wear</a></li> 350 <li><a href="/tv/index.html">TV</a></li> 351 <li><a href="/auto/index.html">Auto</a></li> 352 </ul> 353 </li> 354 <li class="design"> 355 <ul> 356 <li><a href="/design/index.html">Get Started</a></li> 357 <li><a href="/design/devices.html">Devices</a></li> 358 <li><a href="/design/style/index.html">Style</a></li> 359 <li><a href="/design/patterns/index.html">Patterns</a></li> 360 <li><a href="/design/building-blocks/index.html">Building Blocks</a></li> 361 <li><a href="/design/downloads/index.html">Downloads</a></li> 362 <li><a href="/design/videos/index.html">Videos</a></li> 363 </ul> 364 </li> 365 <li class="develop"> 366 <ul> 367 <li><a href="/training/index.html" 368 zh-tw-lang="" 369 zh-cn-lang="" 370 ru-lang="" 371 ko-lang="" 372 ja-lang="" 373 es-lang="Capacitacin" 374 >Training</a></li> 375 <li><a href="/guide/index.html" 376 zh-tw-lang="API " 377 zh-cn-lang="API " 378 ru-lang=" API" 379 ko-lang="API " 380 ja-lang="API " 381 es-lang="Guas de la API" 382 >API Guides</a></li> 383 <li><a href="/reference/packages.html" 384 zh-tw-lang="" 385 zh-cn-lang="" 386 ru-lang="" 387 ko-lang="" 388 ja-lang="" 389 es-lang="Referencia" 390 >Reference</a></li> 391 <li><a href="/sdk/index.html" 392 zh-tw-lang="" 393 zh-cn-lang="" 394 ru-lang="" 395 ko-lang="" 396 ja-lang="" 397 es-lang="Herramientas" 398 >Tools</a> 399 </li> 400 <li><a href="/google/index.html">Google Services</a> 401 </li> 402 403 <li><a href="/samples/index.html">Samples</a> 404 </li> 405 406 </ul> 407 </li> 408 <li class="distribute last"> 409 <ul> 410 <li><a href="/distribute/googleplay/index.html">Google Play</a></li> 411 <li><a href="/distribute/essentials/index.html">Essentials</a></li> 412 <li><a href="/distribute/users/index.html">Get Users</a></li> 413 <li><a href="/distribute/engage/index.html">Engage & Retain</a></li> 414 <li><a href="/distribute/monetize/index.html">Monetize</a></li> 415 <li><a href="/distribute/tools/index.html">Tools & Reference</a></li> 416 <li><a href="/distribute/stories/index.html">Developer Stories</a></li> 417 </ul> 418 </li> 419 </ul> 420 </div><!-- /Expanded quicknav --> 421 </div><!-- end header-wrap.wrap --> 422 </div><!-- end header --> 423 424 425 <!-- Secondary x-nav --> 426 <div id="nav-x"> 427 <div class="wrap" style="position:relative;z-index:1"> 428 429 430 431 432 433 <ul class="nav-x col-9 develop" style="width:100%"> 434 <li class="training"><a href="/training/index.html" 435 zh-tw-lang="" 436 zh-cn-lang="" 437 ru-lang="" 438 ko-lang="" 439 ja-lang="" 440 es-lang="Capacitacin" 441 >Training</a></li> 442 <li class="guide"><a href="/guide/index.html" 443 zh-tw-lang="API " 444 zh-cn-lang="API " 445 ru-lang=" API" 446 ko-lang="API " 447 ja-lang="API " 448 es-lang="Guas de la API" 449 >API Guides</a></li> 450 <li class="reference"><a href="/reference/packages.html" 451 zh-tw-lang="" 452 zh-cn-lang="" 453 ru-lang="" 454 ko-lang="" 455 ja-lang="" 456 es-lang="Referencia" 457 >Reference</a></li> 458 <li class="tools"><a href="/sdk/index.html" 459 zh-tw-lang="" 460 zh-cn-lang="" 461 ru-lang="" 462 ko-lang="" 463 ja-lang="" 464 es-lang="Herramientas" 465 >Tools</a></li> 466 <li class="google"><a href="/google/index.html" 467 >Google Services</a> 468 </li> 469 470 <li class="samples"><a href="/samples/index.html" 471 >Samples</a> 472 </li> 473 474 </ul> 475 </div> 476 </div> 477 <!-- /Sendondary x-nav DEVELOP --> 478 479 480 481 <div id="searchResults" class="wrap" style="display:none;"> 482 <h2 id="searchTitle">Results</h2> 483 <div id="leftSearchControl" class="search-control">Loading...</div> 484 </div> 485 </div> <!--end header-wrapper --> 486 487 <div id="sticky-header"> 488 <div> 489 <a class="logo" href="#top"></a> 490 <a class="top" href="#top"></a> 491 <ul class="breadcrumb"> 492 493 <li class="current">PlusShare.Builder</li> 494 </ul> 495 </div> 496 </div> 497 498 499 500 501 502 503 <div class="wrap clearfix" id="body-content"> 504 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> 505 <div id="devdoc-nav" class="scroll-pane"> 506 507 508 509 <ul id="nav"> 510 511 <li class="nav-section"> 512 <div class="nav-section-header empty"><a href="/google/index.html"> 513 <span class="en">Overview</span> 514 </a></div> 515 </li> 516 517 <li class="nav-section"> 518 <div class="nav-section-header empty"><a href="/google/play-services/games.html"> 519 <span class="en">Games</span> 520 </a></div> 521 </li> 522 <li class="nav-section"> 523 <div class="nav-section-header empty"><a href="/google/play-services/location.html"> 524 <span class="en">Location</span> 525 </a></div> 526 </li> 527 <li class="nav-section"> 528 <div class="nav-section-header empty"><a href="/google/play-services/plus.html"> 529 <span class="en">Google+</span> 530 </a></div> 531 </li> 532 <li class="nav-section"> 533 <div class="nav-section-header empty"><a href="/google/play-services/maps.html"> 534 <span class="en">Maps</span> 535 </a></div> 536 </li> 537 <li class="nav-section"> 538 <div class="nav-section-header empty"><a href="/google/play-services/drive.html"> 539 <span class="en">Drive</span> 540 </a></div> 541 </li> 542 <li class="nav-section"> 543 <div class="nav-section-header empty"><a href="/google/play-services/cast.html"> 544 <span class="en">Cast</span> 545 </a></div> 546 </li> 547 <li class="nav-section"> 548 <div class="nav-section-header"><a href="/google/play-services/ads.html"> 549 <span class="en">Ads</span></a> 550 </div> 551 <ul> 552 <li><a href="/google/play-services/id.html"> 553 <span class="en">Advertising ID</span></a> 554 </li> 555 </ul> 556 </li> 557 <li class="nav-section"> 558 <div class="nav-section-header empty"><a href="/google/play-services/wallet.html"> 559 <span class="en">Wallet</span> 560 </a></div> 561 </li> 562 563 564 <li class="nav-section"> 565 <div class="nav-section-header"><a href="/google/play-services/index.html"> 566 <span class="en">Google Play Services</span></a> 567 </div> 568 <ul> 569 <li><a href="/google/play-services/setup.html"> 570 <span class="en">Setting Up Google Play Services</span></a> 571 </li> 572 <li class="nav-section"> 573 <div class="nav-section-header"><a href="/google/auth/api-client.html"> 574 <span class="en">Accessing Google APIs</span></a> 575 </div> 576 <ul> 577 <li> 578 <a href="/google/auth/http-auth.html"> 579 <span class="en">Authorizing with Google for REST APIs</span> 580 </a> 581 </li> 582 </ul> 583 </li> 584 <li id="gms-tree-list" class="nav-section"> 585 <div class="nav-section-header"> 586 <a href="/reference/gms-packages.html"> 587 <span class="en">Reference</span> 588 </a> 589 <div> 590 </li> 591 </ul> 592 </li> 593 594 595 <li class="nav-section"> 596 <div class="nav-section-header"><a href="/google/play/billing/index.html"> 597 <span class="en">Google Play In-app Billing</span></a> 598 </div> 599 <ul> 600 <li><a href="/google/play/billing/billing_overview.html"> 601 <span class="en">Overview</span></a> 602 </li> 603 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/api.html"> 604 <span class="en">Version 3 API</span></a></div> 605 <ul> 606 <li><a href="/google/play/billing/billing_integrate.html"> 607 <span class="en">Implementing the API</span></a></li> 608 <li><a href="/google/play/billing/billing_reference.html"> 609 <span class="en">Reference</span></a></li> 610 </ul> 611 </li> 612 <li class="nav-section"><div class="nav-section-header"><a href="/google/play/billing/v2/api.html"> 613 <span class="en">Version 2 API</span></a></div> 614 <ul> 615 <li><a href="/google/play/billing/v2/billing_integrate.html"> 616 <span class="en">Implementing the API</span></a></li> 617 <li><a href="/google/play/billing/v2/billing_subscriptions.html"> 618 <span class="en">Subscriptions</span></a></li> 619 <li><a href="/google/play/billing/v2/billing_reference.html"> 620 <span class="en">Reference</span></a></li> 621 </ul> 622 </li> 623 <li><a href="/google/play/billing/billing_subscriptions.html"> 624 <span class="en">Subscriptions</span></a> 625 </li> 626 <li><a href="/google/play/billing/billing_best_practices.html"> 627 <span class="en">Security and Design</span></a> 628 </li> 629 <li><a href="/google/play/billing/billing_testing.html"> 630 <span class="en">Testing In-app Billing</span></a> 631 </li> 632 <li><a href="/google/play/billing/billing_admin.html"> 633 <span class="en">Administering In-app Billing</span></a> 634 </li> 635 <li><a href="/google/play/billing/versions.html"> 636 <span class="en">Version Notes</span></a> 637 </li> 638 </ul> 639 </li> 640 641 642 643 <li class="nav-section"> 644 <div class="nav-section-header"><a href="/google/gcm/index.html"> 645 <span class="en">Google Cloud Messaging</span></a> 646 </div> 647 <ul> 648 <li><a href="/google/gcm/gcm.html"> 649 <span class="en">Overview</span></a> 650 </li> 651 <li><a href="/google/gcm/gs.html"> 652 <span class="en">Getting Started</span></a> 653 </li> 654 <li><a href="/google/gcm/client.html"> 655 <span class="en">Implementing GCM Client</span></a> 656 </li> 657 <li class="nav-section"><div class="nav-section-header"><a href="/google/gcm/server.html"> 658 <span class="en">Implementing GCM Server</span></a></div> 659 <ul> 660 <li><a href="/google/gcm/ccs.html"> 661 <span class="en">CCS (XMPP)</span></a></li> 662 <li><a href="/google/gcm/http.html"> 663 <span class="en">HTTP</span></a></li> 664 </ul> 665 </li> 666 <li><a href="/google/gcm/notifications.html"> 667 <span class="en">User Notifications</span></a> 668 </li> 669 <li><a href="/google/gcm/adv.html"> 670 <span class="en">Advanced Topics</span></a> 671 </li> 672 <li><a href="/google/gcm/c2dm.html"> 673 <span class="en">Migration</span></a> 674 </li> 675 <li id="gcm-tree-list" class="nav-section"> 676 <div class="nav-section-header"> 677 <a href="/reference/gcm-packages.html"> 678 <span class="en">Reference</span> 679 </a> 680 <div> 681 </li> 682 </ul> 683 </li> 684 685 <li class="nav-section"> 686 <div class="nav-section-header empty"><a href="/google/gcs/index.html"> 687 <span class="en">Google Cloud Save</span></a> 688 </div> 689 </li> 690 691 <li class="nav-section"> 692 <div class="nav-section-header"><a href="/google/play/dist.html"> 693 <span class="en">Google Play Distribution</span></a> 694 </div> 695 <ul> 696 <li><a href="/google/play/filters.html"> 697 <span class="en">Filters on Google Play</span></a> 698 </li> 699 <li><a href="/google/play/billing/gp-purchase-status-api.html"> 700 <span class="en">Google Play Developer API</span></a> 701 </li> 702 <li><a href="/google/play/publishing/multiple-apks.html"> 703 <span class="en">Multiple APK Support</span></a> 704 </li> 705 <li><a href="/google/play/expansion-files.html"> 706 <span class="en">APK Expansion Files</span></a> 707 </li> 708 <li class="nav-section"> 709 <div class="nav-section-header"><a href="/google/play/licensing/index.html"> 710 <span class="en">Application Licensing</span></a> 711 </div> 712 <ul> 713 <li><a href="/google/play/licensing/overview.html"> 714 <span class="en">Licensing Overview</span></a> 715 </li> 716 <li><a href="/google/play/licensing/setting-up.html"> 717 <span class="en">Setting Up for Licensing</span></a> 718 </li> 719 <li><a href="/google/play/licensing/adding-licensing.html"> 720 <span class="en">Adding Licensing to Your App</span></a> 721 </li> 722 <li><a href="/google/play/licensing/licensing-reference.html"> 723 <span class="en">Licensing Reference</span></a> 724 </li> 725 </ul> 726 </li> 727 728 <li class="nav-section"> 729 <div class="nav-section-header"><a href="/google/backup/index.html"> 730 Android Backup Service</a> 731 </div> 732 <ul> 733 <li><a href="/google/backup/signup.html"> 734 Register</a> 735 </li> 736 </ul> 737 </li> 738 739 </ul> 740 741 </li> 742 743 744 745 </ul> 746 747 <script type="text/javascript"> 748 <!-- 749 buildToggleLists(); 750 changeNavLang(getLangPref()); 751 //--> 752 </script> 753 754 755 756 757 </div> 758 <script type="text/javascript"> 759 showGoogleRefTree(); 760 761 </script> 762 </div> <!-- end side-nav --> 763 <script> 764 $(document).ready(function() { 765 scrollIntoView("devdoc-nav"); 766 }); 767 </script> 768 769 770 771 772 773 774 <div class="col-12" id="doc-col"> 775 776 <div id="api-info-block"> 777 778 779 780 781 782 783 784 785 786 787 788 <div class="sum-details-links"> 789 790 Summary: 791 792 793 794 795 796 797 798 799 800 <a href="#pubctors">Ctors</a> 801 802 803 804 805 | <a href="#pubmethods">Methods</a> 806 807 808 809 810 | <a href="#inhmethods">Inherited Methods</a> 811 812 | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 813 814 </div><!-- end sum-details-links --> 815 <div class="api-level"> 816 817 818 819 820 </div> 821 </div><!-- end api-info-block --> 822 823 824 <!-- ======== START OF CLASS DATA ======== --> 825 826 <div id="jd-header"> 827 public 828 static 829 830 831 class 832 <h1 itemprop="name">PlusShare.Builder</h1> 833 834 835 836 837 extends Object<br/> 838 839 840 841 842 843 844 845 846 847 848 849 850 </div><!-- end header --> 851 852 <div id="naMessage"></div> 853 854 <div id="jd-content" class="api apilevel-"> 855 <table class="jd-inheritance-table"> 856 857 858 <tr> 859 860 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td> 861 </tr> 862 863 864 <tr> 865 866 <td class="jd-inheritance-space"> ↳</td> 867 868 <td colspan="1" class="jd-inheritance-class-cell">com.google.android.gms.plus.PlusShare.Builder</td> 869 </tr> 870 871 872 </table> 873 874 875 876 877 878 879 880 <div class="jd-descr"> 881 882 883 884 885 886 887 </div><!-- jd-descr --> 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 <div class="jd-descr"> 905 906 907 <h2>Summary</h2> 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 <!-- ======== CONSTRUCTOR SUMMARY ======== --> 932 <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> 933 934 935 936 937 <tr class="alt-color api apilevel-" > 938 <td class="jd-typecol"><nobr> 939 940 941 942 943 944 </nobr> 945 </td> 946 <td class="jd-linkcol" width="100%"><nobr> 947 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#PlusShare.Builder(android.content.Context)">PlusShare.Builder</a></span>(Context context)</nobr> 948 949 <div class="jd-descrdiv"> 950 Create a new Builder for launching a sharing action from the given context. 951 952 953 954 </div> 955 956 </td></tr> 957 958 959 960 <tr class=" api apilevel-" > 961 <td class="jd-typecol"><nobr> 962 963 964 965 966 967 </nobr> 968 </td> 969 <td class="jd-linkcol" width="100%"><nobr> 970 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#PlusShare.Builder(android.app.Activity)">PlusShare.Builder</a></span>(Activity launchingActivity)</nobr> 971 972 <div class="jd-descrdiv"> 973 Create a new Builder for launching a sharing action from launchingActivity. 974 975 976 977 </div> 978 979 </td></tr> 980 981 982 983 <tr class="alt-color api apilevel-" > 984 <td class="jd-typecol"><nobr> 985 986 987 988 989 990 </nobr> 991 </td> 992 <td class="jd-linkcol" width="100%"><nobr> 993 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#PlusShare.Builder(android.app.Activity, com.google.android.gms.plus.PlusClient)">PlusShare.Builder</a></span>(Activity launchingActivity, <a href="/reference/com/google/android/gms/plus/PlusClient.html">PlusClient</a> plusClient)</nobr> 994 995 <div class="jd-descrdiv"> 996 <em> 997 This constructor is deprecated. 998 Please migrate to <code><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#PlusShare.Builder(android.app.Activity)">PlusShare.Builder(Activity)</a></code>, 999 the PlusClient is optional. 1000 </em> 1001 1002 1003 1004 </div> 1005 1006 </td></tr> 1007 1008 1009 1010 </table> 1011 1012 1013 1014 1015 1016 1017 <!-- ========== METHOD SUMMARY =========== --> 1018 <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> 1019 1020 1021 1022 1023 <tr class="alt-color api apilevel-" > 1024 <td class="jd-typecol"><nobr> 1025 1026 1027 1028 1029 1030 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1031 </td> 1032 <td class="jd-linkcol" width="100%"><nobr> 1033 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#addCallToAction(java.lang.String, android.net.Uri, java.lang.String)">addCallToAction</a></span>(String label, Uri uri, String deepLinkId)</nobr> 1034 1035 <div class="jd-descrdiv"> 1036 Adds a call-to-action button for an interactive post. 1037 1038 1039 1040 </div> 1041 1042 </td></tr> 1043 1044 1045 1046 <tr class=" api apilevel-" > 1047 <td class="jd-typecol"><nobr> 1048 1049 1050 1051 1052 1053 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1054 </td> 1055 <td class="jd-linkcol" width="100%"><nobr> 1056 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#addStream(android.net.Uri)">addStream</a></span>(Uri streamUri)</nobr> 1057 1058 <div class="jd-descrdiv"> 1059 Add a stream URI to the data that should be shared. 1060 1061 1062 1063 </div> 1064 1065 </td></tr> 1066 1067 1068 1069 <tr class="alt-color api apilevel-" > 1070 <td class="jd-typecol"><nobr> 1071 1072 1073 1074 1075 1076 Intent</nobr> 1077 </td> 1078 <td class="jd-linkcol" width="100%"><nobr> 1079 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#getIntent()">getIntent</a></span>()</nobr> 1080 1081 <div class="jd-descrdiv"> 1082 Retrieve the Intent as configured so far by the Builder. 1083 1084 1085 1086 </div> 1087 1088 </td></tr> 1089 1090 1091 1092 <tr class=" api apilevel-" > 1093 <td class="jd-typecol"><nobr> 1094 1095 1096 1097 1098 1099 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1100 </td> 1101 <td class="jd-linkcol" width="100%"><nobr> 1102 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setContentDeepLinkId(java.lang.String, java.lang.String, java.lang.String, android.net.Uri)">setContentDeepLinkId</a></span>(String deepLinkId, String title, String description, Uri thumbnailUri)</nobr> 1103 1104 <div class="jd-descrdiv"> 1105 Include a deep-link ID to a resource to share on Google+. 1106 1107 1108 1109 </div> 1110 1111 </td></tr> 1112 1113 1114 1115 <tr class="alt-color api apilevel-" > 1116 <td class="jd-typecol"><nobr> 1117 1118 1119 1120 1121 1122 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1123 </td> 1124 <td class="jd-linkcol" width="100%"><nobr> 1125 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setContentDeepLinkId(java.lang.String)">setContentDeepLinkId</a></span>(String deepLinkId)</nobr> 1126 1127 <div class="jd-descrdiv"> 1128 Include a deep-link URI of a resource to share on Google+. 1129 1130 1131 1132 </div> 1133 1134 </td></tr> 1135 1136 1137 1138 <tr class=" api apilevel-" > 1139 <td class="jd-typecol"><nobr> 1140 1141 1142 1143 1144 1145 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1146 </td> 1147 <td class="jd-linkcol" width="100%"><nobr> 1148 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setContentUrl(android.net.Uri)">setContentUrl</a></span>(Uri uri)</nobr> 1149 1150 <div class="jd-descrdiv"> 1151 Sets a URL to link to from the content on the web. 1152 1153 1154 1155 </div> 1156 1157 </td></tr> 1158 1159 1160 1161 <tr class="alt-color api apilevel-" > 1162 <td class="jd-typecol"><nobr> 1163 1164 1165 1166 1167 1168 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1169 </td> 1170 <td class="jd-linkcol" width="100%"><nobr> 1171 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setRecipients(java.util.List<com.google.android.gms.plus.model.people.Person>)">setRecipients</a></span>(List<<a href="/reference/com/google/android/gms/plus/model/people/Person.html">Person</a>> recipientList)</nobr> 1172 1173 <div class="jd-descrdiv"> 1174 Deprecated, use the constructor <code><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#PlusShare.Builder(android.app.Activity)">PlusShare.Builder(Activity)</a></code> and call 1175 <code><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setRecipients(com.google.android.gms.plus.model.people.Person, java.util.List<com.google.android.gms.plus.model.people.Person>)">setRecipients(Person, List<Person>)</a></code>. 1176 1177 1178 1179 </div> 1180 1181 </td></tr> 1182 1183 1184 1185 <tr class=" api apilevel-" > 1186 <td class="jd-typecol"><nobr> 1187 1188 1189 1190 1191 1192 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1193 </td> 1194 <td class="jd-linkcol" width="100%"><nobr> 1195 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setRecipients(com.google.android.gms.plus.model.people.Person, java.util.List<com.google.android.gms.plus.model.people.Person>)">setRecipients</a></span>(<a href="/reference/com/google/android/gms/plus/model/people/Person.html">Person</a> user, List<<a href="/reference/com/google/android/gms/plus/model/people/Person.html">Person</a>> recipientList)</nobr> 1196 1197 <div class="jd-descrdiv"> 1198 Sets a list of people to send the interactive post to. 1199 1200 1201 1202 </div> 1203 1204 </td></tr> 1205 1206 1207 1208 <tr class="alt-color api apilevel-" > 1209 <td class="jd-typecol"><nobr> 1210 1211 1212 1213 1214 1215 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1216 </td> 1217 <td class="jd-linkcol" width="100%"><nobr> 1218 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setStream(android.net.Uri)">setStream</a></span>(Uri streamUri)</nobr> 1219 1220 <div class="jd-descrdiv"> 1221 Set a stream URI to the data that should be shared. 1222 1223 1224 1225 </div> 1226 1227 </td></tr> 1228 1229 1230 1231 <tr class=" api apilevel-" > 1232 <td class="jd-typecol"><nobr> 1233 1234 1235 1236 1237 1238 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1239 </td> 1240 <td class="jd-linkcol" width="100%"><nobr> 1241 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setText(java.lang.CharSequence)">setText</a></span>(CharSequence text)</nobr> 1242 1243 <div class="jd-descrdiv"> 1244 Set a pre-filled message to be sent as part of the share. 1245 1246 1247 1248 </div> 1249 1250 </td></tr> 1251 1252 1253 1254 <tr class="alt-color api apilevel-" > 1255 <td class="jd-typecol"><nobr> 1256 1257 1258 1259 1260 1261 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a></nobr> 1262 </td> 1263 <td class="jd-linkcol" width="100%"><nobr> 1264 <span class="sympad"><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setType(java.lang.String)">setType</a></span>(String mimeType)</nobr> 1265 1266 <div class="jd-descrdiv"> 1267 Set the type of data being shared. 1268 1269 1270 1271 </div> 1272 1273 </td></tr> 1274 1275 1276 1277 </table> 1278 1279 1280 1281 1282 1283 1284 1285 <!-- ========== METHOD SUMMARY =========== --> 1286 <table id="inhmethods" class="jd-sumtable"><tr><th> 1287 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> 1288 <div style="clear:left;">Inherited Methods</div></th></tr> 1289 1290 1291 <tr class="api apilevel-" > 1292 <td colspan="12"> 1293 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 1294 ><img id="inherited-methods-java.lang.Object-trigger" 1295 src="/assets/images/triangle-closed.png" 1296 class="jd-expando-trigger-img" /></a> 1297 From class 1298 1299 java.lang.Object 1300 1301 <div id="inherited-methods-java.lang.Object"> 1302 <div id="inherited-methods-java.lang.Object-list" 1303 class="jd-inheritedlinks"> 1304 </div> 1305 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 1306 <table class="jd-sumtable-expando"> 1307 1308 1309 1310 1311 <tr class="alt-color api apilevel-" > 1312 <td class="jd-typecol"><nobr> 1313 1314 1315 1316 1317 1318 Object</nobr> 1319 </td> 1320 <td class="jd-linkcol" width="100%"><nobr> 1321 <span class="sympad">clone</span>()</nobr> 1322 1323 </td></tr> 1324 1325 1326 1327 <tr class=" api apilevel-" > 1328 <td class="jd-typecol"><nobr> 1329 1330 1331 1332 1333 1334 boolean</nobr> 1335 </td> 1336 <td class="jd-linkcol" width="100%"><nobr> 1337 <span class="sympad">equals</span>(Object arg0)</nobr> 1338 1339 </td></tr> 1340 1341 1342 1343 <tr class="alt-color api apilevel-" > 1344 <td class="jd-typecol"><nobr> 1345 1346 1347 1348 1349 1350 void</nobr> 1351 </td> 1352 <td class="jd-linkcol" width="100%"><nobr> 1353 <span class="sympad">finalize</span>()</nobr> 1354 1355 </td></tr> 1356 1357 1358 1359 <tr class=" api apilevel-" > 1360 <td class="jd-typecol"><nobr> 1361 1362 1363 final 1364 1365 1366 Class<?></nobr> 1367 </td> 1368 <td class="jd-linkcol" width="100%"><nobr> 1369 <span class="sympad">getClass</span>()</nobr> 1370 1371 </td></tr> 1372 1373 1374 1375 <tr class="alt-color api apilevel-" > 1376 <td class="jd-typecol"><nobr> 1377 1378 1379 1380 1381 1382 int</nobr> 1383 </td> 1384 <td class="jd-linkcol" width="100%"><nobr> 1385 <span class="sympad">hashCode</span>()</nobr> 1386 1387 </td></tr> 1388 1389 1390 1391 <tr class=" api apilevel-" > 1392 <td class="jd-typecol"><nobr> 1393 1394 1395 final 1396 1397 1398 void</nobr> 1399 </td> 1400 <td class="jd-linkcol" width="100%"><nobr> 1401 <span class="sympad">notify</span>()</nobr> 1402 1403 </td></tr> 1404 1405 1406 1407 <tr class="alt-color api apilevel-" > 1408 <td class="jd-typecol"><nobr> 1409 1410 1411 final 1412 1413 1414 void</nobr> 1415 </td> 1416 <td class="jd-linkcol" width="100%"><nobr> 1417 <span class="sympad">notifyAll</span>()</nobr> 1418 1419 </td></tr> 1420 1421 1422 1423 <tr class=" api apilevel-" > 1424 <td class="jd-typecol"><nobr> 1425 1426 1427 1428 1429 1430 String</nobr> 1431 </td> 1432 <td class="jd-linkcol" width="100%"><nobr> 1433 <span class="sympad">toString</span>()</nobr> 1434 1435 </td></tr> 1436 1437 1438 1439 <tr class="alt-color api apilevel-" > 1440 <td class="jd-typecol"><nobr> 1441 1442 1443 final 1444 1445 1446 void</nobr> 1447 </td> 1448 <td class="jd-linkcol" width="100%"><nobr> 1449 <span class="sympad">wait</span>()</nobr> 1450 1451 </td></tr> 1452 1453 1454 1455 <tr class=" api apilevel-" > 1456 <td class="jd-typecol"><nobr> 1457 1458 1459 final 1460 1461 1462 void</nobr> 1463 </td> 1464 <td class="jd-linkcol" width="100%"><nobr> 1465 <span class="sympad">wait</span>(long arg0, int arg1)</nobr> 1466 1467 </td></tr> 1468 1469 1470 1471 <tr class="alt-color api apilevel-" > 1472 <td class="jd-typecol"><nobr> 1473 1474 1475 final 1476 1477 1478 void</nobr> 1479 </td> 1480 <td class="jd-linkcol" width="100%"><nobr> 1481 <span class="sympad">wait</span>(long arg0)</nobr> 1482 1483 </td></tr> 1484 1485 1486 </table> 1487 </div> 1488 </div> 1489 </td></tr> 1490 1491 1492 </table> 1493 1494 1495 </div><!-- jd-descr (summary) --> 1496 1497 <!-- Details --> 1498 1499 1500 1501 1502 1503 1504 1505 1506 <!-- XML Attributes --> 1507 1508 1509 <!-- Enum Values --> 1510 1511 1512 <!-- Constants --> 1513 1514 1515 <!-- Fields --> 1516 1517 1518 <!-- Public ctors --> 1519 1520 1521 <!-- ========= CONSTRUCTOR DETAIL ======== --> 1522 <h2>Public Constructors</h2> 1523 1524 1525 1526 <A NAME="PlusShare.Builder(android.content.Context)"></A> 1527 1528 <div class="jd-details api apilevel-"> 1529 <h4 class="jd-details-title"> 1530 <span class="normal"> 1531 public 1532 1533 1534 1535 1536 1537 </span> 1538 <span class="sympad">PlusShare.Builder</span> 1539 <span class="normal">(Context context)</span> 1540 </h4> 1541 <div class="api-level"> 1542 <div></div> 1543 1544 1545 1546 </div> 1547 <div class="jd-details-descr"> 1548 1549 1550 1551 1552 <div class="jd-tagdata jd-tagdescr"><p>Create a new Builder for launching a sharing action from the given context.</p></div> 1553 <div class="jd-tagdata"> 1554 <h5 class="jd-tagtitle">Parameters</h5> 1555 <table class="jd-tagtable"> 1556 <tr> 1557 <th>context</td> 1558 <td>Context that the share will be launched from 1559 </td> 1560 </tr> 1561 </table> 1562 </div> 1563 1564 </div> 1565 </div> 1566 1567 1568 <A NAME="PlusShare.Builder(android.app.Activity)"></A> 1569 1570 <div class="jd-details api apilevel-"> 1571 <h4 class="jd-details-title"> 1572 <span class="normal"> 1573 public 1574 1575 1576 1577 1578 1579 </span> 1580 <span class="sympad">PlusShare.Builder</span> 1581 <span class="normal">(Activity launchingActivity)</span> 1582 </h4> 1583 <div class="api-level"> 1584 <div></div> 1585 1586 1587 1588 </div> 1589 <div class="jd-details-descr"> 1590 1591 1592 1593 1594 <div class="jd-tagdata jd-tagdescr"><p>Create a new Builder for launching a sharing action from launchingActivity.</p></div> 1595 <div class="jd-tagdata"> 1596 <h5 class="jd-tagtitle">Parameters</h5> 1597 <table class="jd-tagtable"> 1598 <tr> 1599 <th>launchingActivity</td> 1600 <td>Activity that the share will be launched from 1601 </td> 1602 </tr> 1603 </table> 1604 </div> 1605 1606 </div> 1607 </div> 1608 1609 1610 <A NAME="PlusShare.Builder(android.app.Activity, com.google.android.gms.plus.PlusClient)"></A> 1611 1612 <div class="jd-details api apilevel-"> 1613 <h4 class="jd-details-title"> 1614 <span class="normal"> 1615 public 1616 1617 1618 1619 1620 1621 </span> 1622 <span class="sympad">PlusShare.Builder</span> 1623 <span class="normal">(Activity launchingActivity, <a href="/reference/com/google/android/gms/plus/PlusClient.html">PlusClient</a> plusClient)</span> 1624 </h4> 1625 <div class="api-level"> 1626 <div></div> 1627 1628 1629 1630 </div> 1631 <div class="jd-details-descr"> 1632 1633 1634 1635 <p> 1636 <p class="caution"><strong> 1637 This constructor is deprecated.</strong><br/> 1638 Please migrate to <code><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#PlusShare.Builder(android.app.Activity)">PlusShare.Builder(Activity)</a></code>, 1639 the PlusClient is optional. 1640 1641 </p> 1642 <div class="jd-tagdata jd-tagdescr"><p></p></div> 1643 1644 </div> 1645 </div> 1646 1647 1648 1649 1650 1651 <!-- ========= CONSTRUCTOR DETAIL ======== --> 1652 <!-- Protected ctors --> 1653 1654 1655 1656 <!-- ========= METHOD DETAIL ======== --> 1657 <!-- Public methdos --> 1658 1659 <h2>Public Methods</h2> 1660 1661 1662 1663 <A NAME="addCallToAction(java.lang.String, android.net.Uri, java.lang.String)"></A> 1664 1665 <div class="jd-details api apilevel-"> 1666 <h4 class="jd-details-title"> 1667 <span class="normal"> 1668 public 1669 1670 1671 1672 1673 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 1674 </span> 1675 <span class="sympad">addCallToAction</span> 1676 <span class="normal">(String label, Uri uri, String deepLinkId)</span> 1677 </h4> 1678 <div class="api-level"> 1679 <div></div> 1680 1681 1682 1683 </div> 1684 <div class="jd-details-descr"> 1685 1686 1687 1688 1689 <div class="jd-tagdata jd-tagdescr"><p>Adds a call-to-action button for an interactive post. To use this method, you must have 1690 passed a signed-in PlusClient to the 1691 Builder.Builder(Activity, PlusClient) constructor or an 1692 <code><a href="/reference/java/lang/IllegalStateException.html">IllegalStateException</a></code> will be thrown.</p></div> 1693 <div class="jd-tagdata"> 1694 <h5 class="jd-tagtitle">Parameters</h5> 1695 <table class="jd-tagtable"> 1696 <tr> 1697 <th>label</td> 1698 <td>The call-to-action label. Choose a value from the list of 1699 <a href="//developers.google.com/+/features/call-to-action-labels"> 1700 list</a></td> 1701 </tr> 1702 <tr> 1703 <th>uri</td> 1704 <td>The URL to link to when the user clicks the call-to-action. This parameter 1705 is required.</td> 1706 </tr> 1707 <tr> 1708 <th>deepLinkId</td> 1709 <td>A deep-link ID to send to mobile clients when the user 1710 clicks the call-to-action. This parameter is optional. 1711 </td> 1712 </tr> 1713 </table> 1714 </div> 1715 1716 </div> 1717 </div> 1718 1719 1720 <A NAME="addStream(android.net.Uri)"></A> 1721 1722 <div class="jd-details api apilevel-"> 1723 <h4 class="jd-details-title"> 1724 <span class="normal"> 1725 public 1726 1727 1728 1729 1730 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 1731 </span> 1732 <span class="sympad">addStream</span> 1733 <span class="normal">(Uri streamUri)</span> 1734 </h4> 1735 <div class="api-level"> 1736 <div></div> 1737 1738 1739 1740 </div> 1741 <div class="jd-details-descr"> 1742 1743 1744 1745 1746 <div class="jd-tagdata jd-tagdescr"><p>Add a stream URI to the data that should be shared. If this is not the first 1747 stream URI added the final intent constructed will become an ACTION_SEND_MULTIPLE 1748 intent. Not all apps will handle both ACTION_SEND and ACTION_SEND_MULTIPLE.</p></div> 1749 <div class="jd-tagdata"> 1750 <h5 class="jd-tagtitle">Parameters</h5> 1751 <table class="jd-tagtable"> 1752 <tr> 1753 <th>streamUri</td> 1754 <td>URI of the stream to share.</td> 1755 </tr> 1756 </table> 1757 </div> 1758 <div class="jd-tagdata"> 1759 <h5 class="jd-tagtitle">Returns</h5> 1760 <ul class="nolist"><li>This Builder for method chaining.</li></ul> 1761 </div> 1762 <div class="jd-tagdata"> 1763 <h5 class="jd-tagtitle">See Also</h5> 1764 <ul class="nolist"><li><code><a href="/reference/android/content/Intent.html#EXTRA_STREAM">EXTRA_STREAM</a></code></li><li><code><a href="/reference/android/content/Intent.html#ACTION_SEND">ACTION_SEND</a></code></li> 1765 </ul> 1766 </div> 1767 1768 </div> 1769 </div> 1770 1771 1772 <A NAME="getIntent()"></A> 1773 1774 <div class="jd-details api apilevel-"> 1775 <h4 class="jd-details-title"> 1776 <span class="normal"> 1777 public 1778 1779 1780 1781 1782 Intent 1783 </span> 1784 <span class="sympad">getIntent</span> 1785 <span class="normal">()</span> 1786 </h4> 1787 <div class="api-level"> 1788 <div></div> 1789 1790 1791 1792 </div> 1793 <div class="jd-details-descr"> 1794 1795 1796 1797 1798 <div class="jd-tagdata jd-tagdescr"><p>Retrieve the Intent as configured so far by the Builder.</p></div> 1799 <div class="jd-tagdata"> 1800 <h5 class="jd-tagtitle">Returns</h5> 1801 <ul class="nolist"><li>The current Intent being configured by this builder 1802 </li></ul> 1803 </div> 1804 1805 </div> 1806 </div> 1807 1808 1809 <A NAME="setContentDeepLinkId(java.lang.String, java.lang.String, java.lang.String, android.net.Uri)"></A> 1810 1811 <div class="jd-details api apilevel-"> 1812 <h4 class="jd-details-title"> 1813 <span class="normal"> 1814 public 1815 1816 1817 1818 1819 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 1820 </span> 1821 <span class="sympad">setContentDeepLinkId</span> 1822 <span class="normal">(String deepLinkId, String title, String description, Uri thumbnailUri)</span> 1823 </h4> 1824 <div class="api-level"> 1825 <div></div> 1826 1827 1828 1829 </div> 1830 <div class="jd-details-descr"> 1831 1832 1833 1834 1835 <div class="jd-tagdata jd-tagdescr"><p>Include a deep-link ID to a resource to share on Google+.</p></div> 1836 <div class="jd-tagdata"> 1837 <h5 class="jd-tagtitle">Parameters</h5> 1838 <table class="jd-tagtable"> 1839 <tr> 1840 <th>deepLinkId</td> 1841 <td>The deep-link ID to a resource to share on Google+. 1842 This parameter is required.</td> 1843 </tr> 1844 <tr> 1845 <th>title</td> 1846 <td>The title of the resource. Used if there is no content URL to display. 1847 This parameter is optional.</td> 1848 </tr> 1849 <tr> 1850 <th>description</td> 1851 <td>The description of a resource. Used if there is no content URL to 1852 display. This parameter is optional.</td> 1853 </tr> 1854 <tr> 1855 <th>thumbnailUri</td> 1856 <td>The thumbnailUri for a resource. Used if there is no content URL to 1857 display. This parameter is optional.</td> 1858 </tr> 1859 </table> 1860 </div> 1861 <div class="jd-tagdata"> 1862 <h5 class="jd-tagtitle">Returns</h5> 1863 <ul class="nolist"><li>This Builder for method chaining. 1864 </li></ul> 1865 </div> 1866 1867 </div> 1868 </div> 1869 1870 1871 <A NAME="setContentDeepLinkId(java.lang.String)"></A> 1872 1873 <div class="jd-details api apilevel-"> 1874 <h4 class="jd-details-title"> 1875 <span class="normal"> 1876 public 1877 1878 1879 1880 1881 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 1882 </span> 1883 <span class="sympad">setContentDeepLinkId</span> 1884 <span class="normal">(String deepLinkId)</span> 1885 </h4> 1886 <div class="api-level"> 1887 <div></div> 1888 1889 1890 1891 </div> 1892 <div class="jd-details-descr"> 1893 1894 1895 1896 1897 <div class="jd-tagdata jd-tagdescr"><p>Include a deep-link URI of a resource to share on Google+.</p></div> 1898 <div class="jd-tagdata"> 1899 <h5 class="jd-tagtitle">Parameters</h5> 1900 <table class="jd-tagtable"> 1901 <tr> 1902 <th>deepLinkId</td> 1903 <td>The deep-link ID to a resource to share on Google+. 1904 This parameter is required.</td> 1905 </tr> 1906 </table> 1907 </div> 1908 <div class="jd-tagdata"> 1909 <h5 class="jd-tagtitle">Returns</h5> 1910 <ul class="nolist"><li>This Builder for method chaining. 1911 </li></ul> 1912 </div> 1913 1914 </div> 1915 </div> 1916 1917 1918 <A NAME="setContentUrl(android.net.Uri)"></A> 1919 1920 <div class="jd-details api apilevel-"> 1921 <h4 class="jd-details-title"> 1922 <span class="normal"> 1923 public 1924 1925 1926 1927 1928 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 1929 </span> 1930 <span class="sympad">setContentUrl</span> 1931 <span class="normal">(Uri uri)</span> 1932 </h4> 1933 <div class="api-level"> 1934 <div></div> 1935 1936 1937 1938 </div> 1939 <div class="jd-details-descr"> 1940 1941 1942 1943 1944 <div class="jd-tagdata jd-tagdescr"><p>Sets a URL to link to from the content on the web. The content URL is required when 1945 used in conjunction with <code><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#addCallToAction(java.lang.String, android.net.Uri, java.lang.String)">addCallToAction(String, Uri, String)</a></code> to build an 1946 interactive post, and to provide the user context for the call-to-action button.</p></div> 1947 <div class="jd-tagdata"> 1948 <h5 class="jd-tagtitle">Parameters</h5> 1949 <table class="jd-tagtable"> 1950 <tr> 1951 <th>uri</td> 1952 <td>the URL to link to on the web.</td> 1953 </tr> 1954 </table> 1955 </div> 1956 <div class="jd-tagdata"> 1957 <h5 class="jd-tagtitle">Returns</h5> 1958 <ul class="nolist"><li>This Builder for method chaining. 1959 </li></ul> 1960 </div> 1961 1962 </div> 1963 </div> 1964 1965 1966 <A NAME="setRecipients(java.util.List<com.google.android.gms.plus.model.people.Person>)"></A> 1967 1968 <div class="jd-details api apilevel-"> 1969 <h4 class="jd-details-title"> 1970 <span class="normal"> 1971 public 1972 1973 1974 1975 1976 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 1977 </span> 1978 <span class="sympad">setRecipients</span> 1979 <span class="normal">(List<<a href="/reference/com/google/android/gms/plus/model/people/Person.html">Person</a>> recipientList)</span> 1980 </h4> 1981 <div class="api-level"> 1982 <div></div> 1983 1984 1985 1986 </div> 1987 <div class="jd-details-descr"> 1988 1989 1990 1991 1992 <div class="jd-tagdata jd-tagdescr"><p>Deprecated, use the constructor <code><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#PlusShare.Builder(android.app.Activity)">PlusShare.Builder(Activity)</a></code> and call 1993 <code><a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html#setRecipients(com.google.android.gms.plus.model.people.Person, java.util.List<com.google.android.gms.plus.model.people.Person>)">setRecipients(Person, List<Person>)</a></code>. Sets a list of people 1994 to send the interactive post to. 1995 1996 <p>This sets the initial people to share with, but the user can change who the post 1997 is shared with before posting. A maximum of ten recipients are allowed.</p></p></div> 1998 <div class="jd-tagdata"> 1999 <h5 class="jd-tagtitle">Parameters</h5> 2000 <table class="jd-tagtable"> 2001 <tr> 2002 <th>recipientList</td> 2003 <td>A list of recipients. See loadPeople(PlusClient.OnPeopleLoadedListener, String...) and 2004 <code><a href="/reference/com/google/android/gms/plus/PlusShare.html#createPerson(java.lang.String, java.lang.String)">createPerson(String, String)</a></code>.</td> 2005 </tr> 2006 </table> 2007 </div> 2008 <div class="jd-tagdata"> 2009 <h5 class="jd-tagtitle">Returns</h5> 2010 <ul class="nolist"><li>This Builder for method chaining. 2011 </li></ul> 2012 </div> 2013 2014 </div> 2015 </div> 2016 2017 2018 <A NAME="setRecipients(com.google.android.gms.plus.model.people.Person, java.util.List<com.google.android.gms.plus.model.people.Person>)"></A> 2019 2020 <div class="jd-details api apilevel-"> 2021 <h4 class="jd-details-title"> 2022 <span class="normal"> 2023 public 2024 2025 2026 2027 2028 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 2029 </span> 2030 <span class="sympad">setRecipients</span> 2031 <span class="normal">(<a href="/reference/com/google/android/gms/plus/model/people/Person.html">Person</a> user, List<<a href="/reference/com/google/android/gms/plus/model/people/Person.html">Person</a>> recipientList)</span> 2032 </h4> 2033 <div class="api-level"> 2034 <div></div> 2035 2036 2037 2038 </div> 2039 <div class="jd-details-descr"> 2040 2041 2042 2043 2044 <div class="jd-tagdata jd-tagdescr"><p>Sets a list of people to send the interactive post to. 2045 2046 <p>This sets the initial people to share with, but the user can change who the post 2047 is shared with before posting. A maximum of ten recipients are allowed.</p></p></div> 2048 <div class="jd-tagdata"> 2049 <h5 class="jd-tagtitle">Parameters</h5> 2050 <table class="jd-tagtable"> 2051 <tr> 2052 <th>user</td> 2053 <td>The user to send the post as, see 2054 <code><a href="/reference/com/google/android/gms/plus/People.html#getCurrentPerson(com.google.android.gms.common.api.GoogleApiClient)">getCurrentPerson(com.google.android.gms.common.api.GoogleApiClient)</a></code>.</td> 2055 </tr> 2056 <tr> 2057 <th>recipientList</td> 2058 <td>A list of recipients. See loadPeople(PlusClient.OnPeopleLoadedListener, String...) and 2059 <code><a href="/reference/com/google/android/gms/plus/PlusShare.html#createPerson(java.lang.String, java.lang.String)">createPerson(String, String)</a></code>.</td> 2060 </tr> 2061 </table> 2062 </div> 2063 <div class="jd-tagdata"> 2064 <h5 class="jd-tagtitle">Returns</h5> 2065 <ul class="nolist"><li>This Builder for method chaining. 2066 </li></ul> 2067 </div> 2068 2069 </div> 2070 </div> 2071 2072 2073 <A NAME="setStream(android.net.Uri)"></A> 2074 2075 <div class="jd-details api apilevel-"> 2076 <h4 class="jd-details-title"> 2077 <span class="normal"> 2078 public 2079 2080 2081 2082 2083 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 2084 </span> 2085 <span class="sympad">setStream</span> 2086 <span class="normal">(Uri streamUri)</span> 2087 </h4> 2088 <div class="api-level"> 2089 <div></div> 2090 2091 2092 2093 </div> 2094 <div class="jd-details-descr"> 2095 2096 2097 2098 2099 <div class="jd-tagdata jd-tagdescr"><p>Set a stream URI to the data that should be shared. 2100 2101 <p>This replaces all currently set stream URIs and will produce a single-stream 2102 ACTION_SEND intent.</p></p></div> 2103 <div class="jd-tagdata"> 2104 <h5 class="jd-tagtitle">Parameters</h5> 2105 <table class="jd-tagtable"> 2106 <tr> 2107 <th>streamUri</td> 2108 <td>URI of the stream to share</td> 2109 </tr> 2110 </table> 2111 </div> 2112 <div class="jd-tagdata"> 2113 <h5 class="jd-tagtitle">Returns</h5> 2114 <ul class="nolist"><li>This Builder for method chaining</li></ul> 2115 </div> 2116 <div class="jd-tagdata"> 2117 <h5 class="jd-tagtitle">See Also</h5> 2118 <ul class="nolist"><li><code><a href="/reference/android/content/Intent.html#EXTRA_STREAM">EXTRA_STREAM</a></code></li> 2119 </ul> 2120 </div> 2121 2122 </div> 2123 </div> 2124 2125 2126 <A NAME="setText(java.lang.CharSequence)"></A> 2127 2128 <div class="jd-details api apilevel-"> 2129 <h4 class="jd-details-title"> 2130 <span class="normal"> 2131 public 2132 2133 2134 2135 2136 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 2137 </span> 2138 <span class="sympad">setText</span> 2139 <span class="normal">(CharSequence text)</span> 2140 </h4> 2141 <div class="api-level"> 2142 <div></div> 2143 2144 2145 2146 </div> 2147 <div class="jd-details-descr"> 2148 2149 2150 2151 2152 <div class="jd-tagdata jd-tagdescr"><p>Set a pre-filled message to be sent as part of the share. 2153 This may be a styled CharSequence.</p></div> 2154 <div class="jd-tagdata"> 2155 <h5 class="jd-tagtitle">Parameters</h5> 2156 <table class="jd-tagtable"> 2157 <tr> 2158 <th>text</td> 2159 <td>Text to share</td> 2160 </tr> 2161 </table> 2162 </div> 2163 <div class="jd-tagdata"> 2164 <h5 class="jd-tagtitle">Returns</h5> 2165 <ul class="nolist"><li>This Builder for method chaining</li></ul> 2166 </div> 2167 <div class="jd-tagdata"> 2168 <h5 class="jd-tagtitle">See Also</h5> 2169 <ul class="nolist"><li><code><a href="/reference/android/content/Intent.html#EXTRA_TEXT">EXTRA_TEXT</a></code></li> 2170 </ul> 2171 </div> 2172 2173 </div> 2174 </div> 2175 2176 2177 <A NAME="setType(java.lang.String)"></A> 2178 2179 <div class="jd-details api apilevel-"> 2180 <h4 class="jd-details-title"> 2181 <span class="normal"> 2182 public 2183 2184 2185 2186 2187 <a href="/reference/com/google/android/gms/plus/PlusShare.Builder.html">PlusShare.Builder</a> 2188 </span> 2189 <span class="sympad">setType</span> 2190 <span class="normal">(String mimeType)</span> 2191 </h4> 2192 <div class="api-level"> 2193 <div></div> 2194 2195 2196 2197 </div> 2198 <div class="jd-details-descr"> 2199 2200 2201 2202 2203 <div class="jd-tagdata jd-tagdescr"><p>Set the type of data being shared.</p></div> 2204 <div class="jd-tagdata"> 2205 <h5 class="jd-tagtitle">Parameters</h5> 2206 <table class="jd-tagtable"> 2207 <tr> 2208 <th>mimeType</td> 2209 <td>mimetype of the shared data</td> 2210 </tr> 2211 </table> 2212 </div> 2213 <div class="jd-tagdata"> 2214 <h5 class="jd-tagtitle">Returns</h5> 2215 <ul class="nolist"><li>This Builder for method chaining</li></ul> 2216 </div> 2217 <div class="jd-tagdata"> 2218 <h5 class="jd-tagtitle">See Also</h5> 2219 <ul class="nolist"><li><code><a href="/reference/android/content/Intent.html#setType(java.lang.String)">setType(String)</a></code></li> 2220 </ul> 2221 </div> 2222 2223 </div> 2224 </div> 2225 2226 2227 2228 2229 2230 <!-- ========= METHOD DETAIL ======== --> 2231 2232 2233 2234 <!-- ========= END OF CLASS DATA ========= --> 2235 <A NAME="navbar_top"></A> 2236 2237 <div id="footer" class="wrap" > 2238 2239 2240 <div id="copyright"> 2241 2242 Except as noted, this content is licensed under <a 2243 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 2244 For details and restrictions, see the <a href="/license.html"> 2245 Content License</a>. 2246 </div> 2247 <div id="build_info"> 2248 2249 <script src="/timestamp.js" type="text/javascript"></script> 2250 <script>document.write(BUILD_TIMESTAMP)</script> 2251 2252 </div> 2253 2254 2255 <div id="footerlinks"> 2256 2257 <p> 2258 <a href="/about/index.html">About Android</a> | 2259 <a href="/legal.html">Legal</a> | 2260 <a href="/support.html">Support</a> 2261 </p> 2262 </div> 2263 2264 </div> <!-- end footer --> 2265 </div> <!-- jd-content --> 2266 2267 </div><!-- end doc-content --> 2268 2269 </div> <!-- end body-content --> 2270 2271 2272 2273 2274 2275 2276 </body> 2277 </html> 2278