# AppFunctionsChangeEvent.MetadataChanged

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.MetadataChanged) Added in [1.0.0-rc01](https://developer.android.com/jetpack/androidx/releases/appfunctions#1.0.0-rc01)

*** ** * ** ***


```
class AppFunctionsChangeEvent.MetadataChanged : AppFunctionsChangeEvent
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.appfunctions.AppFunctionsChangeEvent](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionsChangeEvent) ||
|   | ↳ | [androidx.appfunctions.AppFunctionsChangeEvent.MetadataChanged](https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionsChangeEvent.MetadataChanged) |

*** ** * ** ***

Triggered when changes occur to a package exposing app functions that may impact the state or metadata of its contained functions.

This includes changes such as:

- The definition of a function metadata exposed by the package has changed (e.g, the parameters of the function have changed).

- All functions within the package are added or removed due to the package being installed or uninstalled.

- The package's `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionPackageMetadata` has been updated.

Upon receiving this notification, clients can call `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionManager#searchAppFunctions(androidx.appfunctions.AppFunctionSearchSpec)` with `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionSearchSpec#packageNames()` to retrieve the updated `https://developer.android.com/reference/kotlin/androidx/appfunctions/metadata/AppFunctionMetadata` for affected functions.

Clients should call `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionManager#getAppFunctionStates(kotlin.collections.List)` to retrieve the latest `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionState` for packages affected by these changes.

**Note:** If packages are reported to have changed but are not returned from `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionManager#searchAppFunctions(androidx.appfunctions.AppFunctionSearchSpec)`, it means that the packages have been uninstalled or no longer have functions.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionsChangeEvent.MetadataChanged#MetadataChanged(kotlin.collections.Set)(changedPackageNames: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<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/AppFunctionsChangeEvent.MetadataChanged#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/AppFunctionsChangeEvent.MetadataChanged#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionsChangeEvent.MetadataChanged#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/kotlin/androidx/appfunctions/AppFunctionsChangeEvent.MetadataChanged#changedPackageNames()` The set of package names that have changed. |

## Public constructors

### MetadataChanged

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

```
MetadataChanged(changedPackageNames: Set<String>)
```

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### changedPackageNames

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

```
val changedPackageNames: Set<String>
```

The set of package names that have changed.