Added in API level 21
Deprecated in API level 28

WifiManager.WpsCallback


public static abstract class WifiManager.WpsCallback
extends Object

java.lang.Object
   ↳ android.net.wifi.WifiManager.WpsCallback


This class was deprecated in API level 28.
This is deprecated

Interface for callback invocation on a start WPS action

Summary

Public constructors

WpsCallback()

Public methods

abstract void onFailed(int reason)

This method is deprecated. This API is deprecated

abstract void onStarted(String pin)

This method is deprecated. This API is deprecated

abstract void onSucceeded()

This method is deprecated. This API is deprecated

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public constructors

WpsCallback

Added in API level 21
public WpsCallback ()

Public methods

onFailed

Added in API level 21
public abstract void onFailed (int reason)

This method is deprecated.
This API is deprecated

WPS operation failed

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

onStarted

Added in API level 21
public abstract void onStarted (String pin)

This method is deprecated.
This API is deprecated

WPS start succeeded

Parameters
pin String

onSucceeded

Added in API level 21
public abstract void onSucceeded ()

This method is deprecated.
This API is deprecated

WPS operation completed successfully