public
abstrait
vide
onSnapshotReady(instantané Bitmap)
Appelée lorsque l'instantané a été pris.
Cette méthode est appelée dans le thread UI Android.
Paramètres
snapshot
Bitmap contenant la carte telle qu'elle est actuellement affichée, ou null si l'instantané n'a pas pu être pris.
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 2025/07/13 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/13 (UTC)."],[[["`GoogleMap.SnapshotReadyCallback` is an interface used to receive a snapshot of the map."],["The `onSnapshotReady` method is called when the snapshot is ready, providing a Bitmap of the map or null if it failed."],["This callback happens on the Android UI thread."]]],["The `GoogleMap.SnapshotReadyCallback` interface notifies when a map snapshot is ready. It features the `onSnapshotReady` method, which is invoked on the UI thread. This method receives a `Bitmap` object representing the taken map snapshot. If the snapshot process fails, the `Bitmap` parameter will be `null`. Developers use this interface to act upon successful or failed map snapshot attempts.\n"]]