Merge "wifi: Revise java doc to add more explanation" into rvc-dev am: 426b08e2f4
Change-Id: I403fcef26ee106317c6b8bee99b8df037a9d5777
This commit is contained in:
@@ -3769,11 +3769,19 @@ public class WifiManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a callback for Soft AP. See {@link SoftApCallback}. Caller will receive the current
|
* Registers a callback for Soft AP. See {@link SoftApCallback}. Caller will receive the
|
||||||
* soft AP state and number of connected devices immediately after a successful call to this API
|
* following callbacks on registration:
|
||||||
* via callback. Note that receiving an immediate WIFI_AP_STATE_FAILED value for soft AP state
|
* <ul>
|
||||||
* indicates that the latest attempt to start soft AP has failed. Caller can unregister a
|
* <li> {@link SoftApCallback#onStateChanged(int, int)}</li>
|
||||||
* previously registered callback using {@link #unregisterSoftApCallback}
|
* <li> {@link SoftApCallback#onConnectedClientsChanged(List<WifiClient>)}</li>
|
||||||
|
* <li> {@link SoftApCallback#onInfoChanged(SoftApInfo)}</li>
|
||||||
|
* <li> {@link SoftApCallback#onCapabilityChanged(SoftApCapability)}</li>
|
||||||
|
* </ul>
|
||||||
|
* These will be dispatched on registration to provide the caller with the current state
|
||||||
|
* (and are not an indication of any current change). Note that receiving an immediate
|
||||||
|
* WIFI_AP_STATE_FAILED value for soft AP state indicates that the latest attempt to start
|
||||||
|
* soft AP has failed. Caller can unregister a previously registered callback using
|
||||||
|
* {@link #unregisterSoftApCallback}
|
||||||
* <p>
|
* <p>
|
||||||
* Applications should have the
|
* Applications should have the
|
||||||
* {@link android.Manifest.permission#NETWORK_SETTINGS NETWORK_SETTINGS} permission. Callers
|
* {@link android.Manifest.permission#NETWORK_SETTINGS NETWORK_SETTINGS} permission. Callers
|
||||||
@@ -5075,7 +5083,7 @@ public class WifiManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns soft ap config from the backed up data.
|
* Returns soft ap config from the backed up data or null if data is invalid.
|
||||||
* @param data byte stream in the same format produced by {@link #retrieveSoftApBackupData()}
|
* @param data byte stream in the same format produced by {@link #retrieveSoftApBackupData()}
|
||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
|
|||||||
Reference in New Issue
Block a user