Partager via


WifiManager.QuerySendDhcpHostnameRestriction(IExecutor, IIntConsumer) Method

Definition

Query the global restriction on which networks to send the device hostname to during DHCP.

[Android.Runtime.Register("querySendDhcpHostnameRestriction", "(Ljava/util/concurrent/Executor;Ljava/util/function/IntConsumer;)V", "GetQuerySendDhcpHostnameRestriction_Ljava_util_concurrent_Executor_Ljava_util_function_IntConsumer_Handler", ApiSince=35)]
public virtual void QuerySendDhcpHostnameRestriction (Java.Util.Concurrent.IExecutor executor, Java.Util.Functions.IIntConsumer resultsCallback);
[<Android.Runtime.Register("querySendDhcpHostnameRestriction", "(Ljava/util/concurrent/Executor;Ljava/util/function/IntConsumer;)V", "GetQuerySendDhcpHostnameRestriction_Ljava_util_concurrent_Executor_Ljava_util_function_IntConsumer_Handler", ApiSince=35)>]
abstract member QuerySendDhcpHostnameRestriction : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IIntConsumer -> unit
override this.QuerySendDhcpHostnameRestriction : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IIntConsumer -> unit

Parameters

executor
IExecutor

The executor on which callback will be invoked.

resultsCallback
IIntConsumer

An asynchronous callback that will return a bitmask of SendDhcpHostnameRestriction.

Attributes

Remarks

Query the global restriction on which networks to send the device hostname to during DHCP.

Java documentation for android.net.wifi.WifiManager.querySendDhcpHostnameRestriction(java.util.concurrent.Executor, java.util.function.IntConsumer).

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