# AppFunctionsChangeEvent.StatesChanged

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

*** ** * ** ***


```
public final class AppFunctionsChangeEvent.StatesChanged extends AppFunctionsChangeEvent
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.appfunctions.AppFunctionsChangeEvent](https://developer.android.com/reference/androidx/appfunctions/AppFunctionsChangeEvent) ||
|   | ↳ | [androidx.appfunctions.AppFunctionsChangeEvent.StatesChanged](https://developer.android.com/reference/androidx/appfunctions/AppFunctionsChangeEvent.StatesChanged) |

*** ** * ** ***

Triggered when the runtime state of one or more app functions changes.

Upon receiving this notification, clients can call `https://developer.android.com/reference/androidx/appfunctions/AppFunctionManager#getAppFunctionStates(kotlin.collections.List)` to retrieve the updated `https://developer.android.com/reference/androidx/appfunctions/AppFunctionState` for the affected functions.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appfunctions/AppFunctionsChangeEvent.StatesChanged#StatesChanged(kotlin.collections.Set)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/AppFunctionName> changedFunctionNames)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionsChangeEvent.StatesChanged#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/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appfunctions/AppFunctionName>` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionsChangeEvent.StatesChanged#getChangedFunctionNames()()` The set of `https://developer.android.com/reference/androidx/appfunctions/AppFunctionName`s representing functions whose state has changed. |
| `int` | `https://developer.android.com/reference/androidx/appfunctions/AppFunctionsChangeEvent.StatesChanged#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/AppFunctionsChangeEvent.StatesChanged#toString()()` |

## Public constructors

### StatesChanged

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

```
public StatesChanged(@NonNull Set<@NonNull AppFunctionName> changedFunctionNames)
```

## Public methods

### equals

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

### getChangedFunctionNames

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

```
public final @NonNull Set<@NonNull AppFunctionName> getChangedFunctionNames()
```

The set of `https://developer.android.com/reference/androidx/appfunctions/AppFunctionName`s representing functions whose state has changed.

### hashCode

```
public int hashCode()
```

### toString

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