Freigeben über


WifiManager.SetTdlsEnabled Method

Definition

Overloads

SetTdlsEnabled(InetAddress, Boolean)

Enable/Disable TDLS on a specific local route.

SetTdlsEnabled(InetAddress, Boolean, IExecutor, IConsumer)

Enable/Disable TDLS on a specific local route.

SetTdlsEnabled(InetAddress, Boolean)

Enable/Disable TDLS on a specific local route.

[Android.Runtime.Register("setTdlsEnabled", "(Ljava/net/InetAddress;Z)V", "GetSetTdlsEnabled_Ljava_net_InetAddress_ZHandler")]
public virtual void SetTdlsEnabled (Java.Net.InetAddress? remoteIPAddress, bool enable);
[<Android.Runtime.Register("setTdlsEnabled", "(Ljava/net/InetAddress;Z)V", "GetSetTdlsEnabled_Ljava_net_InetAddress_ZHandler")>]
abstract member SetTdlsEnabled : Java.Net.InetAddress * bool -> unit
override this.SetTdlsEnabled : Java.Net.InetAddress * bool -> unit

Parameters

remoteIPAddress
InetAddress

IP address of the endpoint to setup TDLS with

enable
Boolean

true = setup and false = tear down TDLS

Attributes

Remarks

Enable/Disable TDLS on a specific local route.

TDLS enables two wireless endpoints to talk to each other directly without going through the access point that is managing the local network. It saves bandwidth and improves quality of the link.

This API enables/disables the option of using TDLS. If enabled, the underlying hardware is free to use TDLS or a hop through the access point. If disabled, existing TDLS session is torn down and hardware is restricted to use access point for transferring wireless packets. Default value for all routes is 'disabled', meaning restricted to use access point for transferring packets.

Java documentation for android.net.wifi.WifiManager.setTdlsEnabled(java.net.InetAddress, 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

SetTdlsEnabled(InetAddress, Boolean, IExecutor, IConsumer)

Enable/Disable TDLS on a specific local route.

[Android.Runtime.Register("setTdlsEnabled", "(Ljava/net/InetAddress;ZLjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetSetTdlsEnabled_Ljava_net_InetAddress_ZLjava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)]
public virtual void SetTdlsEnabled (Java.Net.InetAddress remoteIPAddress, bool enable, Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer resultsCallback);
[<Android.Runtime.Register("setTdlsEnabled", "(Ljava/net/InetAddress;ZLjava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetSetTdlsEnabled_Ljava_net_InetAddress_ZLjava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)>]
abstract member SetTdlsEnabled : Java.Net.InetAddress * bool * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.SetTdlsEnabled : Java.Net.InetAddress * bool * Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

remoteIPAddress
InetAddress

IP 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 on a specific local route.

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

Java documentation for android.net.wifi.WifiManager.setTdlsEnabled(java.net.InetAddress, 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