GoogleMap.OnMapLoadedCallback
地圖完成算繪時的回呼介面。這種情況會在擷取地圖所需的所有圖塊並完成所有標籤作業後發生。如果地圖因連線問題而從未載入,或地圖持續變更且因使用者持續與地圖互動而從未完成載入,則不會觸發這個事件。
公用方法
公用抽象
void
onMapLoaded
()
地圖完成算繪時呼叫。這項操作只會呼叫一次。如要再次接收通知,您必須要求另一個回呼。
系統會在 Android UI 執行緒上呼叫此方法。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[null,null,["上次更新時間:2025-06-16 (世界標準時間)。"],[[["`GoogleMap.OnMapLoadedCallback` is an interface used to trigger actions after a Google Map has completely rendered within an Android application."],["The `onMapLoaded()` method is called once when the map has finished rendering, signifying all tiles and labels are loaded, and runs on the Android UI thread."],["This callback will not trigger if the map fails to load due to connection issues or if continuous user interaction prevents the map from fully loading."]]],["The `GoogleMap.OnMapLoadedCallback` interface provides a mechanism to be notified when a map has finished rendering. The `onMapLoaded()` method, the sole method within this interface, is invoked once the map has completed the rendering process, including fetching tiles and labeling. This method is called on the Android UI thread. If the user needs to be notified again, they must explicitly request another callback, as this only fires once. The callback won't be triggered if loading is interrupted.\n"]]