共用方式為


WifiManager.IsTdlsOperationCurrentlyAvailable(IExecutor, IConsumer) Method

Definition

Check if a TDLS session can be established at this time via #setTdlsEnabled(InetAddress, boolean) or #setTdlsEnabledWithMacAddress(String, boolean) or #setTdlsEnabled(InetAddress, boolean, Executor, Consumer) or #setTdlsEnabledWithMacAddress(String, boolean, Executor, Consumer)

        Internally framework checks the STA connected state, device support for TDLS and
        the number of TDLS sessions available in driver/firmware.
[Android.Runtime.Register("isTdlsOperationCurrentlyAvailable", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetIsTdlsOperationCurrentlyAvailable_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)]
public virtual void IsTdlsOperationCurrentlyAvailable (Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IConsumer resultsCallback);
[<Android.Runtime.Register("isTdlsOperationCurrentlyAvailable", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetIsTdlsOperationCurrentlyAvailable_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=34)>]
abstract member IsTdlsOperationCurrentlyAvailable : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.IsTdlsOperationCurrentlyAvailable : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

executor
IExecutor

The executor on which callback will be invoked.

resultsCallback
IConsumer

An asynchronous callback that will return Boolean indicating whether a TDLS session can be established at this time. true for available, false for not available.

Attributes

Remarks

Check if a TDLS session can be established at this time via #setTdlsEnabled(InetAddress, boolean) or #setTdlsEnabledWithMacAddress(String, boolean) or #setTdlsEnabled(InetAddress, boolean, Executor, Consumer) or #setTdlsEnabledWithMacAddress(String, boolean, Executor, Consumer)

Internally framework checks the STA connected state, device support for TDLS and the number of TDLS sessions available in driver/firmware.

Java documentation for android.net.wifi.WifiManager.isTdlsOperationCurrentlyAvailable(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