initialize

suspend fun initialize(context: Context)

Initializes the Google Maps SDK.

This function starts the initialization process on a background thread. The process is performed only once. If the initialization is already in progress or has completed, this function does nothing.

The initialization state can be observed via the state property.

Parameters

context

The context to use for initialization.