Partager via


WifiManager.SetTdlsEnabledWithMacAddress Method

Definition

Overloads

SetTdlsEnabledWithMacAddress(String, Boolean)

Similar to #setTdlsEnabled(InetAddress, boolean) , except this version allows you to specify remote endpoint with a MAC address.

SetTdlsEnabledWithMacAddress(String, Boolean, IExecutor, IConsumer)

Enable/Disable TDLS with a specific peer Mac Address.

SetTdlsEnabledWithMacAddress(String, Boolean)

Similar to #setTdlsEnabled(InetAddress, boolean) , except this version allows you to specify remote endpoint with a MAC address.

[Android.Runtime.Register("setTdlsEnabledWithMacAddress", "(Ljava/lang/String;Z)V", "GetSetTdlsEnabledWithMacAddress_Ljava_lang_String_ZHandler")]
public virtual void SetTdlsEnabledWithMacAddress (string? remoteMacAddress, bool enable);
[<Android.Runtime.Register("setTdlsEnabledWithMacAddress", "(Ljava/lang/String;Z)V", "GetSetTdlsEnabledWithMacAddress_Ljava_lang_String_ZHandler")>]
abstract member SetTdlsEnabledWithMacAddress : string * bool -> unit
override this.SetTdlsEnabledWithMacAddress : string * bool -> unit

Parameters

remoteMacAddress
String

MAC address of the remote endpoint such as 00:00:0c:9f:f2:ab

enable
Boolean

true = setup and false = tear down TDLS

Attributes

Remarks

Similar to #setTdlsEnabled(InetAddress, boolean) , except this version allows you to specify remote endpoint with a MAC address.

Java documentation for android.net.wifi.WifiManager.setTdlsEnabledWithMacAddress(java.lang.String, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetTdlsEnabledWithMacAddress(String, Boolean, IExecutor, IConsumer)

Enable/Disable TDLS with a specific peer Mac Address.

[Android.Runtime.Register("setTdlsEnabledWithMacAddress", "(Ljava/lang/String;ZLjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetSetTdlsEnabledWithMacAddress_Ljava_lang_String_ZLjava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)]
public virtual void SetTdlsEnabledWithMacAddress (string remoteMacAddress, bool enable, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer resultsCallback);
[<Android.Runtime.Register("setTdlsEnabledWithMacAddress", "(Ljava/lang/String;ZLjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetSetTdlsEnabledWithMacAddress_Ljava_lang_String_ZLjava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)>]
abstract member SetTdlsEnabledWithMacAddress : string * bool * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.SetTdlsEnabledWithMacAddress : string * bool * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

remoteMacAddress
String

Mac address of the endpoint to setup TDLS with

enable
Boolean

true = setup and false = tear down TDLS

executor
IExecutor

The executor on which callback will be invoked.

resultsCallback
IConsumer

An asynchronous callback that will return Boolean indicating whether TDLS was successfully enabled or disabled. true for success, false for failure.

Attributes

Remarks

Enable/Disable TDLS with a specific peer Mac Address.

Similar to #setTdlsEnabledWithMacAddress(String, boolean), except this version sends the result of the Enable/Disable request.

Java documentation for android.net.wifi.WifiManager.setTdlsEnabledWithMacAddress(java.lang.String, boolean, java.util.concurrent.Executor, java.util.function.Consumer<java.lang.Boolean>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to