Chamado quando um marcador termina de ser arrastado. Acesse o local do marcador por meio de getPosition().
Parâmetros
marcador
O marcador que foi arrastado.
public
abstrato
void
onMarkerDragStart(Marker marcador)
Chamado quando um marcador começa a ser arrastado. O local do marcador pode ser acessado por getPosition(). Essa posição pode ser diferente da posição anterior ao início da ação de arrastar porque o marcador é mostrado acima do ponto de contato.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-04-26 UTC."],[[["`GoogleMap.OnMarkerDragListener` is a callback interface used to handle marker drag events on Google Maps in Android."],["It provides three methods: `onMarkerDragStart`, `onMarkerDrag`, and `onMarkerDragEnd`, which are triggered when a marker drag starts, continues, and ends, respectively."],["All listener methods are executed on the Android UI thread, ensuring they can interact with UI elements directly."],["The `Marker` object provided to the listener methods allows access to the marker's current position during the drag process."]]],["`GoogleMap.OnMarkerDragListener` is a callback interface for marker drag events on Android. It contains three key methods: `onMarkerDragStart`, triggered when a marker drag begins; `onMarkerDrag`, called continuously during the drag; and `onMarkerDragEnd`, invoked when the drag finishes. Each method receives the dragged `Marker` object, and its position can be obtained with `getPosition()`. All events are executed on the UI thread.\n"]]