# OrchestratorCallback

Artifact: [androidx.test:runner](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/runner_aidl/runner/android_junit_runner/java/androidx/test/orchestrator/callback/OrchestratorCallback.java+class:androidx.test.orchestrator.callback.OrchestratorCallback)

*** ** * ** ***


```
public interface OrchestratorCallback extends IInterface
```

<br />

Known direct subclasses [OrchestratorCallback.Default](https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback.Default), [OrchestratorCallback.Stub](https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback.Stub)

|---|---|
| `https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback.Default` | Default implementation for OrchestratorCallback. |
| `https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback.Stub` | Local-side IPC implementation stub class. |

*** ** * ** ***

Defines an interface for remote Instrumentation service to speak to the AndroidTestOrchestrator

## Summary

| ### Nested types |
|---|
| `public class https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback.Default implements https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback` Default implementation for OrchestratorCallback. |
| `public abstract class https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback.Stub extends https://developer.android.com/reference/android/os/Binder.html implements https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback` Local-side IPC implementation stub class. |

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback#addTest(java.lang.String)(https://developer.android.com/reference/java/lang/String.html test)` Remote instrumentations, when given the parameter listTestsForOrchestrator, must add each test they wish executed to AndroidTestOrchestrator before terminating. |
| `abstract void` | `https://developer.android.com/reference/androidx/test/orchestrator/callback/OrchestratorCallback#sendTestNotification(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html bundle)` Remote instrumentations should pass a notification along to AndroidTestOrchestrator whenever they get a notification of test progress. |

| ### Inherited methods |
|---|
| From [android.os.IInterface](https://developer.android.com/reference/android/os/IInterface.html) |---|---| | `abstract https://developer.android.com/reference/android/os/IBinder.html` | `https://developer.android.com/reference/android/os/IInterface.html#asBinder()()` | |

## Public methods

### addTest

```
abstract void addTest(String test)
```

Remote instrumentations, when given the parameter listTestsForOrchestrator, must add each test they wish executed to AndroidTestOrchestrator before terminating.

| Throws |
|---|---|
| `https://developer.android.com/reference/android/os/RemoteException.html` |   |

### sendTestNotification

```
abstract void sendTestNotification(Bundle bundle)
```

Remote instrumentations should pass a notification along to AndroidTestOrchestrator whenever they get a notification of test progress. Use OrchestratorService constants to determine the notification type.

| Throws |
|---|---|
| `https://developer.android.com/reference/android/os/RemoteException.html` |   |