# AppFunctionActivityState

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

*** ** * ** ***


```
@RequiresApi(value = 37)
class AppFunctionActivityState
```

<br />

*** ** * ** ***

The state of an activity from the perspective of app functions, retrieved using `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionManager#getAppFunctionActivityStates(kotlin.collections.Set)`.

This holds which app functions are registered for a given activity, a property that can change at runtime during the app's operation.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionState` |   |

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionActivityState#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/AppFunctionActivityState#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionActivityState#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/android/app/appfunctions/AppFunctionActivityId.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionActivityState#activityId()` The `https://developer.android.com/reference/android/app/appfunctions/AppFunctionActivityId.html` associated with this state. |
| `https://developer.android.com/reference/android/util/ArraySet.html<https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionName>` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionActivityState#functionNames()` The `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionName`s associated with this state. |

## Public functions

### equals

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

### hashCode

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

### toString

```
open fun toString(): String
```

## Public properties

### activityId

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

```
val activityId: AppFunctionActivityId
```

The `https://developer.android.com/reference/android/app/appfunctions/AppFunctionActivityId.html` associated with this state.

### functionNames

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

```
val functionNames: ArraySet<AppFunctionName>
```

The `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionName`s associated with this state.