NetworkInfo Constructors

Definition

Overloads

NetworkInfo(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

NetworkInfo(Int32, Int32, String, String)

NetworkInfo(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected NetworkInfo (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Net.NetworkInfo : nativeint * Android.Runtime.JniHandleOwnership -> Android.Net.NetworkInfo

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

NetworkInfo(Int32, Int32, String, String)

[Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/lang/String;)V", "", ApiSince=30)]
public NetworkInfo (int type, int subtype, string? typeName, string? subtypeName);
[<Android.Runtime.Register(".ctor", "(IILjava/lang/String;Ljava/lang/String;)V", "", ApiSince=30)>]
new Android.Net.NetworkInfo : int * int * string * string -> Android.Net.NetworkInfo

Parameters

type
Int32
subtype
Int32
typeName
String
subtypeName
String
Attributes

Applies to