---
title: "setText | Mobile sdk | Mobile sdk android | Android"
description: "setText"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# setText

fun [setText](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.annotations/-m-t-text-popup/set-text/)(text: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), mapViewController: [MTMapViewController](https://docs-qmgv.pages.dev/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-view-controller/))

Sets the popup text content and updates it on the map.
