Added in API level 21
Deprecated in API level 28

WpsCallback

abstract class WpsCallback
kotlin.Any
   ↳ android.net.wifi.WifiManager.WpsCallback

Interface for callback invocation on a start WPS action

Summary

Public constructors

Public methods
abstract Unit
onFailed(reason: Int)

WPS operation failed

abstract Unit

WPS start succeeded

abstract Unit

WPS operation completed successfully

Public constructors

WpsCallback

Added in API level 21
WpsCallback()

Public methods

onFailed

Added in API level 21
abstract fun onFailed(reason: Int): Unit

Deprecated: This API is deprecated

WPS operation failed

Parameters
reason Int: The reason for failure could be one of WPS_TKIP_ONLY_PROHIBITED, WPS_OVERLAP_ERROR, WPS_WEP_PROHIBITED, WPS_TIMED_OUT or WPS_AUTH_FAILURE and some generic errors.

onStarted

Added in API level 21
abstract fun onStarted(pin: String!): Unit

Deprecated: This API is deprecated

WPS start succeeded

onSucceeded

Added in API level 21
abstract fun onSucceeded(): Unit

Deprecated: This API is deprecated

WPS operation completed successfully