Bộ chọn phương thức.setRelayUrl
Chỉ định một URL chuyển tiếp để giải quyết các vấn đề trên nhiều miền.
Chữ ký
setRelayUrl(url: string): Picker;
Thông tin chi tiết
Không bắt buộc |
Không |
Chung kết |
Không |
Được bảo vệ |
Không |
Tĩnh |
Không |
Thông số
Tên |
Loại |
Không bắt buộc |
Mô tả |
url |
string |
Không |
|
Giá trị trả về
Picker
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-11-09 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]