TetheringManager.StartTetheringCallback
public
static
interface
TetheringManager.StartTetheringCallback
android.net.TetheringManager.StartTetheringCallback |
Callback for use with TetheringManager.startTethering(TetheringRequest, Executor, StartTetheringCallback)
to find out whether tethering succeeded.
Summary
Public methods | |
---|---|
default
void
|
onTetheringFailed(int error)
Called when starting tethering failed. |
default
void
|
onTetheringStarted()
Called when tethering has been successfully started. |
Public methods
onTetheringFailed
public void onTetheringFailed (int error)
Called when starting tethering failed.
Parameters | |
---|---|
error |
int : The error that caused the failure.
Value is TetheringManager.TETHER_ERROR_SERVICE_UNAVAIL , TetheringManager.TETHER_ERROR_UNSUPPORTED , TetheringManager.TETHER_ERROR_INTERNAL_ERROR , TetheringManager.TETHER_ERROR_NO_CHANGE_TETHERING_PERMISSION , TetheringManager.TETHER_ERROR_UNKNOWN_TYPE , or TetheringManager.TETHER_ERROR_DUPLICATE_REQUEST |
onTetheringStarted
public void onTetheringStarted ()
Called when tethering has been successfully started.