Udostępnij za pośrednictwem


Location Constructors

Definition

Overloads

Location(Location)

Constructs a new location copied from the given location.

Location(String)

Constructs a new location with a named provider.

Location(IntPtr, JniHandleOwnership)

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

Location(Location)

Constructs a new location copied from the given location.

[Android.Runtime.Register(".ctor", "(Landroid/location/Location;)V", "")]
public Location (Android.Locations.Location location);
[<Android.Runtime.Register(".ctor", "(Landroid/location/Location;)V", "")>]
new Android.Locations.Location : Android.Locations.Location -> Android.Locations.Location

Parameters

location
Location
Attributes

Remarks

Constructs a new location copied from the given location.

Java documentation for android.location.Location.Location(android.location.Location).

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

Location(String)

Constructs a new location with a named provider.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public Location (string? provider);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Locations.Location : string -> Android.Locations.Location

Parameters

provider
String

the location provider name associated with this location

Attributes

Remarks

Constructs a new location with a named provider. By default all values are zero, and no optional values are present.

Java documentation for android.location.Location.Location(java.lang.String).

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

Location(IntPtr, JniHandleOwnership)

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

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

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