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, the value of MainLooper is used.
- Attributes
Remarks
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 an Executor that runs each task directly on the calling thread for Query and RawQuery.
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.