# Bindable

Artifact: [androidx.test.espresso:espresso-core](https://developer.android.com/jetpack/androidx/releases/test-espresso) [View Source](https://cs.android.com/search?q=file:androidx/test/espresso/remote/Bindable.java+class:androidx.test.espresso.remote.Bindable)

*** ** * ** ***


```
public interface Bindable
```

<br />

*** ** * ** ***

Interface that can be implemented by classes that provide an `https://developer.android.com/reference/android/os/IBinder.html`.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/android/os/IBinder.html` | `https://developer.android.com/reference/androidx/test/espresso/remote/Bindable#getIBinder()()` |
| `abstract https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/test/espresso/remote/Bindable#getId()()` |
| `abstract void` | `https://developer.android.com/reference/androidx/test/espresso/remote/Bindable#setIBinder(android.os.IBinder)(https://developer.android.com/reference/android/os/IBinder.html binder)` Sets the `https://developer.android.com/reference/android/os/IBinder.html` of the implementing class. |

## Public methods

### getIBinder

```
abstract IBinder getIBinder()
```

| Returns |
|---|---|
| `https://developer.android.com/reference/android/os/IBinder.html` | the `https://developer.android.com/reference/android/os/IBinder.html` of the implementing class. |

### getId

```
abstract String getId()
```

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | the id of the `https://developer.android.com/reference/androidx/test/espresso/remote/Bindable` class. |

### setIBinder

```
abstract void setIBinder(IBinder binder)
```

Sets the `https://developer.android.com/reference/android/os/IBinder.html` of the implementing class.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/os/IBinder.html binder` | the `https://developer.android.com/reference/android/os/IBinder.html` |