# CallbackHandlerRegistry

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) 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)

*** ** * ** ***


```
class CallbackHandlerRegistry
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Slice framework has been deprecated, it will not receive any updates moving forward. If you are looking for a framework that handles communication across apps, consider using `https://developer.android.com/reference/android/app/appsearch/AppSearchManager.html`.

The holder for callbacks that are tagged with `https://developer.android.com/reference/kotlin/androidx/remotecallback/RemoteCallable`. Note: This should only be referenced by generated code, there is no reason to reference this otherwise.

## Summary

| ### Nested types |
|---|
| `interface https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry.CallbackHandler<T : https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackReceiver?>` **This interface is deprecated.** Deprecated in Java |

| ### Public constructors |
|---|
| `[CallbackHandlerRegistry](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#CallbackHandlerRegistry())()` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackReceiver?> [invokeCallback](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#invokeCallback(android.content.Context,T,android.content.Intent))( context: https://developer.android.com/reference/android/content/Context.html, receiver: T!, intent: https://developer.android.com/reference/android/content/Intent.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackReceiver?> [invokeCallback](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#invokeCallback(android.content.Context,T,android.os.Bundle))( context: https://developer.android.com/reference/android/content/Context.html, receiver: T!, bundle: https://developer.android.com/reference/android/os/Bundle.html )` **This function is deprecated.** Deprecated in Java |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackReceiver?> [registerCallbackHandler](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#registerCallbackHandler(java.lang.Class<T>,java.lang.String,androidx.remotecallback.CallbackHandlerRegistry.CallbackHandler<T>))( cls: https://developer.android.com/reference/java/lang/Class.html<T!>, method: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, handler: https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry.CallbackHandler<T!>? )` **This function is deprecated.** Deprecated in Java |
| `java-static https://developer.android.com/reference/kotlin/androidx/remotecallback/RemoteCallback?` | `[stubToRemoteCallback](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#stubToRemoteCallback(androidx.remotecallback.CallbackReceiver,java.lang.Class<? extends androidx.remotecallback.CallbackReceiver>,android.os.Bundle,java.lang.String))( receiver: https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackReceiver, cls: https://developer.android.com/reference/java/lang/Class.html<https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackReceiver!>, args: https://developer.android.com/reference/android/os/Bundle.html, method: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html? )` **This function is deprecated.** Deprecated in Java |

## Public constructors

### CallbackHandlerRegistry

Added in 1.0.0-alpha03 Deprecated in 1.0.0-alpha03

```
[CallbackHandlerRegistry](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#CallbackHandlerRegistry())()
```

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

## Public functions

### invokeCallback

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)

```
fun <T : CallbackReceiver?> [invokeCallback](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#invokeCallback(android.content.Context,T,android.content.Intent))(
    context: Context,
    receiver: T!,
    intent: Intent
): Unit
```

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

Trigger a call to a callback using arguments that were generated with `https://developer.android.com/reference/kotlin/androidx/remotecallback/RemoteCallback#getArgumentBundle()`.

### invokeCallback

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)

```
fun <T : CallbackReceiver?> [invokeCallback](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#invokeCallback(android.content.Context,T,android.os.Bundle))(
    context: Context,
    receiver: T!,
    bundle: Bundle
): Unit
```

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

Trigger a call to a callback using arguments that were generated with `https://developer.android.com/reference/kotlin/androidx/remotecallback/RemoteCallback#getArgumentBundle()`.

### registerCallbackHandler

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)

```
java-static fun <T : CallbackReceiver?> [registerCallbackHandler](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#registerCallbackHandler(java.lang.Class<T>,java.lang.String,androidx.remotecallback.CallbackHandlerRegistry.CallbackHandler<T>))(
    cls: Class<T!>,
    method: String,
    handler: CallbackHandlerRegistry.CallbackHandler<T!>?
): Unit
```

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

Registers a callback handler to be executed when a given PendingIntent is fired for a `https://developer.android.com/reference/kotlin/androidx/remotecallback/RemoteCallback`. Note: This should only be called by generated code, there is no reason to reference this otherwise.

### stubToRemoteCallback

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)

```
java-static fun [stubToRemoteCallback](https://developer.android.com/reference/kotlin/androidx/remotecallback/CallbackHandlerRegistry#stubToRemoteCallback(androidx.remotecallback.CallbackReceiver,java.lang.Class<? extends androidx.remotecallback.CallbackReceiver>,android.os.Bundle,java.lang.String))(
    receiver: CallbackReceiver,
    cls: Class<CallbackReceiver!>,
    args: Bundle,
    method: String?
): RemoteCallback?
```

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

Turns a callback receiver stub into a remote callback. Note: This should only be called by generated code, there is no reason to reference this otherwise.