Selektor metod.setRelayUrl
Podaj adres URL usługi przekaźnika, aby obejść problemy dotyczące wielu domen.
Podpis
setRelayUrl(url: string): Picker;
Szczegóły
Opcjonalnie |
Nie |
Finał |
Nie |
Chroniony |
Nie |
Statyczny |
Nie |
Parametry
Nazwa |
Typ |
Opcjonalnie |
Opis |
url |
string |
Nie |
|
Zwroty
Picker
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-09 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-09 UTC."],[[["The `setRelayUrl` method allows you to define a relay URL for the Picker."],["This is primarily used to bypass cross-domain restrictions that may arise during file uploads or other interactions."],["Using this method, you provide a `string` representing the relay URL to the `setRelayUrl` function, which then applies this setting to the Picker instance."],["This is an optional configuration, but it can be crucial for ensuring seamless functionality in environments with cross-domain policies."],["The method is not static, protected, or final, indicating its role as an instance-level configuration option within the Picker class."]]],["The core function `setRelayUrl` accepts a mandatory string parameter `url` to define a relay URL, addressing cross-domain problems. This method is neither optional, final, protected, nor static. It returns a `Picker` object and requires a URL string as input. The function allows specifying a relay URL to solve cross domain problems, through the use of a string parameter, that is required, called `url`.\n"]]