Added in API level 36

StopTetheringCallback


interface StopTetheringCallback
android.net.TetheringManager.StopTetheringCallback

Callback for use with stopTethering to find out whether stop tethering succeeded.

Summary

Public methods
open Unit

Called when starting tethering failed.

open Unit

Called when tethering has been successfully stopped.

Public methods

onStopTetheringFailed

Added in API level 36
open fun onStopTetheringFailed(error: Int): Unit

Called when starting tethering failed.

Parameters
error Int: The error that caused the failure.
Value is one of the following:

onStopTetheringSucceeded

Added in API level 36
open fun onStopTetheringSucceeded(): Unit

Called when tethering has been successfully stopped.