Class ConnectionMethodWifiAware


  • public class ConnectionMethodWifiAware
    extends ConnectionMethod
    Connection method for Wifi Aware.
    • Constructor Detail

      • ConnectionMethodWifiAware

        public ConnectionMethodWifiAware​(@Nullable
                                         java.lang.String passphraseInfoPassphrase,
                                         java.util.OptionalLong channelInfoChannelNumber,
                                         java.util.OptionalLong channelInfoOperatingClass,
                                         @Nullable
                                         byte[] bandInfoSupportedBands)
        Creates a new connection method for Wifi Aware.
        Parameters:
        passphraseInfoPassphrase - the passphrase or null.
        channelInfoChannelNumber - the channel number or unset.
        channelInfoOperatingClass - the operating class or unset.
        bandInfoSupportedBands - the supported bands or null.
    • Method Detail

      • getPassphraseInfoPassphrase

        @Nullable
        public java.lang.String getPassphraseInfoPassphrase()
        Returns:
        the value or null.
      • getChannelInfoChannelNumber

        public java.util.OptionalLong getChannelInfoChannelNumber()
        Gets the channel number, if set.
        Returns:
        the value, if any.
      • getChannelInfoOperatingClass

        public java.util.OptionalLong getChannelInfoOperatingClass()
        Gets the operating class, if set.
        Returns:
        the value, if any.
      • getBandInfoSupportedBands

        @Nullable
        public byte[] getBandInfoSupportedBands()
        Returns:
        the value or null.
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object