# CallbackHandlerRegistry.CallbackHandler

Artifact: [androidx.remotecallback:remotecallback](https://developer.android.com/jetpack/androidx/releases/remotecallback) [View Source](https://cs.android.com/search?q=file:androidx/remotecallback/CallbackHandlerRegistry.java+class:androidx.remotecallback.CallbackHandlerRegistry.CallbackHandler) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/remotecallback#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/remotecallback#1.0.0-alpha03)

*** ** * ** ***


```
public interface CallbackHandlerRegistry.CallbackHandler<T extends CallbackReceiver>
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> Deprecated in Java

The interface used to trigger a callback when the pending intent is fired. Note: This should only be referenced by generated code, there is no reason to reference this otherwise.

| Parameters |
|---|---|
| `<T extends https://developer.android.com/reference/androidx/remotecallback/CallbackReceiver>` | The receiver type for this callback handler. |

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `[executeCallback](https://developer.android.com/reference/androidx/remotecallback/CallbackHandlerRegistry.CallbackHandler#executeCallback(android.content.Context,T,android.os.Bundle))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context, T receiver, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html arguments )` **This method is deprecated.** Deprecated in Java |

## Public methods

### executeCallback

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/remotecallback#1.0.0-alpha03) Deprecated in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/remotecallback#1.0.0-alpha03)

```
abstract void [executeCallback](https://developer.android.com/reference/androidx/remotecallback/CallbackHandlerRegistry.CallbackHandler#executeCallback(android.content.Context,T,android.os.Bundle))(
    @NonNull Context context,
    T receiver,
    @NonNull Bundle arguments
)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Executes a callback given a Bundle of arguments. Note: This should only be called by generated code, there is no reason to reference this otherwise.