Method PickerBuilder.setOrigin Stay organized with collections Save and categorize content based on your preferences.
Sets the origin of picker dialog. The origin should be set to thewindow.location.protocol + '//' + window.location.host of the top-mostpage, if your application is running in an iframe.
Signature
setOrigin(origin:string):PickerBuilder;Details
| Optional | No |
|---|---|
| Final | No |
| Protected | No |
| Static | No |
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
origin | string | No |
Returns
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-20 UTC.