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

# TetheringManager.StopTetheringCallback

*** ** * ** ***


`
public
static


interface
TetheringManager.StopTetheringCallback
`


`


`

|---|
| android.net.TetheringManager.StopTetheringCallback |

<br />

*** ** * ** ***

Callback for use with `https://developer.android.com/reference/android/net/TetheringManager#stopTethering(android.net.TetheringManager.TetheringRequest,%20java.util.concurrent.Executor,%20android.net.TetheringManager.StopTetheringCallback)` to find out whether stop tethering succeeded.

## Summary

| ### Public methods ||
|---|---|
| ` default void` | ` https://developer.android.com/reference/android/net/TetheringManager.StopTetheringCallback#onStopTetheringFailed(int)(int error) ` Called when starting tethering failed. |
| ` default void` | ` https://developer.android.com/reference/android/net/TetheringManager.StopTetheringCallback#onStopTetheringSucceeded()() ` Called when tethering has been successfully stopped. |

## Public methods

### onStopTetheringFailed

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

```
public void onStopTetheringFailed (int error)
```

Called when starting tethering failed.

<br />

| Parameters ||
|---|---|
| `error` | `int`: The error that caused the failure. Value is one of the following: - `https://developer.android.com/reference/android/net/TetheringManager#TETHER_ERROR_NO_ERROR` - `https://developer.android.com/reference/android/net/TetheringManager#TETHER_ERROR_UNKNOWN_REQUEST` |

### onStopTetheringSucceeded

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

```
public void onStopTetheringSucceeded ()
```

Called when tethering has been successfully stopped.

<br />