方法 PickerBuilder.setDeveloperKey
设置从 Google 开发者控制台获取的 Browser API 密钥。如需详细了解如何获取浏览器 API 密钥,请参阅开发者指南。
签名
setDeveloperKey(key: string): PickerBuilder;
详细信息
参数
返回
PickerBuilder
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-07。
[null,null,["最后更新时间 (UTC):2024-11-07。"],[[["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"]]