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

<br />

*** ** * ** ***

The state of an activity from the perspective of app functions, retrieved using `https://developer.android.com/reference/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/androidx/appfunctions/AppFunctionState` |   |

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionActivityState#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/android/app/appfunctions/AppFunctionActivityId.html` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionActivityState#getActivityId()()` The `https://developer.android.com/reference/android/app/appfunctions/AppFunctionActivityId.html` associated with this state. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/util/ArraySet.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/AppFunctionName>` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionActivityState#getFunctionNames()()` The `https://developer.android.com/reference/androidx/appfunctions/AppFunctionName`s associated with this state. |
| `int` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionActivityState#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionActivityState#toString()()` |

## Public methods

### equals

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

### getActivityId

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

```
public final @NonNull AppFunctionActivityId getActivityId()
```

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

### getFunctionNames

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

```
public final @NonNull ArraySet<@NonNull AppFunctionName> getFunctionNames()
```

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

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```