Stay organized with collections Save and categorize content based on your preferences. WifiAwareNetworkSpecifier
class WifiAwareNetworkSpecifier : NetworkSpecifier, Parcelable
Network specifier object used to request a Wi-Fi Aware network. Apps should use the WifiAwareNetworkSpecifier.Builder class to create an instance.
Summary
| Nested classes |
| A builder class for a Wi-Fi Aware network specifier to set up an Aware connection with a peer. |
| Inherited constants |
From class Parcelable Int | CONTENTS_FILE_DESCRIPTOR Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor. | Int | PARCELABLE_WRITE_RETURN_VALUE Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point. | |
| Public methods |
| Int | |
| Int | Get the specified channel in MHZ for this Wi-Fi Aware network specifier. |
| WifiAwareDataPathSecurityConfig? | Get the security config specified in this Network Specifier to encrypt Wi-Fi Aware data-path |
| Boolean | Check if the specified channel is required to honor or not. |
| Unit | |
Public methods
describeContents
fun describeContents(): Int
getChannelFrequencyMhz
fun getChannelFrequencyMhz(): Int
Get the specified channel in MHZ for this Wi-Fi Aware network specifier.
| Return |
Int | Channel frequency in Mhz. A value of 0 indicates that no channel was specified. Value is 0 or greater |
getWifiAwareDataPathSecurityConfig
fun getWifiAwareDataPathSecurityConfig(): WifiAwareDataPathSecurityConfig?
Get the security config specified in this Network Specifier to encrypt Wi-Fi Aware data-path
isChannelRequired
fun isChannelRequired(): Boolean
Check if the specified channel is required to honor or not.
| Return |
Boolean | true if forced to honer, false for recommend to use. |
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]