Address

data class Address(val countryCode: String, val streetAddress: String? = null, val extendedAddress: String? = null, val locality: String? = null, val region: String? = null, val postalCode: String? = null) : Parcelable

Constructors

Link copied to clipboard
constructor(countryCode: String, streetAddress: String? = null, extendedAddress: String? = null, locality: String? = null, region: String? = null, postalCode: String? = null)

Properties

Link copied to clipboard

The two-character ISO 3166-1 code, that identifies the country or region.

Link copied to clipboard

Optional. Line 2 of the Address (eg. suite, apt #, etc.)

Link copied to clipboard

Optional. City name

Link copied to clipboard

Optional. Zip code or equivalent is usually required for countries that have them. For a list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code

Link copied to clipboard

Optional. Either a two-letter state code (for the US), or an ISO-3166-2 country subdivision code of up to three letters.

Link copied to clipboard

Optional. Line 1 of the Address (eg. number, street, etc)

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)