Added in API level 36
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
Added in API level 36
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
Added in API level 36
public void onStopTetheringSucceeded ()
Called when tethering has been successfully stopped.