メソッド PickerBuilder.setOrigin
選択ツールのダイアログの起点を設定します。アプリが iframe で実行されている場合は、オリジンを最上位ページの window.location.protocol + '//' + window.location.host に設定する必要があります。
署名
setOrigin(origin: string): PickerBuilder;
詳細
省略可 |
いいえ |
決勝 |
いいえ |
保護 |
いいえ |
静的 |
いいえ |
パラメータ
名前 |
Type |
省略可能 |
説明 |
origin |
string |
いいえ |
|
戻り値
PickerBuilder
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-07 UTC。
[null,null,["最終更新日 2024-11-07 UTC。"],[[["Sets the origin of the picker dialog, crucial for applications running in iframes to ensure proper functionality by specifying the top-most page's origin."],["The `setOrigin` method requires a single, mandatory parameter: `origin`, which is a string representing the desired origin."],["This method is not optional, final, protected, or static, offering flexibility in its implementation."],["Using this method returns a `PickerBuilder` instance, enabling further configuration of the picker dialog."]]],[]]