方法 PickerBuilder.setDeveloperKey
設定從 Google Developers Console 取得的 Browser API 金鑰。如要進一步瞭解如何取得瀏覽器 API 金鑰,請參閱開發人員指南。
簽名
setDeveloperKey(key: string): PickerBuilder;
詳細資料
參數
傳回
PickerBuilder
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-14 (世界標準時間)。
[null,null,["上次更新時間:2024-10-14 (世界標準時間)。"],[[["Allows developers to configure the Picker by setting the Browser API key obtained from the Google Developers Console."],["Requires a mandatory `key` parameter of type `string`, representing the Browser API key."],["Returns a `PickerBuilder` instance for further customization and building of the Picker widget."],["This method is not optional, final, protected, or static."],["Refer to the Developer's Guide for instructions on obtaining the Browser API key."]]],["This document describes the `setDeveloperKey` function, which configures the Browser API key for a service, sourced from the Google Developers Console. The function accepts a mandatory string parameter, `key`, representing the API key. It's a non-static, non-protected, non-final method with no optional parameters. Calling `setDeveloperKey` returns a `PickerBuilder` object, allowing for method chaining. Obtaining the API key is detailed in the Developer's Guide.\n"]]