Freigeben über


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)

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

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)

[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
enable
Boolean
executor
IExecutor
resultsCallback
IConsumer
Attributes

Applies to