Added in API level Baklava
StopTetheringCallback
interface StopTetheringCallback
android.net.TetheringManager.StopTetheringCallback |
Callback for use with stopTethering
to find out whether stop tethering succeeded.
Summary
Public methods | |
---|---|
open Unit |
onStopTetheringFailed(error: Int) Called when starting tethering failed. |
open Unit |
Called when tethering has been successfully stopped. |
Public methods
onStopTetheringFailed
Added in API level Baklava
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
Added in API level Baklava
open fun onStopTetheringSucceeded(): Unit
Called when tethering has been successfully stopped.