TetheringManager.StopTetheringCallback
public
static
interface
TetheringManager.StopTetheringCallback
android.net.TetheringManager.StopTetheringCallback |
Callback for use with TetheringManager.stopTethering(TetheringRequest, Executor, StopTetheringCallback)
to find out whether stop tethering succeeded.
Summary
Public methods | |
---|---|
default
void
|
onStopTetheringFailed(int error)
Called when starting tethering failed. |
default
void
|
onStopTetheringSucceeded()
Called when tethering has been successfully stopped. |
Public methods
onStopTetheringFailed
public void onStopTetheringFailed (int error)
Called when starting tethering failed.
Parameters | |
---|---|
error |
int : The error that caused the failure.
Value is TetheringManager.TETHER_ERROR_NO_ERROR , or TetheringManager.TETHER_ERROR_UNKNOWN_REQUEST |
onStopTetheringSucceeded
public void onStopTetheringSucceeded ()
Called when tethering has been successfully stopped.