Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# AppFunctionObservation

*** ** * ** ***

` public interface AppFunctionObservation `   
` `

|---|
| android.app.appfunctions.AppFunctionObservation |

<br />

*** ** * ** ***

Result of `https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#observeAppFunctions(java.util.concurrent.Executor,%20android.app.appfunctions.AppFunctionObserver)`.

The caller should retain a reference to this object and call `https://developer.android.com/reference/android/app/appfunctions/AppFunctionObservation#cancel()` when receiving updates to app functions is no longer required.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/app/appfunctions/AppFunctionObservation#cancel()() ` Stops the observation previously started using `https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#observeAppFunctions(java.util.concurrent.Executor,%20android.app.appfunctions.AppFunctionObserver)` from receiving updates. |

## Public methods

### cancel

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void cancel ()
```

Stops the observation previously started using `https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#observeAppFunctions(java.util.concurrent.Executor,%20android.app.appfunctions.AppFunctionObserver)` from receiving updates.

If the observation is already canceled, this method has no effect.

<br />