[AWARE] recommend use Builder create instance in doc

Changes doc for using Builder to create WifiAwareNetworkSpecifier
instead of deprecated Api.

Test: It's a doc change.
Bug: 136034317
Change-Id: I6f41ceae6d696fc5df336ad831c2c89ab3746c50
This commit is contained in:
Nate Jiang
2019-06-25 17:49:41 -07:00
parent 32a89c15a7
commit 16601cdd99

View File

@@ -31,11 +31,8 @@ import java.util.Arrays;
import java.util.Objects;
/**
* Network specifier object used to request a Wi-Fi Aware network. Apps do not create these objects
* directly but obtain them using
* {@link WifiAwareSession#createNetworkSpecifierOpen(int, byte[])} or
* {@link DiscoverySession#createNetworkSpecifierOpen(PeerHandle)} or their secure (Passphrase)
* versions.
* Network specifier object used to request a Wi-Fi Aware network. Apps should use the
* {@link WifiAwareNetworkSpecifier.Builder} class to create an instance.
*/
public final class WifiAwareNetworkSpecifier extends NetworkSpecifier implements Parcelable {
/**