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

> 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.

# getPack

suspend fun [getPack](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-manager/get-pack/)(context: [Context](https://developer.android.com/reference/kotlin/android/content/Context.html), id: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [MTOfflinePack](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-pack/)?

Retrieves a specific offline pack by its identifier.

#### Return

The [MTOfflinePack](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.offline/-m-t-offline-pack/) if found, or null otherwise.

#### Parameters

context

The Android context.

id

The unique identifier of the pack.
