# AppFunctionTextResource

Artifact: [androidx.appfunctions:appfunctions](https://developer.android.com/jetpack/androidx/releases/appfunctions) [View Source](https://cs.android.com/search?q=file:androidx/appfunctions/AppFunctionTextResource.kt+class:androidx.appfunctions.AppFunctionTextResource) Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

*** ** * ** ***


```
@ExperimentalAppFunctionsApi
@AppFunctionSerializable(isDescribedByKDoc = true)
class AppFunctionTextResource
```

<br />

*** ** * ** ***

Represents a text resource in an app function's response/parameters.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#AppFunctionTextResource(kotlin.String,kotlin.String)(mimeType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, content: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#content()` The text content of the resource. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#mimeType()` The MIME type of the text resource, used by the agent to understand the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#content()`. |

## Public constructors

### AppFunctionTextResource

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

```
AppFunctionTextResource(mimeType: String, content: String)
```

| Parameters |
|---|---|
| `mimeType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The MIME type of the text resource, used by the agent to understand the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#content()`. |
| `content: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The text content of the resource. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### content

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

```
val content: String
```

The text content of the resource.

### mimeType

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

```
val mimeType: String
```

The MIME type of the text resource, used by the agent to understand the `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionTextResource#content()`.