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

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

# maxTileCacheSize

var [maxTileCacheSize](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-m-t-map-options/max-tile-cache-size/): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)?

The maximum number of tiles stored in the tile cache for a given source.

If omitted, the cache will be dynamically sized based on the current viewport.
