Sdílet prostřednictvím


GeomagneticField Constructors

Definition

Overloads

GeomagneticField(IntPtr, JniHandleOwnership)

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

GeomagneticField(Single, Single, Single, Int64)

Estimate the magnetic field at a given point and time.

GeomagneticField(IntPtr, JniHandleOwnership)

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

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

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

GeomagneticField(Single, Single, Single, Int64)

Estimate the magnetic field at a given point and time.

[Android.Runtime.Register(".ctor", "(FFFJ)V", "")]
public GeomagneticField (float gdLatitudeDeg, float gdLongitudeDeg, float altitudeMeters, long timeMillis);
[<Android.Runtime.Register(".ctor", "(FFFJ)V", "")>]
new Android.Hardware.GeomagneticField : single * single * single * int64 -> Android.Hardware.GeomagneticField

Parameters

gdLatitudeDeg
Single

Latitude in WGS84 geodetic coordinates -- positive is east.

gdLongitudeDeg
Single

Longitude in WGS84 geodetic coordinates -- positive is north.

altitudeMeters
Single

Altitude in WGS84 geodetic coordinates, in meters.

timeMillis
Int64

Time at which to evaluate the declination, in milliseconds since January 1, 1970. (approximate is fine -- the declination changes very slowly).

Attributes

Remarks

Estimate the magnetic field at a given point and time.

Java documentation for android.hardware.GeomagneticField.GeomagneticField(float, float, float, long).

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