addressComponent

fun addressComponent(name: String, types: List<String>, actions: AddressComponent.Builder.() -> Unit? = null): AddressComponent

Deprecated

Use the version in the Places SDK instead.

Replace with

import com.google.android.libraries.places.api.model.kotlin.addressComponent
addressComponent(name, types, actions)

Builds a new AddressComponent.

Return

the constructed AddressComponent

Parameters

name

the name of this address component

types

the types of this address component

actions

the actions to apply to the AddressComponent.Builder

See also

Throws