DnsResolver(Context, Looper) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a DnsResolver instance.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/os/Looper;)V", "", ApiSince=37)]
public DnsResolver(Android.Content.Context context, Android.OS.Looper? looper);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/os/Looper;)V", "", ApiSince=37)>]
new Android.Net.DnsResolver : Android.Content.Context * Android.OS.Looper -> Android.Net.DnsResolver
Parameters
- context
- Context
used for internal interactions with other system services.
- looper
- Looper
Looper for monitoring incoming replies to DNS queries. If null, then
uses the value returned by Looper#getMainLooper().
<p>The specified Looper is not used for executing method callbacks, but if a
separate thread is already being used for DnsResolver interactions, it is sufficient
to use Runnable#run() as the Executor for #query and #rawQuery.
- Attributes
Remarks
Creates a DnsResolver instance.
Android reference for android.net.DnsResolver.DnsResolver.
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.