# 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)
public final class AppFunctionTextResource
```

<br />

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appfunctions/AppFunctionTextResource#AppFunctionTextResource(kotlin.String,kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html mimeType, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html content)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionTextResource#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionTextResource#getContent()()` The text content of the resource. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionTextResource#getMimeType()()` The MIME type of the text resource, used by the agent to understand the `https://developer.android.com/reference/androidx/appfunctions/AppFunctionTextResource#content()`. |
| `int` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionTextResource#hashCode()()` |

## Public constructors

### AppFunctionTextResource

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

```
public AppFunctionTextResource(@NonNull String mimeType, @NonNull String content)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html mimeType` | The MIME type of the text resource, used by the agent to understand the `https://developer.android.com/reference/androidx/appfunctions/AppFunctionTextResource#content()`. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html content` | The text content of the resource. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getContent

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

```
public final @NonNull String getContent()
```

The text content of the resource.

### getMimeType

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

```
public final @NonNull String getMimeType()
```

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

### hashCode

```
public int hashCode()
```