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

open fun onStopTetheringFailed(error: Int): Unit

Called when starting tethering failed.

Parameters
error Int: The error that caused the failure. Value is android.net.TetheringManager#TETHER_ERROR_NO_ERROR, or android.net.TetheringManager#TETHER_ERROR_UNKNOWN_REQUEST

onStopTetheringSucceeded

open fun onStopTetheringSucceeded(): Unit

Called when tethering has been successfully stopped.