# PdfSandboxHandle

Artifact: [androidx.pdf:pdf-document-service](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/PdfSandboxHandle.kt+class:androidx.pdf.PdfSandboxHandle) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
interface PdfSandboxHandle : AutoCloseable
```

<br />

*** ** * ** ***

Represents a handle to manage the PDF processing resources.

A pdf session is maintained until `https://developer.android.com/reference/kotlin/androidx/pdf/PdfSandboxHandle#close()` is called. Calling close() on handle releases any resources associated with the early initialization, but does not affect ongoing or future document operations initiated via `https://developer.android.com/reference/kotlin/androidx/pdf/PdfLoader` or related APIs.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/pdf/PdfSandboxHandle#close()()` Releases resources initialized using `https://developer.android.com/reference/kotlin/androidx/pdf/SandboxedPdfLoader#startInitialization(android.content.Context)`. |

## Public functions

### close

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
fun close(): Unit
```

Releases resources initialized using `https://developer.android.com/reference/kotlin/androidx/pdf/SandboxedPdfLoader#startInitialization(android.content.Context)`.