Method PickerBuilder.setDeveloperKey
Définit la clé API du navigateur obtenue à partir de la Google Developers Console. Consultez le guide du développeur pour savoir comment obtenir la clé API du navigateur.
Signature
setDeveloperKey(key: string): PickerBuilder;
Détails
Facultatif |
Non |
Finale |
Non |
Protégée |
Non |
Statique |
Non |
Paramètres
Nom |
Type |
Facultatif |
Description |
key |
string |
Non |
|
Renvoie
PickerBuilder
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2024/11/07 (UTC).
[null,null,["Dernière mise à jour le 2024/11/07 (UTC)."],[[["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"]]