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

# IInterface

*** ** * ** ***

` public interface IInterface `   
` `

|---|
| android.os.IInterface |

<br />

*** ** * ** ***

Base class for Binder interfaces. When defining a new interface, you must derive it from IInterface.

## Summary

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/android/os/IBinder` | ` https://developer.android.com/reference/android/os/IInterface#asBinder()() ` Retrieve the Binder object associated with this interface. |

## Public methods

### asBinder

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

```
public abstract IBinder asBinder ()
```

Retrieve the Binder object associated with this interface. You must use this instead of a plain cast, so that proxy objects can return the correct result.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/IBinder` | <br /> |