---
title: "MTOfflineContext | Mobile sdk | Mobile sdk ios | Ios"
description: "Provides additional context for an offline error."
---

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

# MTOfflineContext

```
public struct MTOfflineContext : Sendable, Equatable
```

Provides additional context for an offline error.

-   `[url](#/s:11MapTilerSDK16MTOfflineContextV3url10Foundation3URLVvp)`
    
    The URL of the resource that failed to download.
    
    #### Declaration
    
    Swift
    
    ```
    public let url: URL
    ```
    
-   `[resourceId](#/s:11MapTilerSDK16MTOfflineContextV10resourceIdSSSgvp)`
    
    An optional identifier for the resource (e.g., Tile ID, Source ID).
    
    #### Declaration
    
    Swift
    
    ```
    public let resourceId: String?
    ```
    
-   `[init(url:resourceId:)](#/s:11MapTilerSDK16MTOfflineContextV3url10resourceIdAC10Foundation3URLV_SSSgtcfc)`
    
    Undocumented
    
    #### Declaration
    
    Swift
    
    ```
    public init(url: URL, resourceId: String? = nil)
    ```
