GoogleMap.SnapshotReadyCallback
公用方法
公用抽象
void
onSnapshotReady
(點陣圖快照)
建立快照時叫用。
系統會在 Android UI 執行緒上呼叫此方法。
參數
snapshot |
含有目前算繪地圖的點陣圖;如果無法拍攝快照,則為 null 。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[null,null,["上次更新時間:2025-06-16 (世界標準時間)。"],[[["`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"]]