Freigeben über


Address Class

Definition

A class representing an Address, that is, a set of Strings describing a location.

[Android.Runtime.Register("android/location/Address", DoNotGenerateAcw=true)]
public class Address : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/location/Address", DoNotGenerateAcw=true)>]
type Address = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
Address
Attributes
Implements

Remarks

A class representing an Address, that is, a set of Strings describing a location.

The address format is a simplified version of xAL (eXtensible Address Language) http://www.oasis-open.org/committees/ciq/ciq.html#6

Java documentation for android.location.Address.

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.

Constructors

Address(IntPtr, JniHandleOwnership)

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

Address(Locale)

Constructs a new Address object set to the given Locale and with all other fields initialized to null or false.

Properties

AdminArea

Returns the administrative area name of the address, for example, "CA", or null if it is unknown -or- Sets the administrative area name of the address to the given String, which may be null

Class

Returns the runtime class of this Object.

(Inherited from Object)
CountryCode

Returns the country code of the address, for example "US", or null if it is unknown. -or- Sets the country code of the address to the given String, which may be null.

CountryName

Returns the localized country name of the address, for example "Iceland", or null if it is unknown. -or- Sets the country name of the address to the given String, which may be null.

Creator
Extras

Returns additional provider-specific information about the address as a Bundle. -or- Sets the extra information associated with this fix to the given Bundle.

FeatureName

Returns the feature name of the address, for example, "Golden Gate Bridge", or null if it is unknown -or- Sets the feature name of the address to the given String, which may be null

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasLatitude

Returns true if a latitude has been assigned to this Address, false otherwise.

HasLongitude

Returns true if a longitude has been assigned to this Address, false otherwise.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Latitude

Returns the latitude of the address if known. -or- Sets the latitude associated with this address.

Locale

Returns the Locale associated with this address.

Locality

Returns the locality of the address, for example "Mountain View", or null if it is unknown. -or- Sets the locality of the address to the given String, which may be null.

Longitude

Returns the longitude of the address if known. -or- Sets the longitude associated with this address.

MaxAddressLineIndex

Returns the largest index currently in use to specify an address line.

PeerReference (Inherited from Object)
Phone

Returns the phone number of the address if known, or null if it is unknown. -or- Sets the phone number associated with this address.

PostalCode

Returns the postal code of the address, for example "94110", or null if it is unknown. -or- Sets the postal code of the address to the given String, which may be null.

Premises

Returns the premises of the address, or null if it is unknown. -or- Sets the premises of the address to the given String, which may be null.

SubAdminArea

Returns the sub-administrative area name of the address, for example, "Santa Clara County", or null if it is unknown -or- Sets the sub-administrative area name of the address to the given String, which may be null

SubLocality

Returns the sub-locality of the address, or null if it is unknown. -or- Sets the sub-locality of the address to the given String, which may be null.

SubThoroughfare

Returns the sub-thoroughfare name of the address, which may be null. -or- Sets the sub-thoroughfare name of the address, which may be null.

Thoroughfare

Returns the thoroughfare name of the address, for example, "1600 Ampitheater Parkway", which may be null -or- Sets the thoroughfare name of the address, which may be null.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Url

Returns the public URL for the address if known, or null if it is unknown. -or- Sets the public URL associated with this address.

Methods

ClearLatitude()

Removes any latitude associated with this address.

ClearLongitude()

Removes any longitude associated with this address.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetAddressLine(Int32)

Returns a line of the address numbered by the given index (starting at 0), or null if no such line is present.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetAddressLine(Int32, String)

Sets the line of the address numbered by index (starting at 0) to the given String, which may be null.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to