ObserveAppFunctionsEvent.MetadataChanged


class ObserveAppFunctionsEvent.MetadataChanged : ObserveAppFunctionsEvent


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 androidx.appfunctions.metadata.AppFunctionPackageMetadata has been updated.

Upon receiving this notification, clients can call AppFunctionManager.searchAppFunctions with AppFunctionSearchSpec.packageNames to retrieve the updated androidx.appfunctions.metadata.AppFunctionMetadata for affected functions.

Clients should call AppFunctionManager.getAppFunctionStates to retrieve the latest AppFunctionState for packages affected by these changes.

Note: If packages are reported to have changed but are not returned from AppFunctionManager.searchAppFunctions, it means that the packages have been uninstalled or no longer have functions.

Summary

Public constructors

MetadataChanged(changedPackageNames: Set<String>)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Set<String>

The set of package names that have changed.

Public constructors

MetadataChanged

Added in 1.0.0-alpha12
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-alpha12
val changedPackageNamesSet<String>

The set of package names that have changed.