diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/AndroidAutoBaseScreen.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/AndroidAutoBaseScreen.kt index 3892c324..dad1ac21 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/AndroidAutoBaseScreen.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/AndroidAutoBaseScreen.kt @@ -35,18 +35,60 @@ import androidx.lifecycle.LifecycleOwner import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.GoogleMapOptions -import com.google.android.libraries.navigation.NavigationViewForAuto +import com.google.android.libraries.navigation.NavigationView +import com.google.android.libraries.navigation.PromptVisibilityChangedListener open class AndroidAutoBaseScreen(carContext: CarContext) : Screen(carContext), SurfaceCallback, NavigationReadyListener { + + companion object { + /** + * Map options to use for Android Auto views. Can be set before the Android Auto screen is + * created to customize map appearance. + */ + var mapOptions: AutoMapViewOptions? = null + } + + /** + * Provides the map options to use when creating the Android Auto map view. + * + * Override this method in your AndroidAutoBaseScreen subclass to provide custom map options from + * the native layer. This is useful when you want to set map configuration (like mapId) directly + * in native code instead of from Flutter, especially when the Android Auto screen may already be + * open. + * + * The default implementation returns the value from the companion object, which can be set from + * Flutter via GoogleMapsAutoViewController.setAutoMapOptions(). + * + * @return AutoMapViewOptions containing map configuration, or null to use defaults + * + * Example: + * ```kotlin + * override fun getAutoMapOptions(): AutoMapViewOptions? { + * return AutoMapViewOptions( + * mapId = "your-map-id", + * mapType = GoogleMap.MAP_TYPE_SATELLITE, + * mapColorScheme = UIUserInterfaceStyle.DARK, + * forceNightMode = NavigationView.FORCE_NIGHT_MODE_AUTO + * ) + * } + * ``` + */ + public open fun getAutoMapOptions(): AutoMapViewOptions? { + return mapOptions + } + private val VIRTUAL_DISPLAY_NAME = "AndroidAutoNavScreen" private var mVirtualDisplay: VirtualDisplay? = null private var mPresentation: Presentation? = null - private var mNavigationView: NavigationViewForAuto? = null + private var mNavigationView: NavigationView? = null private var mAutoMapView: GoogleMapsAutoMapView? = null private var mViewRegistry: GoogleMapsViewRegistry? = null + private var mPromptVisibilityListener: PromptVisibilityChangedListener? = null protected var mIsNavigationReady: Boolean = false var mGoogleMap: GoogleMap? = null + private var mIsPromptVisible: Boolean = false + private var mIsSurfaceDestroyed: Boolean = false init { initializeSurfaceCallback() @@ -81,6 +123,7 @@ open class AndroidAutoBaseScreen(carContext: CarContext) : override fun onSurfaceAvailable(surfaceContainer: SurfaceContainer) { super.onSurfaceAvailable(surfaceContainer) + mIsSurfaceDestroyed = false lifecycle.addObserver(mLifeCycleObserver) if (!isSurfaceReady(surfaceContainer)) { return @@ -101,29 +144,74 @@ open class AndroidAutoBaseScreen(carContext: CarContext) : mPresentation = Presentation(carContext, virtualDisplay.display) val presentation = mPresentation ?: return - mNavigationView = NavigationViewForAuto(carContext) + // Get map options from overridable method (can be customized in subclasses) + val autoMapOptions = getAutoMapOptions() + val googleMapOptions = + GoogleMapOptions().apply { + compassEnabled(false) // Always disable compass for Android Auto + + // Apply custom map ID if provided + autoMapOptions?.mapId?.let { mapId -> mapId(mapId) } + + // Apply map type if provided + autoMapOptions?.mapType?.let { type -> mapType(type) } + + // Apply map color scheme if provided + autoMapOptions?.mapColorScheme?.let { colorScheme -> mapColorScheme(colorScheme) } + } + + // Create NavigationView with the configured options + mNavigationView = NavigationView(carContext, googleMapOptions) val navigationView = mNavigationView ?: return - navigationView.onCreate(null) - navigationView.onStart() - navigationView.onResume() + + // Apply force night mode if provided (separate from color scheme) + autoMapOptions?.forceNightMode?.let { forceNightMode -> + navigationView.setForceNightMode(forceNightMode) + } + + // Configure NavigationView for Android Auto + navigationView.apply { + onCreate(null) + onStart() + onResume() + setHeaderEnabled(false) + setRecenterButtonEnabled(false) + setEtaCardEnabled(false) + setSpeedometerEnabled(false) + setTripProgressBarEnabled(false) + setReportIncidentButtonEnabled(false) + } presentation.setContentView(navigationView) presentation.show() navigationView.getMapAsync { googleMap: GoogleMap -> + // Guard against race condition where surface is destroyed before getMapAsync completes + if (mIsSurfaceDestroyed) return@getMapAsync + val viewRegistry = GoogleMapsNavigationPlugin.getInstance()?.viewRegistry val imageRegistry = GoogleMapsNavigationPlugin.getInstance()?.imageRegistry if (viewRegistry != null && imageRegistry != null) { mGoogleMap = googleMap mViewRegistry = viewRegistry + mAutoMapView = GoogleMapsAutoMapView( - MapOptions(GoogleMapOptions(), null), + MapOptions(googleMapOptions, null), viewRegistry, imageRegistry, navigationView, + navigationView, googleMap, ) + + // Set up prompt visibility listener with direct access to NavigationView + mPromptVisibilityListener = PromptVisibilityChangedListener { promptVisible -> + mIsPromptVisible = promptVisible + onPromptVisibilityChanged(promptVisible) + } + navigationView.addPromptVisibilityChangedListener(mPromptVisibilityListener) + sendAutoScreenAvailabilityChangedEvent(true) invalidate() } @@ -132,11 +220,22 @@ open class AndroidAutoBaseScreen(carContext: CarContext) : override fun onSurfaceDestroyed(surfaceContainer: SurfaceContainer) { super.onSurfaceDestroyed(surfaceContainer) + mIsSurfaceDestroyed = true sendAutoScreenAvailabilityChangedEvent(false) + + // Clean up prompt visibility listener + if (mPromptVisibilityListener != null && mNavigationView != null) { + mNavigationView?.removePromptVisibilityChangedListener(mPromptVisibilityListener) + mPromptVisibilityListener = null + } + mIsPromptVisible = false + + mAutoMapView = null mViewRegistry?.unregisterAndroidAutoView() mNavigationView?.onPause() mNavigationView?.onStop() mNavigationView?.onDestroy() + mNavigationView = null mGoogleMap = null mPresentation?.dismiss() @@ -166,6 +265,14 @@ open class AndroidAutoBaseScreen(carContext: CarContext) : ) {} } + // Called when Flutter sends a custom event to native via sendCustomNavigationAutoEvent + // Override this method in your AndroidAutoBaseScreen subclass to handle custom events from + // Flutter + open fun onCustomNavigationAutoEventFromFlutter(event: String, data: Any) { + // Default implementation does nothing + // Subclasses can override to handle custom events + } + private fun sendAutoScreenAvailabilityChangedEvent(isAvailable: Boolean) { GoogleMapsNavigationPlugin.getInstance()?.autoViewEventApi?.onAutoScreenAvailabilityChanged( isAvailable @@ -175,4 +282,57 @@ open class AndroidAutoBaseScreen(carContext: CarContext) : override fun onNavigationReady(ready: Boolean) { mIsNavigationReady = ready } + + /** + * Checks if a traffic prompt is currently visible on the Android Auto screen. + * + * This can be useful to dynamically adjust your UI based on prompt visibility, such as when + * building templates or deciding whether to show custom elements. + * + * @return true if a prompt is currently visible, false otherwise + * + * Example: + * ```kotlin + * override fun onGetTemplate(): Template { + * val builder = NavigationTemplate.Builder() + * + * // Only show custom actions if prompt is not visible + * if (!isPromptVisible()) { + * builder.setActionStrip(myCustomActionStrip) + * } + * + * return builder.build() + * } + * ``` + */ + fun isPromptVisible(): Boolean { + return mIsPromptVisible + } + + /** + * Called when traffic prompt visibility changes on the Android Auto screen. + * + * Override this method to add custom behavior when prompts appear or disappear, such as + * hiding/showing your custom UI elements to avoid overlapping with system prompts. + * + * @param promptVisible true if the prompt is now visible, false if it's hidden + * + * Example: + * ```kotlin + * override fun onPromptVisibilityChanged(promptVisible: Boolean) { + * super.onPromptVisibilityChanged(promptVisible) + * if (promptVisible) { + * // Hide your custom buttons or UI elements + * } else { + * // Show your custom buttons or UI elements + * } + * } + * ``` + */ + open fun onPromptVisibilityChanged(promptVisible: Boolean) { + // Send event to Flutter by default + GoogleMapsNavigationPlugin.getInstance()?.autoViewEventApi?.onPromptVisibilityChanged( + promptVisible + ) {} + } } diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/AutoMapViewOptions.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/AutoMapViewOptions.kt new file mode 100644 index 00000000..3909df5e --- /dev/null +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/AutoMapViewOptions.kt @@ -0,0 +1,38 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.maps.flutter.navigation + +/** + * Options for configuring Android Auto map views. Contains only settings relevant for Android Auto + * views. + */ +public data class AutoMapViewOptions( + /** The initial camera position for the map view. */ + val cameraPosition: CameraPositionDto? = null, + + /** Cloud-based map ID for custom styling. */ + val mapId: String? = null, + + /** The type of map to display. */ + val mapType: Int? = null, + + /** The color scheme for the map. */ + val mapColorScheme: Int? = null, + + /** Forces night mode regardless of system settings. */ + val forceNightMode: Int? = null, +) diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoMapView.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoMapView.kt index c50429db..bb3e48e9 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoMapView.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoMapView.kt @@ -17,19 +17,28 @@ package com.google.maps.flutter.navigation import android.view.View +import android.view.ViewGroup import com.google.android.gms.maps.GoogleMap -import com.google.android.libraries.navigation.NavigationViewForAuto +import com.google.android.libraries.navigation.NavigationView class GoogleMapsAutoMapView internal constructor( mapOptions: MapOptions, viewRegistry: GoogleMapsViewRegistry, imageRegistry: ImageRegistry, - private val mapView: NavigationViewForAuto, + private val navigationView: NavigationView, + private val viewGroup: ViewGroup, map: GoogleMap, ) : GoogleMapsBaseMapView(null, mapOptions, null, imageRegistry) { + private var _isTrafficPromptsEnabled: Boolean = true + private var _isTrafficIncidentCardsEnabled: Boolean = true + private var _isNavigationTripProgressBarEnabled: Boolean = false + private var _isSpeedLimitIconEnabled: Boolean = false + private var _isSpeedometerEnabled: Boolean = false + private var _forceNightMode: Int = 0 + override fun getView(): View { - return mapView + return viewGroup } init { @@ -40,6 +49,64 @@ internal constructor( mapReady() } + override fun setTrafficPromptsEnabled(enabled: Boolean) { + navigationView.setTrafficPromptsEnabled(enabled) + _isTrafficPromptsEnabled = enabled + } + + override fun isTrafficPromptsEnabled(): Boolean { + return _isTrafficPromptsEnabled + } + + override fun setTrafficIncidentCardsEnabled(enabled: Boolean) { + navigationView.setTrafficIncidentCardsEnabled(enabled) + _isTrafficIncidentCardsEnabled = enabled + } + + override fun isTrafficIncidentCardsEnabled(): Boolean { + return _isTrafficIncidentCardsEnabled + } + + override fun getForceNightMode(): Int { + return _forceNightMode + } + + override fun setForceNightMode(forceNightMode: Int) { + navigationView.setForceNightMode(forceNightMode) + _forceNightMode = forceNightMode + } + + override fun isNavigationTripProgressBarEnabled(): Boolean { + return _isNavigationTripProgressBarEnabled + } + + override fun setNavigationTripProgressBarEnabled(enabled: Boolean) { + navigationView.setTripProgressBarEnabled(enabled) + _isNavigationTripProgressBarEnabled = enabled + } + + override fun isSpeedLimitIconEnabled(): Boolean { + return _isSpeedLimitIconEnabled + } + + override fun setSpeedLimitIconEnabled(enabled: Boolean) { + navigationView.setSpeedLimitIconEnabled(enabled) + _isSpeedLimitIconEnabled = enabled + } + + override fun isSpeedometerEnabled(): Boolean { + return _isSpeedometerEnabled + } + + override fun setSpeedometerEnabled(enabled: Boolean) { + navigationView.setSpeedometerEnabled(enabled) + _isSpeedometerEnabled = enabled + } + + override fun showRouteOverview() { + navigationView.showRouteOverview() + } + // Handled by AndroidAutoBaseScreen. override fun onStart(): Boolean { return super.onStart() diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoViewMessageHandler.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoViewMessageHandler.kt index b0ec13ab..65a8412c 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoViewMessageHandler.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsAutoViewMessageHandler.kt @@ -31,6 +31,22 @@ class GoogleMapsAutoViewMessageHandler(private val viewRegistry: GoogleMapsViewR } } + override fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) { + // Store the map options in AndroidAutoBaseScreen companion object + // Convert DTO to a simple data holder + val options = + AutoMapViewOptions( + cameraPosition = mapOptions.cameraPosition, + mapId = mapOptions.mapId, + mapType = mapOptions.mapType?.let { Convert.convertMapTypeFromDto(it) }, + mapColorScheme = + mapOptions.mapColorScheme?.let { Convert.convertMapColorSchemeFromDto(it) }, + forceNightMode = + mapOptions.forceNightMode?.let { Convert.convertNavigationForceNightModeFromDto(it) }, + ) + AndroidAutoBaseScreen.mapOptions = options + } + override fun isMyLocationEnabled(): Boolean { return getView().isMyLocationEnabled() } @@ -99,6 +115,42 @@ class GoogleMapsAutoViewMessageHandler(private val viewRegistry: GoogleMapsViewR getView().setTrafficEnabled(enabled) } + override fun setTrafficPromptsEnabled(enabled: Boolean) { + getView().setTrafficPromptsEnabled(enabled) + } + + override fun setTrafficIncidentCardsEnabled(enabled: Boolean) { + getView().setTrafficIncidentCardsEnabled(enabled) + } + + override fun isNavigationTripProgressBarEnabled(): Boolean { + return getView().isNavigationTripProgressBarEnabled() + } + + override fun setNavigationTripProgressBarEnabled(enabled: Boolean) { + getView().setNavigationTripProgressBarEnabled(enabled) + } + + override fun isSpeedLimitIconEnabled(): Boolean { + return getView().isSpeedLimitIconEnabled() + } + + override fun setSpeedLimitIconEnabled(enabled: Boolean) { + getView().setSpeedLimitIconEnabled(enabled) + } + + override fun isSpeedometerEnabled(): Boolean { + return getView().isSpeedometerEnabled() + } + + override fun setSpeedometerEnabled(enabled: Boolean) { + getView().setSpeedometerEnabled(enabled) + } + + override fun showRouteOverview() { + getView().showRouteOverview() + } + override fun isMyLocationButtonEnabled(): Boolean { return getView().isMyLocationButtonEnabled() } @@ -143,6 +195,14 @@ class GoogleMapsAutoViewMessageHandler(private val viewRegistry: GoogleMapsViewR return getView().isTrafficEnabled() } + override fun isTrafficPromptsEnabled(): Boolean { + return getView().isTrafficPromptsEnabled() + } + + override fun isTrafficIncidentCardsEnabled(): Boolean { + return getView().isTrafficIncidentCardsEnabled() + } + override fun getMyLocation(): LatLngDto? { val location = getView().getMyLocation() ?: return null return LatLngDto(location.latitude, location.longitude) @@ -393,4 +453,34 @@ class GoogleMapsAutoViewMessageHandler(private val viewRegistry: GoogleMapsViewR override fun getPadding(): MapPaddingDto { return getView().getPadding() } + + override fun getMapColorScheme(): MapColorSchemeDto { + val colorScheme = getView().getMapColorScheme() + return Convert.convertMapColorSchemeToDto(colorScheme) + } + + override fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) { + val colorScheme = Convert.convertMapColorSchemeFromDto(mapColorScheme) + getView().setMapColorScheme(colorScheme) + } + + override fun getForceNightMode(): NavigationForceNightModeDto { + val forceNightMode = getView().getForceNightMode() + return Convert.convertNavigationForceNightModeToDto(forceNightMode) + } + + override fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) { + val nightMode = Convert.convertNavigationForceNightModeFromDto(forceNightMode) + getView().setForceNightMode(nightMode) + } + + override fun sendCustomNavigationAutoEvent(event: String, data: Any) { + // This method receives custom events from Flutter. + // The implementation is left empty by design, as developers should handle + // custom events in their AndroidAutoBaseScreen subclass by overriding + // onCustomNavigationAutoEventFromFlutter method. + // + // Note: If you need to handle events here, you would need to maintain a reference + // to your AndroidAutoBaseScreen instance and call a method on it. + } } diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseMapView.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseMapView.kt index a8ff554c..93a150a7 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseMapView.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsBaseMapView.kt @@ -541,6 +541,152 @@ abstract class GoogleMapsBaseMapView( return getMap().isTrafficEnabled } + open fun setTrafficPromptsEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setTrafficPromptsEnabled is not supported on this view type", + ) + } + + open fun isTrafficPromptsEnabled(): Boolean { + throw FlutterError("notSupported", "isTrafficPromptsEnabled is not supported on this view type") + } + + // Navigation UI methods - only supported on NavigationView + open fun isNavigationTripProgressBarEnabled(): Boolean { + throw FlutterError( + "notSupported", + "isNavigationTripProgressBarEnabled is not supported on this view type", + ) + } + + open fun setNavigationTripProgressBarEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setNavigationTripProgressBarEnabled is not supported on this view type", + ) + } + + open fun isNavigationHeaderEnabled(): Boolean { + throw FlutterError( + "notSupported", + "isNavigationHeaderEnabled is not supported on this view type", + ) + } + + open fun setNavigationHeaderEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setNavigationHeaderEnabled is not supported on this view type", + ) + } + + open fun isNavigationFooterEnabled(): Boolean { + throw FlutterError( + "notSupported", + "isNavigationFooterEnabled is not supported on this view type", + ) + } + + open fun setNavigationFooterEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setNavigationFooterEnabled is not supported on this view type", + ) + } + + open fun isRecenterButtonEnabled(): Boolean { + throw FlutterError("notSupported", "isRecenterButtonEnabled is not supported on this view type") + } + + open fun setRecenterButtonEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setRecenterButtonEnabled is not supported on this view type", + ) + } + + open fun isSpeedLimitIconEnabled(): Boolean { + throw FlutterError("notSupported", "isSpeedLimitIconEnabled is not supported on this view type") + } + + open fun setSpeedLimitIconEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setSpeedLimitIconEnabled is not supported on this view type", + ) + } + + open fun isSpeedometerEnabled(): Boolean { + throw FlutterError("notSupported", "isSpeedometerEnabled is not supported on this view type") + } + + open fun setSpeedometerEnabled(enabled: Boolean) { + throw FlutterError("notSupported", "setSpeedometerEnabled is not supported on this view type") + } + + open fun isTrafficIncidentCardsEnabled(): Boolean { + throw FlutterError( + "notSupported", + "isTrafficIncidentCardsEnabled is not supported on this view type", + ) + } + + open fun setTrafficIncidentCardsEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setTrafficIncidentCardsEnabled is not supported on this view type", + ) + } + + open fun isReportIncidentButtonEnabled(): Boolean { + throw FlutterError( + "notSupported", + "isReportIncidentButtonEnabled is not supported on this view type", + ) + } + + open fun setReportIncidentButtonEnabled(enabled: Boolean) { + throw FlutterError( + "notSupported", + "setReportIncidentButtonEnabled is not supported on this view type", + ) + } + + open fun isIncidentReportingAvailable(): Boolean { + throw FlutterError( + "notSupported", + "isIncidentReportingAvailable is not supported on this view type", + ) + } + + open fun showReportIncidentsPanel() { + throw FlutterError( + "notSupported", + "showReportIncidentsPanel is not supported on this view type", + ) + } + + open fun isNavigationUIEnabled(): Boolean { + throw FlutterError("notSupported", "isNavigationUIEnabled is not supported on this view type") + } + + open fun setNavigationUIEnabled(enabled: Boolean) { + throw FlutterError("notSupported", "setNavigationUIEnabled is not supported on this view type") + } + + open fun showRouteOverview() { + throw FlutterError("notSupported", "showRouteOverview is not supported on this view type") + } + + open fun getForceNightMode(): Int { + throw FlutterError("notSupported", "getForceNightMode is not supported on this view type") + } + + open fun setForceNightMode(forceNightMode: Int) { + throw FlutterError("notSupported", "setForceNightMode is not supported on this view type") + } + fun isBuildingsEnabled(): Boolean { return getMap().isBuildingsEnabled } diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationView.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationView.kt index 7f4e0f9d..fbb0cda3 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationView.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/GoogleMapsNavigationView.kt @@ -194,114 +194,114 @@ internal constructor( super.initListeners() } - fun isNavigationTripProgressBarEnabled(): Boolean { + override fun isNavigationTripProgressBarEnabled(): Boolean { return _isNavigationTripProgressBarEnabled } - fun setNavigationTripProgressBarEnabled(enabled: Boolean) { + override fun setNavigationTripProgressBarEnabled(enabled: Boolean) { _navigationView.setTripProgressBarEnabled(enabled) _isNavigationTripProgressBarEnabled = enabled } - fun isNavigationHeaderEnabled(): Boolean { + override fun isNavigationHeaderEnabled(): Boolean { return _isNavigationHeaderEnabled } - fun setNavigationHeaderEnabled(enabled: Boolean) { + override fun setNavigationHeaderEnabled(enabled: Boolean) { _navigationView.setHeaderEnabled(enabled) _isNavigationHeaderEnabled = enabled } - fun isNavigationFooterEnabled(): Boolean { + override fun isNavigationFooterEnabled(): Boolean { return _isNavigationFooterEnabled } - fun setNavigationFooterEnabled(enabled: Boolean) { + override fun setNavigationFooterEnabled(enabled: Boolean) { _navigationView.setEtaCardEnabled(enabled) _isNavigationFooterEnabled = enabled } - fun isRecenterButtonEnabled(): Boolean { + override fun isRecenterButtonEnabled(): Boolean { return _isRecenterButtonEnabled } - fun setRecenterButtonEnabled(enabled: Boolean) { + override fun setRecenterButtonEnabled(enabled: Boolean) { _navigationView.setRecenterButtonEnabled(enabled) _isRecenterButtonEnabled = enabled } - fun isSpeedLimitIconEnabled(): Boolean { + override fun isSpeedLimitIconEnabled(): Boolean { return _isSpeedLimitIconEnabled } - fun setSpeedLimitIconEnabled(enabled: Boolean) { + override fun setSpeedLimitIconEnabled(enabled: Boolean) { _navigationView.setSpeedLimitIconEnabled(enabled) _isSpeedLimitIconEnabled = enabled } - fun isSpeedometerEnabled(): Boolean { + override fun isSpeedometerEnabled(): Boolean { return _isSpeedometerEnabled } - fun setSpeedometerEnabled(enabled: Boolean) { + override fun setSpeedometerEnabled(enabled: Boolean) { _navigationView.setSpeedometerEnabled(enabled) _isSpeedometerEnabled = enabled } - fun isTrafficIncidentCardsEnabled(): Boolean { + override fun isTrafficIncidentCardsEnabled(): Boolean { return _isTrafficIncidentCardsEnabled } - fun setTrafficIncidentCardsEnabled(enabled: Boolean) { + override fun setTrafficIncidentCardsEnabled(enabled: Boolean) { _navigationView.setTrafficIncidentCardsEnabled(enabled) _isTrafficIncidentCardsEnabled = enabled } - fun isReportIncidentButtonEnabled(): Boolean { + override fun isReportIncidentButtonEnabled(): Boolean { return _isReportIncidentButtonEnabled } - fun setReportIncidentButtonEnabled(enabled: Boolean) { + override fun setReportIncidentButtonEnabled(enabled: Boolean) { _navigationView.setReportIncidentButtonEnabled(enabled) _isReportIncidentButtonEnabled = enabled } - fun isIncidentReportingAvailable(): Boolean { + override fun isIncidentReportingAvailable(): Boolean { return _navigationView.isIncidentReportingAvailable() } - fun showReportIncidentsPanel() { + override fun showReportIncidentsPanel() { _navigationView.showReportIncidentsPanel() } - fun isTrafficPromptsEnabled(): Boolean { + override fun isTrafficPromptsEnabled(): Boolean { return _isTrafficPromptsEnabled } - fun setTrafficPromptsEnabled(enabled: Boolean) { + override fun setTrafficPromptsEnabled(enabled: Boolean) { _navigationView.setTrafficPromptsEnabled(enabled) _isTrafficPromptsEnabled = enabled } - fun isNavigationUIEnabled(): Boolean { + override fun isNavigationUIEnabled(): Boolean { return _navigationView.isNavigationUiEnabled } - fun setNavigationUIEnabled(enabled: Boolean) { + override fun setNavigationUIEnabled(enabled: Boolean) { if (_navigationView.isNavigationUiEnabled != enabled) { _navigationView.isNavigationUiEnabled = enabled } } - fun showRouteOverview() { + override fun showRouteOverview() { _navigationView.showRouteOverview() } - fun getForceNightMode(): Int { + override fun getForceNightMode(): Int { return _forceNightMode } - fun setForceNightMode(forceNightMode: Int) { + override fun setForceNightMode(forceNightMode: Int) { _forceNightMode = forceNightMode _navigationView.setForceNightMode(forceNightMode) } diff --git a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt index bfecd545..755f7d0b 100644 --- a/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt +++ b/android/src/main/kotlin/com/google/maps/flutter/navigation/messages.g.kt @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,20 +21,16 @@ package com.google.maps.flutter.navigation import android.util.Log import io.flutter.plugin.common.BasicMessageChannel import io.flutter.plugin.common.BinaryMessenger +import io.flutter.plugin.common.EventChannel import io.flutter.plugin.common.MessageCodec +import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object MessagesPigeonUtils { fun createConnectionError(channelName: String): FlutterError { - return FlutterError( - "channel-error", - "Unable to establish connection on channel: '$channelName'.", - "", - ) - } + return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } fun wrapResult(result: Any?): List { return listOf(result) @@ -42,62 +38,66 @@ private object MessagesPigeonUtils { fun wrapError(exception: Throwable): List { return if (exception is FlutterError) { - listOf(exception.code, exception.message, exception.details) + listOf( + exception.code, + exception.message, + exception.details + ) } else { listOf( exception.javaClass.simpleName, exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) ) } } - fun deepEquals(a: Any?, b: Any?): Boolean { if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is IntArray && b is IntArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is LongArray && b is LongArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) + return a.contentEquals(b) } if (a is Array<*> && b is Array<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is List<*> && b is List<*>) { - return a.size == b.size && a.indices.all { deepEquals(a[it], b[it]) } + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } } if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && - a.all { (b as Map).containsKey(it.key) && deepEquals(it.value, b[it.key]) } + return a.size == b.size && a.all { + (b as Map).containsKey(it.key) && + deepEquals(it.value, b[it.key]) + } } return a == b } + } /** * Error class for passing custom error details to Flutter via a thrown PlatformException. - * * @property code The error code. * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError( +class FlutterError ( val code: String, override val message: String? = null, - val details: Any? = null, + val details: Any? = null ) : Throwable() /** Describes the type of map to construct. */ enum class MapViewTypeDto(val raw: Int) { - /** - * Navigation view supports navigation overlay, and current navigation session is displayed on the - * map. - */ + /** Navigation view supports navigation overlay, and current navigation session is displayed on the map. */ NAVIGATION(0), /** Classic map view, without navigation overlay. */ MAP(1); @@ -111,7 +111,10 @@ enum class MapViewTypeDto(val raw: Int) { /** Determines the initial visibility of the navigation UI on map initialization. */ enum class NavigationUIEnabledPreferenceDto(val raw: Int) { - /** Navigation UI gets enabled if the navigation session has already been successfully started. */ + /** + * Navigation UI gets enabled if the navigation + * session has already been successfully started. + */ AUTOMATIC(0), /** Navigation UI is disabled. */ DISABLED(1); @@ -433,9 +436,7 @@ enum class ManeuverDto(val raw: Int) { OFF_RAMP_UTURN_COUNTERCLOCKWISE(22), /** Keep to the left side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_LEFT(23), - /** - * Keep to the right side of the road when entering a turnpike or freeway as the road diverges. - */ + /** Keep to the right side of the road when entering a turnpike or freeway as the road diverges. */ ON_RAMP_KEEP_RIGHT(24), /** Regular left turn to enter a turnpike or freeway. */ ON_RAMP_LEFT(25), @@ -491,15 +492,9 @@ enum class ManeuverDto(val raw: Int) { ROUNDABOUT_STRAIGHT_CLOCKWISE(50), /** Enter a roundabout in the counterclockwise direction and continue straight. */ ROUNDABOUT_STRAIGHT_COUNTERCLOCKWISE(51), - /** - * Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the - * street. - */ + /** Enter a roundabout in the clockwise direction and turn clockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_CLOCKWISE(52), - /** - * Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the - * opposite side of the street. - */ + /** Enter a roundabout in the counterclockwise direction and turn counterclockwise onto the opposite side of the street. */ ROUNDABOUT_UTURN_COUNTERCLOCKWISE(53), /** Continue straight. */ STRAIGHT(54), @@ -600,14 +595,11 @@ enum class LaneShapeDto(val raw: Int) { /** Determines how application should behave when a application task is removed. */ enum class TaskRemovedBehaviorDto(val raw: Int) { /** - * The default state, indicating that navigation guidance, location updates, and notification - * should persist after user removes the application task. + * The default state, indicating that navigation guidance, + * location updates, and notification should persist after user removes the application task. */ CONTINUE_SERVICE(0), - /** - * Indicates that navigation guidance, location updates, and notification should shut down - * immediately when the user removes the application task. - */ + /** Indicates that navigation guidance, location updates, and notification should shut down immediately when the user removes the application task. */ QUIT_SERVICE(1); companion object { @@ -617,12 +609,61 @@ enum class TaskRemovedBehaviorDto(val raw: Int) { } } +/** + * Object containing auto/carplay map options. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AutoMapOptionsDto ( + /** The initial positioning of the camera in the map view. */ + val cameraPosition: CameraPositionDto? = null, + /** Cloud-based map ID for custom styling. */ + val mapId: String? = null, + /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ + val mapType: MapTypeDto? = null, + /** The color scheme for the map (light, dark, or follow system). */ + val mapColorScheme: MapColorSchemeDto? = null, + /** Forces night mode (dark theme) regardless of system settings. */ + val forceNightMode: NavigationForceNightModeDto? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): AutoMapOptionsDto { + val cameraPosition = pigeonVar_list[0] as CameraPositionDto? + val mapId = pigeonVar_list[1] as String? + val mapType = pigeonVar_list[2] as MapTypeDto? + val mapColorScheme = pigeonVar_list[3] as MapColorSchemeDto? + val forceNightMode = pigeonVar_list[4] as NavigationForceNightModeDto? + return AutoMapOptionsDto(cameraPosition, mapId, mapType, mapColorScheme, forceNightMode) + } + } + fun toList(): List { + return listOf( + cameraPosition, + mapId, + mapType, + mapColorScheme, + forceNightMode, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is AutoMapOptionsDto) { + return false + } + if (this === other) { + return true + } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() +} + /** * Object containing map options used to initialize Google Map view. * * Generated class from Pigeon that represents data sent in messages. */ -data class MapOptionsDto( +data class MapOptionsDto ( /** The initial positioning of the camera in the map view. */ val cameraPosition: CameraPositionDto, /** The type of map to display (e.g., satellite, terrain, hybrid, etc.). */ @@ -655,13 +696,14 @@ data class MapOptionsDto( /** Specifies the padding for the map. */ val padding: MapPaddingDto? = null, /** - * The map ID for advanced map options eg. cloud-based map styling. This value can only be set on - * map initialization and cannot be changed afterwards. + * The map ID for advanced map options eg. cloud-based map styling. + * This value can only be set on map initialization and cannot be changed afterwards. */ val mapId: String? = null, /** The map color scheme mode for the map view. */ - val mapColorScheme: MapColorSchemeDto, -) { + val mapColorScheme: MapColorSchemeDto +) + { companion object { fun fromList(pigeonVar_list: List): MapOptionsDto { val cameraPosition = pigeonVar_list[0] as CameraPositionDto @@ -680,27 +722,9 @@ data class MapOptionsDto( val padding = pigeonVar_list[13] as MapPaddingDto? val mapId = pigeonVar_list[14] as String? val mapColorScheme = pigeonVar_list[15] as MapColorSchemeDto - return MapOptionsDto( - cameraPosition, - mapType, - compassEnabled, - rotateGesturesEnabled, - scrollGesturesEnabled, - tiltGesturesEnabled, - zoomGesturesEnabled, - scrollGesturesEnabledDuringRotateOrZoom, - mapToolbarEnabled, - minZoomPreference, - maxZoomPreference, - zoomControlsEnabled, - cameraTargetBounds, - padding, - mapId, - mapColorScheme, - ) + return MapOptionsDto(cameraPosition, mapType, compassEnabled, rotateGesturesEnabled, scrollGesturesEnabled, tiltGesturesEnabled, zoomGesturesEnabled, scrollGesturesEnabledDuringRotateOrZoom, mapToolbarEnabled, minZoomPreference, maxZoomPreference, zoomControlsEnabled, cameraTargetBounds, padding, mapId, mapColorScheme) } } - fun toList(): List { return listOf( cameraPosition, @@ -721,7 +745,6 @@ data class MapOptionsDto( mapColorScheme, ) } - override fun equals(other: Any?): Boolean { if (other !is MapOptionsDto) { return false @@ -729,8 +752,7 @@ data class MapOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -740,12 +762,13 @@ data class MapOptionsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class NavigationViewOptionsDto( +data class NavigationViewOptionsDto ( /** Determines the initial visibility of the navigation UI on map initialization. */ val navigationUIEnabledPreference: NavigationUIEnabledPreferenceDto, /** Controls the navigation night mode for Navigation UI. */ - val forceNightMode: NavigationForceNightModeDto, -) { + val forceNightMode: NavigationForceNightModeDto +) + { companion object { fun fromList(pigeonVar_list: List): NavigationViewOptionsDto { val navigationUIEnabledPreference = pigeonVar_list[0] as NavigationUIEnabledPreferenceDto @@ -753,11 +776,12 @@ data class NavigationViewOptionsDto( return NavigationViewOptionsDto(navigationUIEnabledPreference, forceNightMode) } } - fun toList(): List { - return listOf(navigationUIEnabledPreference, forceNightMode) + return listOf( + navigationUIEnabledPreference, + forceNightMode, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationViewOptionsDto) { return false @@ -765,8 +789,7 @@ data class NavigationViewOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -774,15 +797,17 @@ data class NavigationViewOptionsDto( /** * A message for creating a new navigation view. * - * This message is used to initialize a new navigation view with a specified initial parameters. + * This message is used to initialize a new navigation view with a + * specified initial parameters. * * Generated class from Pigeon that represents data sent in messages. */ -data class ViewCreationOptionsDto( +data class ViewCreationOptionsDto ( val mapViewType: MapViewTypeDto, val mapOptions: MapOptionsDto, - val navigationViewOptions: NavigationViewOptionsDto? = null, -) { + val navigationViewOptions: NavigationViewOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ViewCreationOptionsDto { val mapViewType = pigeonVar_list[0] as MapViewTypeDto @@ -791,11 +816,13 @@ data class ViewCreationOptionsDto( return ViewCreationOptionsDto(mapViewType, mapOptions, navigationViewOptions) } } - fun toList(): List { - return listOf(mapViewType, mapOptions, navigationViewOptions) + return listOf( + mapViewType, + mapOptions, + navigationViewOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is ViewCreationOptionsDto) { return false @@ -803,19 +830,19 @@ data class ViewCreationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CameraPositionDto( +data class CameraPositionDto ( val bearing: Double, val target: LatLngDto, val tilt: Double, - val zoom: Double, -) { + val zoom: Double +) + { companion object { fun fromList(pigeonVar_list: List): CameraPositionDto { val bearing = pigeonVar_list[0] as Double @@ -825,11 +852,14 @@ data class CameraPositionDto( return CameraPositionDto(bearing, target, tilt, zoom) } } - fun toList(): List { - return listOf(bearing, target, tilt, zoom) + return listOf( + bearing, + target, + tilt, + zoom, + ) } - override fun equals(other: Any?): Boolean { if (other !is CameraPositionDto) { return false @@ -837,19 +867,19 @@ data class CameraPositionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerDto( +data class MarkerDto ( /** Identifies marker */ val markerId: String, /** Options for marker */ - val options: MarkerOptionsDto, -) { + val options: MarkerOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerDto { val markerId = pigeonVar_list[0] as String @@ -857,11 +887,12 @@ data class MarkerDto( return MarkerDto(markerId, options) } } - fun toList(): List { - return listOf(markerId, options) + return listOf( + markerId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerDto) { return false @@ -869,14 +900,13 @@ data class MarkerDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerOptionsDto( +data class MarkerOptionsDto ( val alpha: Double, val anchor: MarkerAnchorDto, val draggable: Boolean, @@ -887,8 +917,9 @@ data class MarkerOptionsDto( val infoWindow: InfoWindowDto, val visible: Boolean, val zIndex: Double, - val icon: ImageDescriptorDto, -) { + val icon: ImageDescriptorDto +) + { companion object { fun fromList(pigeonVar_list: List): MarkerOptionsDto { val alpha = pigeonVar_list[0] as Double @@ -902,22 +933,9 @@ data class MarkerOptionsDto( val visible = pigeonVar_list[8] as Boolean val zIndex = pigeonVar_list[9] as Double val icon = pigeonVar_list[10] as ImageDescriptorDto - return MarkerOptionsDto( - alpha, - anchor, - draggable, - flat, - consumeTapEvents, - position, - rotation, - infoWindow, - visible, - zIndex, - icon, - ) + return MarkerOptionsDto(alpha, anchor, draggable, flat, consumeTapEvents, position, rotation, infoWindow, visible, zIndex, icon) } } - fun toList(): List { return listOf( alpha, @@ -933,7 +951,6 @@ data class MarkerOptionsDto( icon, ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerOptionsDto) { return false @@ -941,20 +958,20 @@ data class MarkerOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ImageDescriptorDto( +data class ImageDescriptorDto ( val registeredImageId: String? = null, val imagePixelRatio: Double? = null, val width: Double? = null, val height: Double? = null, - val type: RegisteredImageTypeDto, -) { + val type: RegisteredImageTypeDto +) + { companion object { fun fromList(pigeonVar_list: List): ImageDescriptorDto { val registeredImageId = pigeonVar_list[0] as String? @@ -965,11 +982,15 @@ data class ImageDescriptorDto( return ImageDescriptorDto(registeredImageId, imagePixelRatio, width, height, type) } } - fun toList(): List { - return listOf(registeredImageId, imagePixelRatio, width, height, type) + return listOf( + registeredImageId, + imagePixelRatio, + width, + height, + type, + ) } - override fun equals(other: Any?): Boolean { if (other !is ImageDescriptorDto) { return false @@ -977,18 +998,18 @@ data class ImageDescriptorDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class InfoWindowDto( +data class InfoWindowDto ( val title: String? = null, val snippet: String? = null, - val anchor: MarkerAnchorDto, -) { + val anchor: MarkerAnchorDto +) + { companion object { fun fromList(pigeonVar_list: List): InfoWindowDto { val title = pigeonVar_list[0] as String? @@ -997,11 +1018,13 @@ data class InfoWindowDto( return InfoWindowDto(title, snippet, anchor) } } - fun toList(): List { - return listOf(title, snippet, anchor) + return listOf( + title, + snippet, + anchor, + ) } - override fun equals(other: Any?): Boolean { if (other !is InfoWindowDto) { return false @@ -1009,14 +1032,17 @@ data class InfoWindowDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MarkerAnchorDto(val u: Double, val v: Double) { +data class MarkerAnchorDto ( + val u: Double, + val v: Double +) + { companion object { fun fromList(pigeonVar_list: List): MarkerAnchorDto { val u = pigeonVar_list[0] as Double @@ -1024,11 +1050,12 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { return MarkerAnchorDto(u, v) } } - fun toList(): List { - return listOf(u, v) + return listOf( + u, + v, + ) } - override fun equals(other: Any?): Boolean { if (other !is MarkerAnchorDto) { return false @@ -1036,29 +1063,29 @@ data class MarkerAnchorDto(val u: Double, val v: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Represents a point of interest (POI) on the map. POIs include parks, schools, government - * buildings, and businesses. + * Represents a point of interest (POI) on the map. + * POIs include parks, schools, government buildings, and businesses. * * Generated class from Pigeon that represents data sent in messages. */ -data class PointOfInterestDto( +data class PointOfInterestDto ( /** - * The Place ID of this POI, as defined in the Places SDK. This can be used to retrieve additional - * information about the place. + * The Place ID of this POI, as defined in the Places SDK. + * This can be used to retrieve additional information about the place. */ val placeID: String, /** The name of the POI (e.g., "Central Park", "City Hall"). */ val name: String, /** The geographical coordinates of the POI. */ - val latLng: LatLngDto, -) { + val latLng: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): PointOfInterestDto { val placeID = pigeonVar_list[0] as String @@ -1067,11 +1094,13 @@ data class PointOfInterestDto( return PointOfInterestDto(placeID, name, latLng) } } - fun toList(): List { - return listOf(placeID, name, latLng) + return listOf( + placeID, + name, + latLng, + ) } - override fun equals(other: Any?): Boolean { if (other !is PointOfInterestDto) { return false @@ -1079,14 +1108,17 @@ data class PointOfInterestDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { +data class PolygonDto ( + val polygonId: String, + val options: PolygonOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolygonDto { val polygonId = pigeonVar_list[0] as String @@ -1094,11 +1126,12 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { return PolygonDto(polygonId, options) } } - fun toList(): List { - return listOf(polygonId, options) + return listOf( + polygonId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonDto) { return false @@ -1106,14 +1139,13 @@ data class PolygonDto(val polygonId: String, val options: PolygonOptionsDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonOptionsDto( +data class PolygonOptionsDto ( val points: List, val holes: List, val clickable: Boolean, @@ -1122,8 +1154,9 @@ data class PolygonOptionsDto( val strokeColor: Long, val strokeWidth: Double, val visible: Boolean, - val zIndex: Double, -) { + val zIndex: Double +) + { companion object { fun fromList(pigeonVar_list: List): PolygonOptionsDto { val points = pigeonVar_list[0] as List @@ -1135,20 +1168,9 @@ data class PolygonOptionsDto( val strokeWidth = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val zIndex = pigeonVar_list[8] as Double - return PolygonOptionsDto( - points, - holes, - clickable, - fillColor, - geodesic, - strokeColor, - strokeWidth, - visible, - zIndex, - ) + return PolygonOptionsDto(points, holes, clickable, fillColor, geodesic, strokeColor, strokeWidth, visible, zIndex) } } - fun toList(): List { return listOf( points, @@ -1162,7 +1184,6 @@ data class PolygonOptionsDto( zIndex, ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonOptionsDto) { return false @@ -1170,25 +1191,27 @@ data class PolygonOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolygonHoleDto(val points: List) { +data class PolygonHoleDto ( + val points: List +) + { companion object { fun fromList(pigeonVar_list: List): PolygonHoleDto { val points = pigeonVar_list[0] as List return PolygonHoleDto(points) } } - fun toList(): List { - return listOf(points) + return listOf( + points, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolygonHoleDto) { return false @@ -1196,18 +1219,18 @@ data class PolygonHoleDto(val points: List) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanStrokeStyleDto( +data class StyleSpanStrokeStyleDto ( val solidColor: Long? = null, val fromColor: Long? = null, - val toColor: Long? = null, -) { + val toColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanStrokeStyleDto { val solidColor = pigeonVar_list[0] as Long? @@ -1216,11 +1239,13 @@ data class StyleSpanStrokeStyleDto( return StyleSpanStrokeStyleDto(solidColor, fromColor, toColor) } } - fun toList(): List { - return listOf(solidColor, fromColor, toColor) + return listOf( + solidColor, + fromColor, + toColor, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanStrokeStyleDto) { return false @@ -1228,14 +1253,17 @@ data class StyleSpanStrokeStyleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) { +data class StyleSpanDto ( + val length: Double, + val style: StyleSpanStrokeStyleDto +) + { companion object { fun fromList(pigeonVar_list: List): StyleSpanDto { val length = pigeonVar_list[0] as Double @@ -1243,11 +1271,12 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) return StyleSpanDto(length, style) } } - fun toList(): List { - return listOf(length, style) + return listOf( + length, + style, + ) } - override fun equals(other: Any?): Boolean { if (other !is StyleSpanDto) { return false @@ -1255,14 +1284,17 @@ data class StyleSpanDto(val length: Double, val style: StyleSpanStrokeStyleDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) { +data class PolylineDto ( + val polylineId: String, + val options: PolylineOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): PolylineDto { val polylineId = pigeonVar_list[0] as String @@ -1270,11 +1302,12 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) return PolylineDto(polylineId, options) } } - fun toList(): List { - return listOf(polylineId, options) + return listOf( + polylineId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineDto) { return false @@ -1282,14 +1315,17 @@ data class PolylineDto(val polylineId: String, val options: PolylineOptionsDto) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) { +data class PatternItemDto ( + val type: PatternTypeDto, + val length: Double? = null +) + { companion object { fun fromList(pigeonVar_list: List): PatternItemDto { val type = pigeonVar_list[0] as PatternTypeDto @@ -1297,11 +1333,12 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) return PatternItemDto(type, length) } } - fun toList(): List { - return listOf(type, length) + return listOf( + type, + length, + ) } - override fun equals(other: Any?): Boolean { if (other !is PatternItemDto) { return false @@ -1309,14 +1346,13 @@ data class PatternItemDto(val type: PatternTypeDto, val length: Double? = null) if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PolylineOptionsDto( +data class PolylineOptionsDto ( val points: List? = null, val clickable: Boolean? = null, val geodesic: Boolean? = null, @@ -1326,8 +1362,9 @@ data class PolylineOptionsDto( val strokeWidth: Double? = null, val visible: Boolean? = null, val zIndex: Double? = null, - val spans: List, -) { + val spans: List +) + { companion object { fun fromList(pigeonVar_list: List): PolylineOptionsDto { val points = pigeonVar_list[0] as List? @@ -1340,21 +1377,9 @@ data class PolylineOptionsDto( val visible = pigeonVar_list[7] as Boolean? val zIndex = pigeonVar_list[8] as Double? val spans = pigeonVar_list[9] as List - return PolylineOptionsDto( - points, - clickable, - geodesic, - strokeColor, - strokeJointType, - strokePattern, - strokeWidth, - visible, - zIndex, - spans, - ) + return PolylineOptionsDto(points, clickable, geodesic, strokeColor, strokeJointType, strokePattern, strokeWidth, visible, zIndex, spans) } } - fun toList(): List { return listOf( points, @@ -1369,7 +1394,6 @@ data class PolylineOptionsDto( spans, ) } - override fun equals(other: Any?): Boolean { if (other !is PolylineOptionsDto) { return false @@ -1377,19 +1401,19 @@ data class PolylineOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleDto( +data class CircleDto ( /** Identifies circle. */ val circleId: String, /** Options for circle. */ - val options: CircleOptionsDto, -) { + val options: CircleOptionsDto +) + { companion object { fun fromList(pigeonVar_list: List): CircleDto { val circleId = pigeonVar_list[0] as String @@ -1397,11 +1421,12 @@ data class CircleDto( return CircleDto(circleId, options) } } - fun toList(): List { - return listOf(circleId, options) + return listOf( + circleId, + options, + ) } - override fun equals(other: Any?): Boolean { if (other !is CircleDto) { return false @@ -1409,14 +1434,13 @@ data class CircleDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class CircleOptionsDto( +data class CircleOptionsDto ( val position: LatLngDto, val radius: Double, val strokeWidth: Double, @@ -1425,8 +1449,9 @@ data class CircleOptionsDto( val fillColor: Long, val zIndex: Double, val visible: Boolean, - val clickable: Boolean, -) { + val clickable: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): CircleOptionsDto { val position = pigeonVar_list[0] as LatLngDto @@ -1438,20 +1463,9 @@ data class CircleOptionsDto( val zIndex = pigeonVar_list[6] as Double val visible = pigeonVar_list[7] as Boolean val clickable = pigeonVar_list[8] as Boolean - return CircleOptionsDto( - position, - radius, - strokeWidth, - strokeColor, - strokePattern, - fillColor, - zIndex, - visible, - clickable, - ) + return CircleOptionsDto(position, radius, strokeWidth, strokeColor, strokePattern, fillColor, zIndex, visible, clickable) } } - fun toList(): List { return listOf( position, @@ -1465,7 +1479,6 @@ data class CircleOptionsDto( clickable, ) } - override fun equals(other: Any?): Boolean { if (other !is CircleOptionsDto) { return false @@ -1473,14 +1486,19 @@ data class CircleOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val right: Long) { +data class MapPaddingDto ( + val top: Long, + val left: Long, + val bottom: Long, + val right: Long +) + { companion object { fun fromList(pigeonVar_list: List): MapPaddingDto { val top = pigeonVar_list[0] as Long @@ -1490,11 +1508,14 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri return MapPaddingDto(top, left, bottom, right) } } - fun toList(): List { - return listOf(top, left, bottom, right) + return listOf( + top, + left, + bottom, + right, + ) } - override fun equals(other: Any?): Boolean { if (other !is MapPaddingDto) { return false @@ -1502,14 +1523,17 @@ data class MapPaddingDto(val top: Long, val left: Long, val bottom: Long, val ri if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelModeDto? = null) { +data class RouteTokenOptionsDto ( + val routeToken: String, + val travelMode: TravelModeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteTokenOptionsDto { val routeToken = pigeonVar_list[0] as String @@ -1517,11 +1541,12 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo return RouteTokenOptionsDto(routeToken, travelMode) } } - fun toList(): List { - return listOf(routeToken, travelMode) + return listOf( + routeToken, + travelMode, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteTokenOptionsDto) { return false @@ -1529,19 +1554,19 @@ data class RouteTokenOptionsDto(val routeToken: String, val travelMode: TravelMo if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class DestinationsDto( +data class DestinationsDto ( val waypoints: List, val displayOptions: NavigationDisplayOptionsDto, val routingOptions: RoutingOptionsDto? = null, - val routeTokenOptions: RouteTokenOptionsDto? = null, -) { + val routeTokenOptions: RouteTokenOptionsDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): DestinationsDto { val waypoints = pigeonVar_list[0] as List @@ -1551,11 +1576,14 @@ data class DestinationsDto( return DestinationsDto(waypoints, displayOptions, routingOptions, routeTokenOptions) } } - fun toList(): List { - return listOf(waypoints, displayOptions, routingOptions, routeTokenOptions) + return listOf( + waypoints, + displayOptions, + routingOptions, + routeTokenOptions, + ) } - override fun equals(other: Any?): Boolean { if (other !is DestinationsDto) { return false @@ -1563,14 +1591,13 @@ data class DestinationsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RoutingOptionsDto( +data class RoutingOptionsDto ( val alternateRoutesStrategy: AlternateRoutesStrategyDto? = null, val routingStrategy: RoutingStrategyDto? = null, val targetDistanceMeters: List? = null, @@ -1578,8 +1605,9 @@ data class RoutingOptionsDto( val avoidTolls: Boolean? = null, val avoidFerries: Boolean? = null, val avoidHighways: Boolean? = null, - val locationTimeoutMs: Long? = null, -) { + val locationTimeoutMs: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): RoutingOptionsDto { val alternateRoutesStrategy = pigeonVar_list[0] as AlternateRoutesStrategyDto? @@ -1590,19 +1618,9 @@ data class RoutingOptionsDto( val avoidFerries = pigeonVar_list[5] as Boolean? val avoidHighways = pigeonVar_list[6] as Boolean? val locationTimeoutMs = pigeonVar_list[7] as Long? - return RoutingOptionsDto( - alternateRoutesStrategy, - routingStrategy, - targetDistanceMeters, - travelMode, - avoidTolls, - avoidFerries, - avoidHighways, - locationTimeoutMs, - ) + return RoutingOptionsDto(alternateRoutesStrategy, routingStrategy, targetDistanceMeters, travelMode, avoidTolls, avoidFerries, avoidHighways, locationTimeoutMs) } } - fun toList(): List { return listOf( alternateRoutesStrategy, @@ -1615,7 +1633,6 @@ data class RoutingOptionsDto( locationTimeoutMs, ) } - override fun equals(other: Any?): Boolean { if (other !is RoutingOptionsDto) { return false @@ -1623,20 +1640,20 @@ data class RoutingOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationDisplayOptionsDto( +data class NavigationDisplayOptionsDto ( val showDestinationMarkers: Boolean? = null, /** Deprecated: This option now defaults to true. */ val showStopSigns: Boolean? = null, /** Deprecated: This option now defaults to true. */ - val showTrafficLights: Boolean? = null, -) { + val showTrafficLights: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationDisplayOptionsDto { val showDestinationMarkers = pigeonVar_list[0] as Boolean? @@ -1645,11 +1662,13 @@ data class NavigationDisplayOptionsDto( return NavigationDisplayOptionsDto(showDestinationMarkers, showStopSigns, showTrafficLights) } } - fun toList(): List { - return listOf(showDestinationMarkers, showStopSigns, showTrafficLights) + return listOf( + showDestinationMarkers, + showStopSigns, + showTrafficLights, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationDisplayOptionsDto) { return false @@ -1657,20 +1676,20 @@ data class NavigationDisplayOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationWaypointDto( +data class NavigationWaypointDto ( val title: String, val target: LatLngDto? = null, val placeID: String? = null, val preferSameSideOfRoad: Boolean? = null, - val preferredSegmentHeading: Long? = null, -) { + val preferredSegmentHeading: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationWaypointDto { val title = pigeonVar_list[0] as String @@ -1678,20 +1697,18 @@ data class NavigationWaypointDto( val placeID = pigeonVar_list[2] as String? val preferSameSideOfRoad = pigeonVar_list[3] as Boolean? val preferredSegmentHeading = pigeonVar_list[4] as Long? - return NavigationWaypointDto( - title, - target, - placeID, - preferSameSideOfRoad, - preferredSegmentHeading, - ) + return NavigationWaypointDto(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) } } - fun toList(): List { - return listOf(title, target, placeID, preferSameSideOfRoad, preferredSegmentHeading) + return listOf( + title, + target, + placeID, + preferSameSideOfRoad, + preferredSegmentHeading, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationWaypointDto) { return false @@ -1699,17 +1716,17 @@ data class NavigationWaypointDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class ContinueToNextDestinationResponseDto( +data class ContinueToNextDestinationResponseDto ( val waypoint: NavigationWaypointDto? = null, - val routeStatus: RouteStatusDto? = null, -) { + val routeStatus: RouteStatusDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): ContinueToNextDestinationResponseDto { val waypoint = pigeonVar_list[0] as NavigationWaypointDto? @@ -1717,11 +1734,12 @@ data class ContinueToNextDestinationResponseDto( return ContinueToNextDestinationResponseDto(waypoint, routeStatus) } } - fun toList(): List { - return listOf(waypoint, routeStatus) + return listOf( + waypoint, + routeStatus, + ) } - override fun equals(other: Any?): Boolean { if (other !is ContinueToNextDestinationResponseDto) { return false @@ -1729,18 +1747,18 @@ data class ContinueToNextDestinationResponseDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationTimeAndDistanceDto( +data class NavigationTimeAndDistanceDto ( val time: Double, val distance: Double, - val delaySeverity: TrafficDelaySeverityDto, -) { + val delaySeverity: TrafficDelaySeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): NavigationTimeAndDistanceDto { val time = pigeonVar_list[0] as Double @@ -1749,11 +1767,13 @@ data class NavigationTimeAndDistanceDto( return NavigationTimeAndDistanceDto(time, distance, delaySeverity) } } - fun toList(): List { - return listOf(time, distance, delaySeverity) + return listOf( + time, + distance, + delaySeverity, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationTimeAndDistanceDto) { return false @@ -1761,35 +1781,33 @@ data class NavigationTimeAndDistanceDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class NavigationAudioGuidanceSettingsDto( +data class NavigationAudioGuidanceSettingsDto ( val isBluetoothAudioEnabled: Boolean? = null, val isVibrationEnabled: Boolean? = null, - val guidanceType: AudioGuidanceTypeDto? = null, -) { + val guidanceType: AudioGuidanceTypeDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavigationAudioGuidanceSettingsDto { val isBluetoothAudioEnabled = pigeonVar_list[0] as Boolean? val isVibrationEnabled = pigeonVar_list[1] as Boolean? val guidanceType = pigeonVar_list[2] as AudioGuidanceTypeDto? - return NavigationAudioGuidanceSettingsDto( - isBluetoothAudioEnabled, - isVibrationEnabled, - guidanceType, - ) + return NavigationAudioGuidanceSettingsDto(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) } } - fun toList(): List { - return listOf(isBluetoothAudioEnabled, isVibrationEnabled, guidanceType) + return listOf( + isBluetoothAudioEnabled, + isVibrationEnabled, + guidanceType, + ) } - override fun equals(other: Any?): Boolean { if (other !is NavigationAudioGuidanceSettingsDto) { return false @@ -1797,25 +1815,27 @@ data class NavigationAudioGuidanceSettingsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimulationOptionsDto(val speedMultiplier: Double) { +data class SimulationOptionsDto ( + val speedMultiplier: Double +) + { companion object { fun fromList(pigeonVar_list: List): SimulationOptionsDto { val speedMultiplier = pigeonVar_list[0] as Double return SimulationOptionsDto(speedMultiplier) } } - fun toList(): List { - return listOf(speedMultiplier) + return listOf( + speedMultiplier, + ) } - override fun equals(other: Any?): Boolean { if (other !is SimulationOptionsDto) { return false @@ -1823,14 +1843,17 @@ data class SimulationOptionsDto(val speedMultiplier: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngDto(val latitude: Double, val longitude: Double) { +data class LatLngDto ( + val latitude: Double, + val longitude: Double +) + { companion object { fun fromList(pigeonVar_list: List): LatLngDto { val latitude = pigeonVar_list[0] as Double @@ -1838,11 +1861,12 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { return LatLngDto(latitude, longitude) } } - fun toList(): List { - return listOf(latitude, longitude) + return listOf( + latitude, + longitude, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngDto) { return false @@ -1850,14 +1874,17 @@ data class LatLngDto(val latitude: Double, val longitude: Double) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { +data class LatLngBoundsDto ( + val southwest: LatLngDto, + val northeast: LatLngDto +) + { companion object { fun fromList(pigeonVar_list: List): LatLngBoundsDto { val southwest = pigeonVar_list[0] as LatLngDto @@ -1865,11 +1892,12 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { return LatLngBoundsDto(southwest, northeast) } } - fun toList(): List { - return listOf(southwest, northeast) + return listOf( + southwest, + northeast, + ) } - override fun equals(other: Any?): Boolean { if (other !is LatLngBoundsDto) { return false @@ -1877,17 +1905,17 @@ data class LatLngBoundsDto(val southwest: LatLngDto, val northeast: LatLngDto) { if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedingUpdatedEventDto( +data class SpeedingUpdatedEventDto ( val percentageAboveLimit: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedingUpdatedEventDto { val percentageAboveLimit = pigeonVar_list[0] as Double @@ -1895,11 +1923,12 @@ data class SpeedingUpdatedEventDto( return SpeedingUpdatedEventDto(percentageAboveLimit, severity) } } - fun toList(): List { - return listOf(percentageAboveLimit, severity) + return listOf( + percentageAboveLimit, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedingUpdatedEventDto) { return false @@ -1907,17 +1936,17 @@ data class SpeedingUpdatedEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GpsAvailabilityChangeEventDto( +data class GpsAvailabilityChangeEventDto ( val isGpsLost: Boolean, - val isGpsValidForNavigation: Boolean, -) { + val isGpsValidForNavigation: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): GpsAvailabilityChangeEventDto { val isGpsLost = pigeonVar_list[0] as Boolean @@ -1925,11 +1954,12 @@ data class GpsAvailabilityChangeEventDto( return GpsAvailabilityChangeEventDto(isGpsLost, isGpsValidForNavigation) } } - fun toList(): List { - return listOf(isGpsLost, isGpsValidForNavigation) + return listOf( + isGpsLost, + isGpsValidForNavigation, + ) } - override fun equals(other: Any?): Boolean { if (other !is GpsAvailabilityChangeEventDto) { return false @@ -1937,17 +1967,17 @@ data class GpsAvailabilityChangeEventDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsThresholdPercentageDto( +data class SpeedAlertOptionsThresholdPercentageDto ( val percentage: Double, - val severity: SpeedAlertSeverityDto, -) { + val severity: SpeedAlertSeverityDto +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsThresholdPercentageDto { val percentage = pigeonVar_list[0] as Double @@ -1955,11 +1985,12 @@ data class SpeedAlertOptionsThresholdPercentageDto( return SpeedAlertOptionsThresholdPercentageDto(percentage, severity) } } - fun toList(): List { - return listOf(percentage, severity) + return listOf( + percentage, + severity, + ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsThresholdPercentageDto) { return false @@ -1967,31 +1998,26 @@ data class SpeedAlertOptionsThresholdPercentageDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SpeedAlertOptionsDto( +data class SpeedAlertOptionsDto ( val severityUpgradeDurationSeconds: Double, val minorSpeedAlertThresholdPercentage: Double, - val majorSpeedAlertThresholdPercentage: Double, -) { + val majorSpeedAlertThresholdPercentage: Double +) + { companion object { fun fromList(pigeonVar_list: List): SpeedAlertOptionsDto { val severityUpgradeDurationSeconds = pigeonVar_list[0] as Double val minorSpeedAlertThresholdPercentage = pigeonVar_list[1] as Double val majorSpeedAlertThresholdPercentage = pigeonVar_list[2] as Double - return SpeedAlertOptionsDto( - severityUpgradeDurationSeconds, - minorSpeedAlertThresholdPercentage, - majorSpeedAlertThresholdPercentage, - ) + return SpeedAlertOptionsDto(severityUpgradeDurationSeconds, minorSpeedAlertThresholdPercentage, majorSpeedAlertThresholdPercentage) } } - fun toList(): List { return listOf( severityUpgradeDurationSeconds, @@ -1999,7 +2025,6 @@ data class SpeedAlertOptionsDto( majorSpeedAlertThresholdPercentage, ) } - override fun equals(other: Any?): Boolean { if (other !is SpeedAlertOptionsDto) { return false @@ -2007,18 +2032,18 @@ data class SpeedAlertOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( +data class RouteSegmentTrafficDataRoadStretchRenderingDataDto ( val style: RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto, val lengthMeters: Long, - val offsetMeters: Long, -) { + val offsetMeters: Long +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataRoadStretchRenderingDataDto { val style = pigeonVar_list[0] as RouteSegmentTrafficDataRoadStretchRenderingDataStyleDto @@ -2027,11 +2052,13 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( return RouteSegmentTrafficDataRoadStretchRenderingDataDto(style, lengthMeters, offsetMeters) } } - fun toList(): List { - return listOf(style, lengthMeters, offsetMeters) + return listOf( + style, + lengthMeters, + offsetMeters, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { return false @@ -2039,30 +2066,30 @@ data class RouteSegmentTrafficDataRoadStretchRenderingDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentTrafficDataDto( +data class RouteSegmentTrafficDataDto ( val status: RouteSegmentTrafficDataStatusDto, - val roadStretchRenderingDataList: List, -) { + val roadStretchRenderingDataList: List +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentTrafficDataDto { val status = pigeonVar_list[0] as RouteSegmentTrafficDataStatusDto - val roadStretchRenderingDataList = - pigeonVar_list[1] as List + val roadStretchRenderingDataList = pigeonVar_list[1] as List return RouteSegmentTrafficDataDto(status, roadStretchRenderingDataList) } } - fun toList(): List { - return listOf(status, roadStretchRenderingDataList) + return listOf( + status, + roadStretchRenderingDataList, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentTrafficDataDto) { return false @@ -2070,19 +2097,19 @@ data class RouteSegmentTrafficDataDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class RouteSegmentDto( +data class RouteSegmentDto ( val trafficData: RouteSegmentTrafficDataDto? = null, val destinationLatLng: LatLngDto, val latLngs: List? = null, - val destinationWaypoint: NavigationWaypointDto? = null, -) { + val destinationWaypoint: NavigationWaypointDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): RouteSegmentDto { val trafficData = pigeonVar_list[0] as RouteSegmentTrafficDataDto? @@ -2092,11 +2119,14 @@ data class RouteSegmentDto( return RouteSegmentDto(trafficData, destinationLatLng, latLngs, destinationWaypoint) } } - fun toList(): List { - return listOf(trafficData, destinationLatLng, latLngs, destinationWaypoint) + return listOf( + trafficData, + destinationLatLng, + latLngs, + destinationWaypoint, + ) } - override fun equals(other: Any?): Boolean { if (other !is RouteSegmentDto) { return false @@ -2104,24 +2134,23 @@ data class RouteSegmentDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * One of the possible directions from a lane at the end of a route step, and whether it is on the - * recommended route. + * One of the possible directions from a lane at the end of a route step, and whether it is on the recommended route. * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDirectionDto( +data class LaneDirectionDto ( /** Shape for this lane direction. */ val laneShape: LaneShapeDto, /** Whether this lane is recommended. */ - val isRecommended: Boolean, -) { + val isRecommended: Boolean +) + { companion object { fun fromList(pigeonVar_list: List): LaneDirectionDto { val laneShape = pigeonVar_list[0] as LaneShapeDto @@ -2129,11 +2158,12 @@ data class LaneDirectionDto( return LaneDirectionDto(laneShape, isRecommended) } } - fun toList(): List { - return listOf(laneShape, isRecommended) + return listOf( + laneShape, + isRecommended, + ) } - override fun equals(other: Any?): Boolean { if (other !is LaneDirectionDto) { return false @@ -2141,8 +2171,7 @@ data class LaneDirectionDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2152,24 +2181,22 @@ data class LaneDirectionDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class LaneDto( - /** - * List of possible directions a driver can follow when using this lane at the end of the - * respective route step - */ +data class LaneDto ( + /** List of possible directions a driver can follow when using this lane at the end of the respective route step */ val laneDirections: List -) { +) + { companion object { fun fromList(pigeonVar_list: List): LaneDto { val laneDirections = pigeonVar_list[0] as List return LaneDto(laneDirections) } } - fun toList(): List { - return listOf(laneDirections) - } - + return listOf( + laneDirections, + ) + } override fun equals(other: Any?): Boolean { if (other !is LaneDto) { return false @@ -2177,8 +2204,7 @@ data class LaneDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2188,7 +2214,7 @@ data class LaneDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepInfoDto( +data class StepInfoDto ( /** Distance in meters from the previous step to this step if available, otherwise null. */ val distanceFromPrevStepMeters: Long? = null, /** Time in seconds from the previous step to this step if available, otherwise null. */ @@ -2204,8 +2230,8 @@ data class StepInfoDto( /** The simplified version of the road name if available, otherwise null. */ val simpleRoadName: String? = null, /** - * The counted number of the exit to take relative to the location where the roundabout was - * entered if available, otherwise null. + * The counted number of the exit to take relative to the location where the + * roundabout was entered if available, otherwise null. */ val roundaboutTurnNumber: Long? = null, /** The list of available lanes at the end of this route step if available, otherwise null. */ @@ -2215,17 +2241,17 @@ data class StepInfoDto( /** The index of the step in the list of all steps in the route if available, otherwise null. */ val stepNumber: Long? = null, /** - * Image descriptor for the generated maneuver image for the current step if available, otherwise - * null. This image is generated only if step image generation option includes maneuver images. + * Image descriptor for the generated maneuver image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes maneuver images. */ val maneuverImage: ImageDescriptorDto? = null, /** - * Image descriptor for the generated lane guidance image for the current step if available, - * otherwise null. This image is generated only if step image generation option includes lane - * images. + * Image descriptor for the generated lane guidance image for the current step if available, otherwise null. + * This image is generated only if step image generation option includes lane images. */ - val lanesImage: ImageDescriptorDto? = null, -) { + val lanesImage: ImageDescriptorDto? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepInfoDto { val distanceFromPrevStepMeters = pigeonVar_list[0] as Long? @@ -2241,24 +2267,9 @@ data class StepInfoDto( val stepNumber = pigeonVar_list[10] as Long? val maneuverImage = pigeonVar_list[11] as ImageDescriptorDto? val lanesImage = pigeonVar_list[12] as ImageDescriptorDto? - return StepInfoDto( - distanceFromPrevStepMeters, - timeFromPrevStepSeconds, - drivingSide, - exitNumber, - fullInstructions, - fullRoadName, - simpleRoadName, - roundaboutTurnNumber, - lanes, - maneuver, - stepNumber, - maneuverImage, - lanesImage, - ) + return StepInfoDto(distanceFromPrevStepMeters, timeFromPrevStepSeconds, drivingSide, exitNumber, fullInstructions, fullRoadName, simpleRoadName, roundaboutTurnNumber, lanes, maneuver, stepNumber, maneuverImage, lanesImage) } } - fun toList(): List { return listOf( distanceFromPrevStepMeters, @@ -2276,7 +2287,6 @@ data class StepInfoDto( lanesImage, ) } - override fun equals(other: Any?): Boolean { if (other !is StepInfoDto) { return false @@ -2284,19 +2294,18 @@ data class StepInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } /** - * Contains information about the state of navigation, the current nav step if available, and - * remaining steps if available. + * Contains information about the state of navigation, the current nav step if + * available, and remaining steps if available. * * Generated class from Pigeon that represents data sent in messages. */ -data class NavInfoDto( +data class NavInfoDto ( /** The current state of navigation. */ val navState: NavStateDto, /** Information about the upcoming maneuver step. */ @@ -2305,11 +2314,14 @@ data class NavInfoDto( val remainingSteps: List, /** Whether the route has changed since the last sent message. */ val routeChanged: Boolean, - /** Estimated remaining distance in meters along the route to the current step. */ + /** + * Estimated remaining distance in meters along the route to the + * current step. + */ val distanceToCurrentStepMeters: Long? = null, /** - * The estimated remaining distance in meters to the final destination which is the last - * destination in a multi-destination trip. + * The estimated remaining distance in meters to the final destination which + * is the last destination in a multi-destination trip. */ val distanceToFinalDestinationMeters: Long? = null, /** @@ -2318,11 +2330,14 @@ data class NavInfoDto( * Android only. */ val distanceToNextDestinationMeters: Long? = null, - /** The estimated remaining time in seconds along the route to the current step. */ + /** + * The estimated remaining time in seconds along the route to the + * current step. + */ val timeToCurrentStepSeconds: Long? = null, /** - * The estimated remaining time in seconds to the final destination which is the last destination - * in a multi-destination trip. + * The estimated remaining time in seconds to the final destination which is + * the last destination in a multi-destination trip. */ val timeToFinalDestinationSeconds: Long? = null, /** @@ -2330,8 +2345,9 @@ data class NavInfoDto( * * Android only. */ - val timeToNextDestinationSeconds: Long? = null, -) { + val timeToNextDestinationSeconds: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): NavInfoDto { val navState = pigeonVar_list[0] as NavStateDto @@ -2344,21 +2360,9 @@ data class NavInfoDto( val timeToCurrentStepSeconds = pigeonVar_list[7] as Long? val timeToFinalDestinationSeconds = pigeonVar_list[8] as Long? val timeToNextDestinationSeconds = pigeonVar_list[9] as Long? - return NavInfoDto( - navState, - currentStep, - remainingSteps, - routeChanged, - distanceToCurrentStepMeters, - distanceToFinalDestinationMeters, - distanceToNextDestinationMeters, - timeToCurrentStepSeconds, - timeToFinalDestinationSeconds, - timeToNextDestinationSeconds, - ) + return NavInfoDto(navState, currentStep, remainingSteps, routeChanged, distanceToCurrentStepMeters, distanceToFinalDestinationMeters, distanceToNextDestinationMeters, timeToCurrentStepSeconds, timeToFinalDestinationSeconds, timeToNextDestinationSeconds) } } - fun toList(): List { return listOf( navState, @@ -2373,7 +2377,6 @@ data class NavInfoDto( timeToNextDestinationSeconds, ) } - override fun equals(other: Any?): Boolean { if (other !is NavInfoDto) { return false @@ -2381,8 +2384,7 @@ data class NavInfoDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2390,12 +2392,12 @@ data class NavInfoDto( /** * UI customization parameters for the Terms and Conditions dialog. * - * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). All parameters are optional - if - * not provided, platform defaults will be used. + * All color values are 32-bit ARGB integers (format: 0xAARRGGBB). + * All parameters are optional - if not provided, platform defaults will be used. * * Generated class from Pigeon that represents data sent in messages. */ -data class TermsAndConditionsUIParamsDto( +data class TermsAndConditionsUIParamsDto ( /** Background color of the dialog box. */ val backgroundColor: Long? = null, /** Text color for the dialog title. */ @@ -2405,8 +2407,9 @@ data class TermsAndConditionsUIParamsDto( /** Text color for the accept button. */ val acceptButtonTextColor: Long? = null, /** Text color for the cancel button. */ - val cancelButtonTextColor: Long? = null, -) { + val cancelButtonTextColor: Long? = null +) + { companion object { fun fromList(pigeonVar_list: List): TermsAndConditionsUIParamsDto { val backgroundColor = pigeonVar_list[0] as Long? @@ -2414,16 +2417,9 @@ data class TermsAndConditionsUIParamsDto( val mainTextColor = pigeonVar_list[2] as Long? val acceptButtonTextColor = pigeonVar_list[3] as Long? val cancelButtonTextColor = pigeonVar_list[4] as Long? - return TermsAndConditionsUIParamsDto( - backgroundColor, - titleColor, - mainTextColor, - acceptButtonTextColor, - cancelButtonTextColor, - ) + return TermsAndConditionsUIParamsDto(backgroundColor, titleColor, mainTextColor, acceptButtonTextColor, cancelButtonTextColor) } } - fun toList(): List { return listOf( backgroundColor, @@ -2433,7 +2429,6 @@ data class TermsAndConditionsUIParamsDto( cancelButtonTextColor, ) } - override fun equals(other: Any?): Boolean { if (other !is TermsAndConditionsUIParamsDto) { return false @@ -2441,8 +2436,7 @@ data class TermsAndConditionsUIParamsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } @@ -2452,14 +2446,19 @@ data class TermsAndConditionsUIParamsDto( * * Generated class from Pigeon that represents data sent in messages. */ -data class StepImageGenerationOptionsDto( +data class StepImageGenerationOptionsDto ( /** - * Whether to generate maneuver images for navigation steps. Defaults to false if not specified. + * Whether to generate maneuver images for navigation steps. + * Defaults to false if not specified. */ val generateManeuverImages: Boolean? = null, - /** Whether to generate lane images for navigation steps. Defaults to false if not specified. */ - val generateLaneImages: Boolean? = null, -) { + /** + * Whether to generate lane images for navigation steps. + * Defaults to false if not specified. + */ + val generateLaneImages: Boolean? = null +) + { companion object { fun fromList(pigeonVar_list: List): StepImageGenerationOptionsDto { val generateManeuverImages = pigeonVar_list[0] as Boolean? @@ -2467,11 +2466,12 @@ data class StepImageGenerationOptionsDto( return StepImageGenerationOptionsDto(generateManeuverImages, generateLaneImages) } } - fun toList(): List { - return listOf(generateManeuverImages, generateLaneImages) + return listOf( + generateManeuverImages, + generateLaneImages, + ) } - override fun equals(other: Any?): Boolean { if (other !is StepImageGenerationOptionsDto) { return false @@ -2479,17 +2479,17 @@ data class StepImageGenerationOptionsDto( if (this === other) { return true } - return MessagesPigeonUtils.deepEquals(toList(), other.toList()) - } + return MessagesPigeonUtils.deepEquals(toList(), other.toList()) } override fun hashCode(): Int = toList().hashCode() } - private open class messagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapViewTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapViewTypeDto.ofRaw(it.toInt()) + } } 130.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2497,55 +2497,89 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapTypeDto.ofRaw(it.toInt()) + } } 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { MapColorSchemeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MapColorSchemeDto.ofRaw(it.toInt()) + } } 133.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavigationForceNightModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavigationForceNightModeDto.ofRaw(it.toInt()) + } } 134.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraPerspectiveDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraPerspectiveDto.ofRaw(it.toInt()) + } } 135.toByte() -> { - return (readValue(buffer) as Long?)?.let { RegisteredImageTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RegisteredImageTypeDto.ofRaw(it.toInt()) + } } 136.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerEventTypeDto.ofRaw(it.toInt()) + } } 137.toByte() -> { - return (readValue(buffer) as Long?)?.let { MarkerDragEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + MarkerDragEventTypeDto.ofRaw(it.toInt()) + } } 138.toByte() -> { - return (readValue(buffer) as Long?)?.let { StrokeJointTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + StrokeJointTypeDto.ofRaw(it.toInt()) + } } 139.toByte() -> { - return (readValue(buffer) as Long?)?.let { PatternTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + PatternTypeDto.ofRaw(it.toInt()) + } } 140.toByte() -> { - return (readValue(buffer) as Long?)?.let { CameraEventTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + CameraEventTypeDto.ofRaw(it.toInt()) + } } 141.toByte() -> { - return (readValue(buffer) as Long?)?.let { AlternateRoutesStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AlternateRoutesStrategyDto.ofRaw(it.toInt()) + } } 142.toByte() -> { - return (readValue(buffer) as Long?)?.let { RoutingStrategyDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RoutingStrategyDto.ofRaw(it.toInt()) + } } 143.toByte() -> { - return (readValue(buffer) as Long?)?.let { TravelModeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TravelModeDto.ofRaw(it.toInt()) + } } 144.toByte() -> { - return (readValue(buffer) as Long?)?.let { RouteStatusDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + RouteStatusDto.ofRaw(it.toInt()) + } } 145.toByte() -> { - return (readValue(buffer) as Long?)?.let { TrafficDelaySeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TrafficDelaySeverityDto.ofRaw(it.toInt()) + } } 146.toByte() -> { - return (readValue(buffer) as Long?)?.let { AudioGuidanceTypeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + AudioGuidanceTypeDto.ofRaw(it.toInt()) + } } 147.toByte() -> { - return (readValue(buffer) as Long?)?.let { SpeedAlertSeverityDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + SpeedAlertSeverityDto.ofRaw(it.toInt()) + } } 148.toByte() -> { return (readValue(buffer) as Long?)?.let { @@ -2558,165 +2592,256 @@ private open class messagesPigeonCodec : StandardMessageCodec() { } } 150.toByte() -> { - return (readValue(buffer) as Long?)?.let { ManeuverDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + ManeuverDto.ofRaw(it.toInt()) + } } 151.toByte() -> { - return (readValue(buffer) as Long?)?.let { DrivingSideDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + DrivingSideDto.ofRaw(it.toInt()) + } } 152.toByte() -> { - return (readValue(buffer) as Long?)?.let { NavStateDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + NavStateDto.ofRaw(it.toInt()) + } } 153.toByte() -> { - return (readValue(buffer) as Long?)?.let { LaneShapeDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + LaneShapeDto.ofRaw(it.toInt()) + } } 154.toByte() -> { - return (readValue(buffer) as Long?)?.let { TaskRemovedBehaviorDto.ofRaw(it.toInt()) } + return (readValue(buffer) as Long?)?.let { + TaskRemovedBehaviorDto.ofRaw(it.toInt()) + } } 155.toByte() -> { - return (readValue(buffer) as? List)?.let { MapOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + AutoMapOptionsDto.fromList(it) + } } 156.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationViewOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapOptionsDto.fromList(it) + } } 157.toByte() -> { - return (readValue(buffer) as? List)?.let { ViewCreationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationViewOptionsDto.fromList(it) + } } 158.toByte() -> { - return (readValue(buffer) as? List)?.let { CameraPositionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ViewCreationOptionsDto.fromList(it) + } } 159.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CameraPositionDto.fromList(it) + } } 160.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerDto.fromList(it) + } } 161.toByte() -> { - return (readValue(buffer) as? List)?.let { ImageDescriptorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerOptionsDto.fromList(it) + } } 162.toByte() -> { - return (readValue(buffer) as? List)?.let { InfoWindowDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ImageDescriptorDto.fromList(it) + } } 163.toByte() -> { - return (readValue(buffer) as? List)?.let { MarkerAnchorDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + InfoWindowDto.fromList(it) + } } 164.toByte() -> { - return (readValue(buffer) as? List)?.let { PointOfInterestDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MarkerAnchorDto.fromList(it) + } } 165.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PointOfInterestDto.fromList(it) + } } 166.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonDto.fromList(it) + } } 167.toByte() -> { - return (readValue(buffer) as? List)?.let { PolygonHoleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonOptionsDto.fromList(it) + } } 168.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanStrokeStyleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolygonHoleDto.fromList(it) + } } 169.toByte() -> { - return (readValue(buffer) as? List)?.let { StyleSpanDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanStrokeStyleDto.fromList(it) + } } 170.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StyleSpanDto.fromList(it) + } } 171.toByte() -> { - return (readValue(buffer) as? List)?.let { PatternItemDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineDto.fromList(it) + } } 172.toByte() -> { - return (readValue(buffer) as? List)?.let { PolylineOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PatternItemDto.fromList(it) + } } 173.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + PolylineOptionsDto.fromList(it) + } } 174.toByte() -> { - return (readValue(buffer) as? List)?.let { CircleOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleDto.fromList(it) + } } 175.toByte() -> { - return (readValue(buffer) as? List)?.let { MapPaddingDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + CircleOptionsDto.fromList(it) + } } 176.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteTokenOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + MapPaddingDto.fromList(it) + } } 177.toByte() -> { - return (readValue(buffer) as? List)?.let { DestinationsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteTokenOptionsDto.fromList(it) + } } 178.toByte() -> { - return (readValue(buffer) as? List)?.let { RoutingOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + DestinationsDto.fromList(it) + } } 179.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationDisplayOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RoutingOptionsDto.fromList(it) + } } 180.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationWaypointDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationDisplayOptionsDto.fromList(it) + } } 181.toByte() -> { return (readValue(buffer) as? List)?.let { - ContinueToNextDestinationResponseDto.fromList(it) + NavigationWaypointDto.fromList(it) } } 182.toByte() -> { - return (readValue(buffer) as? List)?.let { NavigationTimeAndDistanceDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + ContinueToNextDestinationResponseDto.fromList(it) + } } 183.toByte() -> { return (readValue(buffer) as? List)?.let { - NavigationAudioGuidanceSettingsDto.fromList(it) + NavigationTimeAndDistanceDto.fromList(it) } } 184.toByte() -> { - return (readValue(buffer) as? List)?.let { SimulationOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + NavigationAudioGuidanceSettingsDto.fromList(it) + } } 185.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SimulationOptionsDto.fromList(it) + } } 186.toByte() -> { - return (readValue(buffer) as? List)?.let { LatLngBoundsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngDto.fromList(it) + } } 187.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedingUpdatedEventDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LatLngBoundsDto.fromList(it) + } } 188.toByte() -> { return (readValue(buffer) as? List)?.let { - GpsAvailabilityChangeEventDto.fromList(it) + SpeedingUpdatedEventDto.fromList(it) } } 189.toByte() -> { return (readValue(buffer) as? List)?.let { - SpeedAlertOptionsThresholdPercentageDto.fromList(it) + GpsAvailabilityChangeEventDto.fromList(it) } } 190.toByte() -> { - return (readValue(buffer) as? List)?.let { SpeedAlertOptionsDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + SpeedAlertOptionsThresholdPercentageDto.fromList(it) + } } 191.toByte() -> { return (readValue(buffer) as? List)?.let { - RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(it) + SpeedAlertOptionsDto.fromList(it) } } 192.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentTrafficDataDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList(it) + } } 193.toByte() -> { - return (readValue(buffer) as? List)?.let { RouteSegmentDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentTrafficDataDto.fromList(it) + } } 194.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDirectionDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + RouteSegmentDto.fromList(it) + } } 195.toByte() -> { - return (readValue(buffer) as? List)?.let { LaneDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDirectionDto.fromList(it) + } } 196.toByte() -> { - return (readValue(buffer) as? List)?.let { StepInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + LaneDto.fromList(it) + } } 197.toByte() -> { - return (readValue(buffer) as? List)?.let { NavInfoDto.fromList(it) } + return (readValue(buffer) as? List)?.let { + StepInfoDto.fromList(it) + } } 198.toByte() -> { return (readValue(buffer) as? List)?.let { - TermsAndConditionsUIParamsDto.fromList(it) + NavInfoDto.fromList(it) } } 199.toByte() -> { + return (readValue(buffer) as? List)?.let { + TermsAndConditionsUIParamsDto.fromList(it) + } + } + 200.toByte() -> { return (readValue(buffer) as? List)?.let { StepImageGenerationOptionsDto.fromList(it) } @@ -2724,8 +2849,7 @@ private open class messagesPigeonCodec : StandardMessageCodec() { else -> super.readValueOfType(type, buffer) } } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { is MapViewTypeDto -> { stream.write(129) @@ -2831,195 +2955,201 @@ private open class messagesPigeonCodec : StandardMessageCodec() { stream.write(154) writeValue(stream, value.raw) } - is MapOptionsDto -> { + is AutoMapOptionsDto -> { stream.write(155) writeValue(stream, value.toList()) } - is NavigationViewOptionsDto -> { + is MapOptionsDto -> { stream.write(156) writeValue(stream, value.toList()) } - is ViewCreationOptionsDto -> { + is NavigationViewOptionsDto -> { stream.write(157) writeValue(stream, value.toList()) } - is CameraPositionDto -> { + is ViewCreationOptionsDto -> { stream.write(158) writeValue(stream, value.toList()) } - is MarkerDto -> { + is CameraPositionDto -> { stream.write(159) writeValue(stream, value.toList()) } - is MarkerOptionsDto -> { + is MarkerDto -> { stream.write(160) writeValue(stream, value.toList()) } - is ImageDescriptorDto -> { + is MarkerOptionsDto -> { stream.write(161) writeValue(stream, value.toList()) } - is InfoWindowDto -> { + is ImageDescriptorDto -> { stream.write(162) writeValue(stream, value.toList()) } - is MarkerAnchorDto -> { + is InfoWindowDto -> { stream.write(163) writeValue(stream, value.toList()) } - is PointOfInterestDto -> { + is MarkerAnchorDto -> { stream.write(164) writeValue(stream, value.toList()) } - is PolygonDto -> { + is PointOfInterestDto -> { stream.write(165) writeValue(stream, value.toList()) } - is PolygonOptionsDto -> { + is PolygonDto -> { stream.write(166) writeValue(stream, value.toList()) } - is PolygonHoleDto -> { + is PolygonOptionsDto -> { stream.write(167) writeValue(stream, value.toList()) } - is StyleSpanStrokeStyleDto -> { + is PolygonHoleDto -> { stream.write(168) writeValue(stream, value.toList()) } - is StyleSpanDto -> { + is StyleSpanStrokeStyleDto -> { stream.write(169) writeValue(stream, value.toList()) } - is PolylineDto -> { + is StyleSpanDto -> { stream.write(170) writeValue(stream, value.toList()) } - is PatternItemDto -> { + is PolylineDto -> { stream.write(171) writeValue(stream, value.toList()) } - is PolylineOptionsDto -> { + is PatternItemDto -> { stream.write(172) writeValue(stream, value.toList()) } - is CircleDto -> { + is PolylineOptionsDto -> { stream.write(173) writeValue(stream, value.toList()) } - is CircleOptionsDto -> { + is CircleDto -> { stream.write(174) writeValue(stream, value.toList()) } - is MapPaddingDto -> { + is CircleOptionsDto -> { stream.write(175) writeValue(stream, value.toList()) } - is RouteTokenOptionsDto -> { + is MapPaddingDto -> { stream.write(176) writeValue(stream, value.toList()) } - is DestinationsDto -> { + is RouteTokenOptionsDto -> { stream.write(177) writeValue(stream, value.toList()) } - is RoutingOptionsDto -> { + is DestinationsDto -> { stream.write(178) writeValue(stream, value.toList()) } - is NavigationDisplayOptionsDto -> { + is RoutingOptionsDto -> { stream.write(179) writeValue(stream, value.toList()) } - is NavigationWaypointDto -> { + is NavigationDisplayOptionsDto -> { stream.write(180) writeValue(stream, value.toList()) } - is ContinueToNextDestinationResponseDto -> { + is NavigationWaypointDto -> { stream.write(181) writeValue(stream, value.toList()) } - is NavigationTimeAndDistanceDto -> { + is ContinueToNextDestinationResponseDto -> { stream.write(182) writeValue(stream, value.toList()) } - is NavigationAudioGuidanceSettingsDto -> { + is NavigationTimeAndDistanceDto -> { stream.write(183) writeValue(stream, value.toList()) } - is SimulationOptionsDto -> { + is NavigationAudioGuidanceSettingsDto -> { stream.write(184) writeValue(stream, value.toList()) } - is LatLngDto -> { + is SimulationOptionsDto -> { stream.write(185) writeValue(stream, value.toList()) } - is LatLngBoundsDto -> { + is LatLngDto -> { stream.write(186) writeValue(stream, value.toList()) } - is SpeedingUpdatedEventDto -> { + is LatLngBoundsDto -> { stream.write(187) writeValue(stream, value.toList()) } - is GpsAvailabilityChangeEventDto -> { + is SpeedingUpdatedEventDto -> { stream.write(188) writeValue(stream, value.toList()) } - is SpeedAlertOptionsThresholdPercentageDto -> { + is GpsAvailabilityChangeEventDto -> { stream.write(189) writeValue(stream, value.toList()) } - is SpeedAlertOptionsDto -> { + is SpeedAlertOptionsThresholdPercentageDto -> { stream.write(190) writeValue(stream, value.toList()) } - is RouteSegmentTrafficDataRoadStretchRenderingDataDto -> { + is SpeedAlertOptionsDto -> { stream.write(191) writeValue(stream, value.toList()) } - is RouteSegmentTrafficDataDto -> { + is RouteSegmentTrafficDataRoadStretchRenderingDataDto -> { stream.write(192) writeValue(stream, value.toList()) } - is RouteSegmentDto -> { + is RouteSegmentTrafficDataDto -> { stream.write(193) writeValue(stream, value.toList()) } - is LaneDirectionDto -> { + is RouteSegmentDto -> { stream.write(194) writeValue(stream, value.toList()) } - is LaneDto -> { + is LaneDirectionDto -> { stream.write(195) writeValue(stream, value.toList()) } - is StepInfoDto -> { + is LaneDto -> { stream.write(196) writeValue(stream, value.toList()) } - is NavInfoDto -> { + is StepInfoDto -> { stream.write(197) writeValue(stream, value.toList()) } - is TermsAndConditionsUIParamsDto -> { + is NavInfoDto -> { stream.write(198) writeValue(stream, value.toList()) } - is StepImageGenerationOptionsDto -> { + is TermsAndConditionsUIParamsDto -> { stream.write(199) writeValue(stream, value.toList()) } + is StepImageGenerationOptionsDto -> { + stream.write(200) + writeValue(stream, value.toList()) + } else -> super.writeValue(stream, value) } } } + /** - * Dummy interface to force generation of the platform view creation params. Pigeon only generates - * messages if the messages are used in API. [ViewCreationOptionsDto] is encoded and decoded - * directly to generate a PlatformView creation message. + * Dummy interface to force generation of the platform view creation params. + * Pigeon only generates messages if the messages are used in API. + * [ViewCreationOptionsDto] is encoded and decoded directly to generate a + * PlatformView creation message. * * This API should never be used directly. * @@ -3030,37 +3160,25 @@ interface ViewCreationApi { companion object { /** The codec used by ViewCreationApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ViewCreationApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ViewCreationApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ViewCreationApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ViewCreationApi.create$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val msgArg = args[0] as ViewCreationOptionsDto - val wrapped: List = - try { - api.create(msgArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.create(msgArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3070,277 +3188,124 @@ interface ViewCreationApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface MapViewApi { fun awaitMapReady(viewId: Long, callback: (Result) -> Unit) - fun isMyLocationEnabled(viewId: Long): Boolean - fun setMyLocationEnabled(viewId: Long, enabled: Boolean) - fun getMyLocation(viewId: Long): LatLngDto? - fun getMapType(viewId: Long): MapTypeDto - fun setMapType(viewId: Long, mapType: MapTypeDto) - fun setMapStyle(viewId: Long, styleJson: String) - fun isNavigationTripProgressBarEnabled(viewId: Long): Boolean - fun setNavigationTripProgressBarEnabled(viewId: Long, enabled: Boolean) - fun isNavigationHeaderEnabled(viewId: Long): Boolean - fun setNavigationHeaderEnabled(viewId: Long, enabled: Boolean) - fun isNavigationFooterEnabled(viewId: Long): Boolean - fun setNavigationFooterEnabled(viewId: Long, enabled: Boolean) - fun isRecenterButtonEnabled(viewId: Long): Boolean - fun setRecenterButtonEnabled(viewId: Long, enabled: Boolean) - fun isSpeedLimitIconEnabled(viewId: Long): Boolean - fun setSpeedLimitIconEnabled(viewId: Long, enabled: Boolean) - fun isSpeedometerEnabled(viewId: Long): Boolean - fun setSpeedometerEnabled(viewId: Long, enabled: Boolean) - fun isNavigationUIEnabled(viewId: Long): Boolean - fun setNavigationUIEnabled(viewId: Long, enabled: Boolean) - fun isMyLocationButtonEnabled(viewId: Long): Boolean - fun setMyLocationButtonEnabled(viewId: Long, enabled: Boolean) - fun isConsumeMyLocationButtonClickEventsEnabled(viewId: Long): Boolean - fun setConsumeMyLocationButtonClickEventsEnabled(viewId: Long, enabled: Boolean) - fun isZoomGesturesEnabled(viewId: Long): Boolean - fun setZoomGesturesEnabled(viewId: Long, enabled: Boolean) - fun isZoomControlsEnabled(viewId: Long): Boolean - fun setZoomControlsEnabled(viewId: Long, enabled: Boolean) - fun isCompassEnabled(viewId: Long): Boolean - fun setCompassEnabled(viewId: Long, enabled: Boolean) - fun isRotateGesturesEnabled(viewId: Long): Boolean - fun setRotateGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabled(viewId: Long): Boolean - fun setScrollGesturesEnabled(viewId: Long, enabled: Boolean) - fun isScrollGesturesEnabledDuringRotateOrZoom(viewId: Long): Boolean - fun setScrollGesturesDuringRotateOrZoomEnabled(viewId: Long, enabled: Boolean) - fun isTiltGesturesEnabled(viewId: Long): Boolean - fun setTiltGesturesEnabled(viewId: Long, enabled: Boolean) - fun isMapToolbarEnabled(viewId: Long): Boolean - fun setMapToolbarEnabled(viewId: Long, enabled: Boolean) - fun isTrafficEnabled(viewId: Long): Boolean - fun setTrafficEnabled(viewId: Long, enabled: Boolean) - fun isTrafficIncidentCardsEnabled(viewId: Long): Boolean - fun setTrafficIncidentCardsEnabled(viewId: Long, enabled: Boolean) - fun isTrafficPromptsEnabled(viewId: Long): Boolean - fun setTrafficPromptsEnabled(viewId: Long, enabled: Boolean) - fun isReportIncidentButtonEnabled(viewId: Long): Boolean - fun setReportIncidentButtonEnabled(viewId: Long, enabled: Boolean) - fun isIncidentReportingAvailable(viewId: Long): Boolean - fun showReportIncidentsPanel(viewId: Long) - fun isBuildingsEnabled(viewId: Long): Boolean - fun setBuildingsEnabled(viewId: Long, enabled: Boolean) - fun getCameraPosition(viewId: Long): CameraPositionDto - fun getVisibleRegion(viewId: Long): LatLngBoundsDto - fun followMyLocation(viewId: Long, perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - viewId: Long, - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLng( - viewId: Long, - point: LatLngDto, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngBounds( - viewId: Long, - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - viewId: Long, - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - viewId: Long, - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - viewId: Long, - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToZoom( - viewId: Long, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLng(viewId: Long, point: LatLngDto, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToZoom(viewId: Long, zoom: Double, duration: Long?, callback: (Result) -> Unit) fun moveCameraToCameraPosition(viewId: Long, cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(viewId: Long, point: LatLngDto) - fun moveCameraToLatLngBounds(viewId: Long, bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(viewId: Long, point: LatLngDto, zoom: Double) - fun moveCameraByScroll(viewId: Long, scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(viewId: Long, zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(viewId: Long, zoom: Double) - fun showRouteOverview(viewId: Long) - fun getMinZoomPreference(viewId: Long): Double - fun getMaxZoomPreference(viewId: Long): Double - fun resetMinMaxZoomPreference(viewId: Long) - fun setMinZoomPreference(viewId: Long, minZoomPreference: Double) - fun setMaxZoomPreference(viewId: Long, maxZoomPreference: Double) - fun getMarkers(viewId: Long): List - fun addMarkers(viewId: Long, markers: List): List - fun updateMarkers(viewId: Long, markers: List): List - fun removeMarkers(viewId: Long, markers: List) - fun clearMarkers(viewId: Long) - fun clear(viewId: Long) - fun getPolygons(viewId: Long): List - fun addPolygons(viewId: Long, polygons: List): List - fun updatePolygons(viewId: Long, polygons: List): List - fun removePolygons(viewId: Long, polygons: List) - fun clearPolygons(viewId: Long) - fun getPolylines(viewId: Long): List - fun addPolylines(viewId: Long, polylines: List): List - fun updatePolylines(viewId: Long, polylines: List): List - fun removePolylines(viewId: Long, polylines: List) - fun clearPolylines(viewId: Long) - fun getCircles(viewId: Long): List - fun addCircles(viewId: Long, circles: List): List - fun updateCircles(viewId: Long, circles: List): List - fun removeCircles(viewId: Long, circles: List) - fun clearCircles(viewId: Long) - fun enableOnCameraChangedEvents(viewId: Long) - fun setPadding(viewId: Long, padding: MapPaddingDto) - fun getPadding(viewId: Long): MapPaddingDto - fun getMapColorScheme(viewId: Long): MapColorSchemeDto - fun setMapColorScheme(viewId: Long, mapColorScheme: MapColorSchemeDto) - fun getForceNightMode(viewId: Long): NavigationForceNightModeDto - fun setForceNightMode(viewId: Long, forceNightMode: NavigationForceNightModeDto) companion object { /** The codec used by MapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `MapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: MapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: MapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.awaitMapReady$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -3359,22 +3324,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3382,24 +3341,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3407,22 +3360,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMyLocation(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3430,22 +3377,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapType(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3453,24 +3394,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapTypeArg = args[1] as MapTypeDto - val wrapped: List = - try { - api.setMapType(viewIdArg, mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(viewIdArg, mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3478,24 +3413,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val styleJsonArg = args[1] as String - val wrapped: List = - try { - api.setMapStyle(viewIdArg, styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(viewIdArg, styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3503,22 +3432,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3526,24 +3449,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3551,22 +3468,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationHeaderEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationHeaderEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3574,24 +3485,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationHeaderEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationHeaderEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationHeaderEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3599,22 +3504,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationFooterEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationFooterEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationFooterEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3622,24 +3521,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationFooterEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationFooterEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationFooterEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3647,22 +3540,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRecenterButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRecenterButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3670,24 +3557,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRecenterButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRecenterButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRecenterButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3695,22 +3576,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedLimitIconEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3718,24 +3593,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedLimitIconEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3743,22 +3612,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isSpeedometerEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isSpeedometerEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3766,24 +3629,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setSpeedometerEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedometerEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3791,22 +3648,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isNavigationUIEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isNavigationUIEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3814,24 +3665,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setNavigationUIEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setNavigationUIEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setNavigationUIEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3839,22 +3684,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3862,24 +3701,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3887,22 +3720,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3910,24 +3737,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3935,22 +3756,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3958,24 +3773,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -3983,22 +3792,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4006,24 +3809,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4031,22 +3828,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isCompassEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4054,24 +3845,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4079,22 +3864,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4102,24 +3881,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4127,22 +3900,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4150,24 +3917,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4175,22 +3936,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4198,24 +3953,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4223,22 +3972,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4246,24 +3989,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4271,22 +4008,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4294,24 +4025,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4319,22 +4044,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4342,24 +4061,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4367,22 +4080,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4390,24 +4097,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4415,22 +4116,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isTrafficPromptsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4438,24 +4133,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setTrafficPromptsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficPromptsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4463,22 +4152,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isReportIncidentButtonEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isReportIncidentButtonEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4486,24 +4169,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setReportIncidentButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setReportIncidentButtonEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4511,22 +4188,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isIncidentReportingAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isIncidentReportingAvailable(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isIncidentReportingAvailable(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4534,23 +4205,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showReportIncidentsPanel$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showReportIncidentsPanel(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showReportIncidentsPanel(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4558,22 +4223,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.isBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isBuildingsEnabled(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isBuildingsEnabled(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4581,24 +4240,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setBuildingsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val enabledArg = args[1] as Boolean - val wrapped: List = - try { - api.setBuildingsEnabled(viewIdArg, enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setBuildingsEnabled(viewIdArg, enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4606,22 +4259,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCameraPosition(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4629,22 +4276,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getVisibleRegion(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4652,25 +4293,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val perspectiveArg = args[1] as CameraPerspectiveDto val zoomLevelArg = args[2] as Double? - val wrapped: List = - try { - api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(viewIdArg, perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4678,20 +4313,14 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto val durationArg = args[2] as Long? - api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(viewIdArg, cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4706,12 +4335,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4733,12 +4357,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4746,8 +4365,7 @@ interface MapViewApi { val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4762,12 +4380,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4775,8 +4388,7 @@ interface MapViewApi { val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { - result: Result -> + api.animateCameraToLatLngZoom(viewIdArg, pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4791,12 +4403,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4804,8 +4411,7 @@ interface MapViewApi { val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double val durationArg = args[3] as Long? - api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4820,12 +4426,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4834,8 +4435,7 @@ interface MapViewApi { val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? val durationArg = args[4] as Long? - api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -4850,12 +4450,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -4877,24 +4472,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val cameraPositionArg = args[1] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(viewIdArg, cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4902,24 +4491,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(viewIdArg, pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(viewIdArg, pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4927,25 +4510,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val boundsArg = args[1] as LatLngBoundsDto val paddingArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(viewIdArg, boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4953,25 +4530,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val pointArg = args[1] as LatLngDto val zoomArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(viewIdArg, pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -4979,25 +4550,19 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val scrollByDxArg = args[1] as Double val scrollByDyArg = args[2] as Double - val wrapped: List = - try { - api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(viewIdArg, scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5005,12 +4570,7 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5018,13 +4578,12 @@ interface MapViewApi { val zoomByArg = args[1] as Double val focusDxArg = args[2] as Double? val focusDyArg = args[3] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(viewIdArg, zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5032,24 +4591,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToZoom(viewIdArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(viewIdArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5057,23 +4610,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.showRouteOverview(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.showRouteOverview(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5081,22 +4628,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMinZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5104,22 +4645,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMaxZoomPreference(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5127,23 +4662,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.resetMinMaxZoomPreference(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5151,24 +4680,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val minZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(viewIdArg, minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5176,24 +4699,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val maxZoomPreferenceArg = args[1] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(viewIdArg, maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5201,22 +4718,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMarkers(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMarkers(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5224,23 +4735,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.addMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5248,23 +4753,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateMarkers(viewIdArg, markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(viewIdArg, markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5272,24 +4771,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val markersArg = args[1] as List - val wrapped: List = - try { - api.removeMarkers(viewIdArg, markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(viewIdArg, markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5297,23 +4790,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearMarkers(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5321,23 +4808,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clear(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5345,22 +4826,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolygons(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5368,23 +4843,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5392,23 +4861,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolygons(viewIdArg, polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(viewIdArg, polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5416,24 +4879,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polygonsArg = args[1] as List - val wrapped: List = - try { - api.removePolygons(viewIdArg, polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(viewIdArg, polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5441,23 +4898,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolygons(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5465,22 +4916,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPolylines(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5488,23 +4933,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addPolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5512,23 +4951,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updatePolylines(viewIdArg, polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(viewIdArg, polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5536,24 +4969,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val polylinesArg = args[1] as List - val wrapped: List = - try { - api.removePolylines(viewIdArg, polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(viewIdArg, polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5561,23 +4988,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearPolylines(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5585,22 +5006,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getCircles(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5608,23 +5023,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.addCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5632,23 +5041,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - listOf(api.updateCircles(viewIdArg, circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(viewIdArg, circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5656,24 +5059,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val circlesArg = args[1] as List - val wrapped: List = - try { - api.removeCircles(viewIdArg, circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(viewIdArg, circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5681,23 +5078,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.clearCircles(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5705,23 +5096,17 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - api.enableOnCameraChangedEvents(viewIdArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents(viewIdArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5729,24 +5114,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val paddingArg = args[1] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(viewIdArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(viewIdArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5754,22 +5133,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getPadding(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5777,22 +5150,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getMapColorScheme(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapColorScheme(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5800,24 +5167,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val mapColorSchemeArg = args[1] as MapColorSchemeDto - val wrapped: List = - try { - api.setMapColorScheme(viewIdArg, mapColorSchemeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapColorScheme(viewIdArg, mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5825,22 +5186,16 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.getForceNightMode(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getForceNightMode(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5848,24 +5203,18 @@ interface MapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.MapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long val forceNightModeArg = args[1] as NavigationForceNightModeDto - val wrapped: List = - try { - api.setForceNightMode(viewIdArg, forceNightModeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setForceNightMode(viewIdArg, forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5875,47 +5224,25 @@ interface MapViewApi { } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface ImageRegistryApi { - fun registerBitmapImage( - imageId: String, - bytes: ByteArray, - imagePixelRatio: Double, - width: Double?, - height: Double?, - ): ImageDescriptorDto - + fun registerBitmapImage(imageId: String, bytes: ByteArray, imagePixelRatio: Double, width: Double?, height: Double?): ImageDescriptorDto fun unregisterImage(imageDescriptor: ImageDescriptorDto) - fun getRegisteredImages(): List - fun clearRegisteredImages(filter: RegisteredImageTypeDto?) - fun getRegisteredImageData(imageDescriptor: ImageDescriptorDto): ByteArray? companion object { /** The codec used by ImageRegistryApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `ImageRegistryApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: ImageRegistryApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: ImageRegistryApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.registerBitmapImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -5924,20 +5251,11 @@ interface ImageRegistryApi { val imagePixelRatioArg = args[2] as Double val widthArg = args[3] as Double? val heightArg = args[4] as Double? - val wrapped: List = - try { - listOf( - api.registerBitmapImage( - imageIdArg, - bytesArg, - imagePixelRatioArg, - widthArg, - heightArg, - ) - ) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.registerBitmapImage(imageIdArg, bytesArg, imagePixelRatioArg, widthArg, heightArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5945,23 +5263,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.unregisterImage$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - api.unregisterImage(imageDescriptorArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.unregisterImage(imageDescriptorArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5969,20 +5281,14 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRegisteredImages()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImages()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -5990,23 +5296,17 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.clearRegisteredImages$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val filterArg = args[0] as RegisteredImageTypeDto? - val wrapped: List = - try { - api.clearRegisteredImages(filterArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearRegisteredImages(filterArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6014,22 +5314,16 @@ interface ImageRegistryApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.ImageRegistryApi.getRegisteredImageData$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val imageDescriptorArg = args[0] as ImageDescriptorDto - val wrapped: List = - try { - listOf(api.getRegisteredImageData(imageDescriptorArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRegisteredImageData(imageDescriptorArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6039,22 +5333,18 @@ interface ImageRegistryApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class ViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class ViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by ViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" + fun onMapClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6065,15 +5355,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" + fun onMapLongClickEvent(viewIdArg: Long, latLngArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMapLongClickEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, latLngArg)) { if (it is List<*>) { @@ -6084,15 +5372,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" + fun onRecenterButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onRecenterButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6103,20 +5389,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMarkerEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerEventTypeDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" + fun onMarkerEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerEventTypeDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg)) { if (it is List<*>) { @@ -6127,21 +5406,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMarkerDragEvent( - viewIdArg: Long, - markerIdArg: String, - eventTypeArg: MarkerDragEventTypeDto, - positionArg: LatLngDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" + fun onMarkerDragEvent(viewIdArg: Long, markerIdArg: String, eventTypeArg: MarkerDragEventTypeDto, positionArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMarkerDragEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, markerIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6152,15 +5423,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" + fun onPolygonClicked(viewIdArg: Long, polygonIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolygonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polygonIdArg)) { if (it is List<*>) { @@ -6171,15 +5440,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" + fun onPolylineClicked(viewIdArg: Long, polylineIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPolylineClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, polylineIdArg)) { if (it is List<*>) { @@ -6190,15 +5457,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" + fun onCircleClicked(viewIdArg: Long, circleIdArg: String, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCircleClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, circleIdArg)) { if (it is List<*>) { @@ -6209,19 +5474,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPoiClick( - viewIdArg: Long, - pointOfInterestArg: PointOfInterestDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" + fun onPoiClick(viewIdArg: Long, pointOfInterestArg: PointOfInterestDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPoiClick$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, pointOfInterestArg)) { if (it is List<*>) { @@ -6232,19 +5491,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onNavigationUIEnabledChanged( - viewIdArg: Long, - navigationUIEnabledArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" + fun onNavigationUIEnabledChanged(viewIdArg: Long, navigationUIEnabledArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onNavigationUIEnabledChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, navigationUIEnabledArg)) { if (it is List<*>) { @@ -6255,19 +5508,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onPromptVisibilityChanged( - viewIdArg: Long, - promptVisibleArg: Boolean, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + fun onPromptVisibilityChanged(viewIdArg: Long, promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, promptVisibleArg)) { if (it is List<*>) { @@ -6278,15 +5525,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" + fun onMyLocationClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6297,15 +5542,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" + fun onMyLocationButtonClicked(viewIdArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onMyLocationButtonClicked$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg)) { if (it is List<*>) { @@ -6316,20 +5559,13 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onCameraChanged( - viewIdArg: Long, - eventTypeArg: CameraEventTypeDto, - positionArg: CameraPositionDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" + fun onCameraChanged(viewIdArg: Long, eventTypeArg: CameraEventTypeDto, positionArg: CameraPositionDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.ViewEventApi.onCameraChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(viewIdArg, eventTypeArg, positionArg)) { if (it is List<*>) { @@ -6340,140 +5576,65 @@ class ViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationSessionApi { - fun createNavigationSession( - abnormalTerminationReportingEnabled: Boolean, - behavior: TaskRemovedBehaviorDto, - callback: (Result) -> Unit, - ) - + fun createNavigationSession(abnormalTerminationReportingEnabled: Boolean, behavior: TaskRemovedBehaviorDto, callback: (Result) -> Unit) fun isInitialized(): Boolean - fun cleanup(resetSession: Boolean) - - fun showTermsAndConditionsDialog( - title: String, - companyName: String, - shouldOnlyShowDriverAwarenessDisclaimer: Boolean, - uiParams: TermsAndConditionsUIParamsDto?, - callback: (Result) -> Unit, - ) - + fun showTermsAndConditionsDialog(title: String, companyName: String, shouldOnlyShowDriverAwarenessDisclaimer: Boolean, uiParams: TermsAndConditionsUIParamsDto?, callback: (Result) -> Unit) fun areTermsAccepted(): Boolean - fun resetTermsAccepted() - fun getNavSDKVersion(): String - fun isGuidanceRunning(): Boolean - fun startGuidance() - fun stopGuidance() - fun setDestinations(destinations: DestinationsDto, callback: (Result) -> Unit) - fun clearDestinations() - fun continueToNextDestination(callback: (Result) -> Unit) - fun getCurrentTimeAndDistance(): NavigationTimeAndDistanceDto - fun setAudioGuidance(settings: NavigationAudioGuidanceSettingsDto) - fun setSpeedAlertOptions(options: SpeedAlertOptionsDto) - fun getRouteSegments(): List - fun getTraveledRoute(): List - fun getCurrentRouteSegment(): RouteSegmentDto? - fun setUserLocation(location: LatLngDto) - fun removeUserLocation() - fun simulateLocationsAlongExistingRoute() - fun simulateLocationsAlongExistingRouteWithOptions(options: SimulationOptionsDto) - - fun simulateLocationsAlongNewRoute( - waypoints: List, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - callback: (Result) -> Unit, - ) - - fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypoints: List, - routingOptions: RoutingOptionsDto, - simulationOptions: SimulationOptionsDto, - callback: (Result) -> Unit, - ) - + fun simulateLocationsAlongNewRoute(waypoints: List, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingOptions(waypoints: List, routingOptions: RoutingOptionsDto, callback: (Result) -> Unit) + fun simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypoints: List, routingOptions: RoutingOptionsDto, simulationOptions: SimulationOptionsDto, callback: (Result) -> Unit) fun pauseSimulation() - fun resumeSimulation() - /** iOS-only method. */ fun allowBackgroundLocationUpdates(allow: Boolean) - fun enableRoadSnappedLocationUpdates() - fun disableRoadSnappedLocationUpdates() - - fun enableTurnByTurnNavigationEvents( - numNextStepsToPreview: Long?, - options: StepImageGenerationOptionsDto?, - ) - + fun enableTurnByTurnNavigationEvents(numNextStepsToPreview: Long?, options: StepImageGenerationOptionsDto?) fun disableTurnByTurnNavigationEvents() - - fun registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSeconds: Long, - remainingDistanceThresholdMeters: Long, - ) + fun registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSeconds: Long, remainingDistanceThresholdMeters: Long) companion object { /** The codec used by NavigationSessionApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationSessionApi` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationSessionApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationSessionApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationSessionApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.createNavigationSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val abnormalTerminationReportingEnabledArg = args[0] as Boolean val behaviorArg = args[1] as TaskRemovedBehaviorDto - api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { - result: Result -> + api.createNavigationSession(abnormalTerminationReportingEnabledArg, behaviorArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6487,20 +5648,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isInitialized$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isInitialized()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isInitialized()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6508,23 +5663,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.cleanup$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val resetSessionArg = args[0] as Boolean - val wrapped: List = - try { - api.cleanup(resetSessionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.cleanup(resetSessionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6532,12 +5681,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.showTermsAndConditionsDialog$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6545,12 +5689,7 @@ interface NavigationSessionApi { val companyNameArg = args[1] as String val shouldOnlyShowDriverAwarenessDisclaimerArg = args[2] as Boolean val uiParamsArg = args[3] as TermsAndConditionsUIParamsDto? - api.showTermsAndConditionsDialog( - titleArg, - companyNameArg, - shouldOnlyShowDriverAwarenessDisclaimerArg, - uiParamsArg, - ) { result: Result -> + api.showTermsAndConditionsDialog(titleArg, companyNameArg, shouldOnlyShowDriverAwarenessDisclaimerArg, uiParamsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6565,20 +5704,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.areTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.areTermsAccepted()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.areTermsAccepted()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6586,21 +5719,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resetTermsAccepted$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetTermsAccepted() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetTermsAccepted() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6608,20 +5735,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getNavSDKVersion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getNavSDKVersion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getNavSDKVersion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6629,20 +5750,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.isGuidanceRunning$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isGuidanceRunning()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isGuidanceRunning()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6650,21 +5765,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.startGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.startGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.startGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6672,21 +5781,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.stopGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.stopGuidance() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.stopGuidance() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6694,12 +5797,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -6719,21 +5817,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.clearDestinations$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearDestinations() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearDestinations() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6741,15 +5833,10 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.continueToNextDestination$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - api.continueToNextDestination { result: Result -> + api.continueToNextDestination{ result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -6764,20 +5851,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentTimeAndDistance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentTimeAndDistance()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentTimeAndDistance()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6785,23 +5866,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setAudioGuidance$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val settingsArg = args[0] as NavigationAudioGuidanceSettingsDto - val wrapped: List = - try { - api.setAudioGuidance(settingsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setAudioGuidance(settingsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6809,23 +5884,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setSpeedAlertOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SpeedAlertOptionsDto - val wrapped: List = - try { - api.setSpeedAlertOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setSpeedAlertOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6833,20 +5902,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getRouteSegments$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getRouteSegments()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getRouteSegments()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6854,20 +5917,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getTraveledRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getTraveledRoute()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getTraveledRoute()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6875,20 +5932,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.getCurrentRouteSegment$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCurrentRouteSegment()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCurrentRouteSegment()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6896,23 +5947,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.setUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val locationArg = args[0] as LatLngDto - val wrapped: List = - try { - api.setUserLocation(locationArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setUserLocation(locationArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6920,21 +5965,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.removeUserLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.removeUserLocation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeUserLocation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6942,21 +5981,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.simulateLocationsAlongExistingRoute() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRoute() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6964,23 +5997,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongExistingRouteWithOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val optionsArg = args[0] as SimulationOptionsDto - val wrapped: List = - try { - api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.simulateLocationsAlongExistingRouteWithOptions(optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -6988,12 +6015,7 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRoute$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7013,19 +6035,13 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { - result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingOptions(waypointsArg, routingOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7040,23 +6056,14 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val waypointsArg = args[0] as List val routingOptionsArg = args[1] as RoutingOptionsDto val simulationOptionsArg = args[2] as SimulationOptionsDto - api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions( - waypointsArg, - routingOptionsArg, - simulationOptionsArg, - ) { result: Result -> + api.simulateLocationsAlongNewRouteWithRoutingAndSimulationOptions(waypointsArg, routingOptionsArg, simulationOptionsArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7071,21 +6078,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.pauseSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.pauseSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.pauseSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7093,21 +6094,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.resumeSimulation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resumeSimulation() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resumeSimulation() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7115,23 +6110,17 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.allowBackgroundLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val allowArg = args[0] as Boolean - val wrapped: List = - try { - api.allowBackgroundLocationUpdates(allowArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.allowBackgroundLocationUpdates(allowArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7139,21 +6128,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7161,21 +6144,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableRoadSnappedLocationUpdates$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableRoadSnappedLocationUpdates() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableRoadSnappedLocationUpdates() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7183,24 +6160,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.enableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val numNextStepsToPreviewArg = args[0] as Long? val optionsArg = args[1] as StepImageGenerationOptionsDto? - val wrapped: List = - try { - api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableTurnByTurnNavigationEvents(numNextStepsToPreviewArg, optionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7208,21 +6179,15 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.disableTurnByTurnNavigationEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.disableTurnByTurnNavigationEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.disableTurnByTurnNavigationEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7230,27 +6195,18 @@ interface NavigationSessionApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionApi.registerRemainingTimeOrDistanceChangedListener$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val remainingTimeThresholdSecondsArg = args[0] as Long val remainingDistanceThresholdMetersArg = args[1] as Long - val wrapped: List = - try { - api.registerRemainingTimeOrDistanceChangedListener( - remainingTimeThresholdSecondsArg, - remainingDistanceThresholdMetersArg, - ) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.registerRemainingTimeOrDistanceChangedListener(remainingTimeThresholdSecondsArg, remainingDistanceThresholdMetersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7260,22 +6216,18 @@ interface NavigationSessionApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class NavigationSessionEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class NavigationSessionEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by NavigationSessionEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } } - - fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" + fun onSpeedingUpdated(msgArg: SpeedingUpdatedEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onSpeedingUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(msgArg)) { if (it is List<*>) { @@ -7286,15 +6238,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7305,15 +6255,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" + fun onRoadSnappedRawLocationUpdated(locationArg: LatLngDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRoadSnappedRawLocationUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(locationArg)) { if (it is List<*>) { @@ -7324,15 +6272,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" + fun onArrival(waypointArg: NavigationWaypointDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onArrival$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(waypointArg)) { if (it is List<*>) { @@ -7343,15 +6289,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRouteChanged(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" + fun onRouteChanged(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRouteChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7362,20 +6306,13 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onRemainingTimeOrDistanceChanged( - remainingTimeArg: Double, - remainingDistanceArg: Double, - delaySeverityArg: TrafficDelaySeverityDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" + fun onRemainingTimeOrDistanceChanged(remainingTimeArg: Double, remainingDistanceArg: Double, delaySeverityArg: TrafficDelaySeverityDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRemainingTimeOrDistanceChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(remainingTimeArg, remainingDistanceArg, delaySeverityArg)) { if (it is List<*>) { @@ -7386,16 +6323,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onTrafficUpdated(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" + fun onTrafficUpdated(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onTrafficUpdated$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7406,16 +6341,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onRerouting(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" + fun onRerouting(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onRerouting$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7426,16 +6359,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" + fun onGpsAvailabilityUpdate(availableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityUpdate$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(availableArg)) { if (it is List<*>) { @@ -7446,19 +6377,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Android-only event. */ - fun onGpsAvailabilityChange( - eventArg: GpsAvailabilityChangeEventDto, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" + fun onGpsAvailabilityChange(eventArg: GpsAvailabilityChangeEventDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onGpsAvailabilityChange$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg)) { if (it is List<*>) { @@ -7469,16 +6395,14 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - /** Turn-by-Turn navigation events. */ - fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" + fun onNavInfo(navInfoArg: NavInfoDto, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNavInfo$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(navInfoArg)) { if (it is List<*>) { @@ -7489,16 +6413,17 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - /** Navigation session event. Called when a new navigation session starts with active guidance. */ - fun onNewNavigationSession(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" + /** + * Navigation session event. Called when a new navigation + * session starts with active guidance. + */ + fun onNewNavigationSession(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.NavigationSessionEventApi.onNewNavigationSession$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(null) { if (it is List<*>) { @@ -7509,216 +6434,146 @@ class NavigationSessionEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface AutoMapViewApi { + /** + * Sets the map options to be used for Android Auto and CarPlay views. + * Should be called before the Auto/CarPlay screen is created. + * This allows customization of mapId and basic map settings. + */ + fun setAutoMapOptions(mapOptions: AutoMapOptionsDto) fun isMyLocationEnabled(): Boolean - fun setMyLocationEnabled(enabled: Boolean) - fun getMyLocation(): LatLngDto? - fun getMapType(): MapTypeDto - fun setMapType(mapType: MapTypeDto) - fun setMapStyle(styleJson: String) - fun getCameraPosition(): CameraPositionDto - fun getVisibleRegion(): LatLngBoundsDto - fun followMyLocation(perspective: CameraPerspectiveDto, zoomLevel: Double?) - - fun animateCameraToCameraPosition( - cameraPosition: CameraPositionDto, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToCameraPosition(cameraPosition: CameraPositionDto, duration: Long?, callback: (Result) -> Unit) fun animateCameraToLatLng(point: LatLngDto, duration: Long?, callback: (Result) -> Unit) - - fun animateCameraToLatLngBounds( - bounds: LatLngBoundsDto, - padding: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraToLatLngZoom( - point: LatLngDto, - zoom: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByScroll( - scrollByDx: Double, - scrollByDy: Double, - duration: Long?, - callback: (Result) -> Unit, - ) - - fun animateCameraByZoom( - zoomBy: Double, - focusDx: Double?, - focusDy: Double?, - duration: Long?, - callback: (Result) -> Unit, - ) - + fun animateCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraToLatLngZoom(point: LatLngDto, zoom: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByScroll(scrollByDx: Double, scrollByDy: Double, duration: Long?, callback: (Result) -> Unit) + fun animateCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?, duration: Long?, callback: (Result) -> Unit) fun animateCameraToZoom(zoom: Double, duration: Long?, callback: (Result) -> Unit) - fun moveCameraToCameraPosition(cameraPosition: CameraPositionDto) - fun moveCameraToLatLng(point: LatLngDto) - fun moveCameraToLatLngBounds(bounds: LatLngBoundsDto, padding: Double) - fun moveCameraToLatLngZoom(point: LatLngDto, zoom: Double) - fun moveCameraByScroll(scrollByDx: Double, scrollByDy: Double) - fun moveCameraByZoom(zoomBy: Double, focusDx: Double?, focusDy: Double?) - fun moveCameraToZoom(zoom: Double) - fun getMinZoomPreference(): Double - fun getMaxZoomPreference(): Double - fun resetMinMaxZoomPreference() - fun setMinZoomPreference(minZoomPreference: Double) - fun setMaxZoomPreference(maxZoomPreference: Double) - fun setMyLocationButtonEnabled(enabled: Boolean) - fun setConsumeMyLocationButtonClickEventsEnabled(enabled: Boolean) - fun setZoomGesturesEnabled(enabled: Boolean) - fun setZoomControlsEnabled(enabled: Boolean) - fun setCompassEnabled(enabled: Boolean) - fun setRotateGesturesEnabled(enabled: Boolean) - fun setScrollGesturesEnabled(enabled: Boolean) - fun setScrollGesturesDuringRotateOrZoomEnabled(enabled: Boolean) - fun setTiltGesturesEnabled(enabled: Boolean) - fun setMapToolbarEnabled(enabled: Boolean) - fun setTrafficEnabled(enabled: Boolean) - + fun setTrafficPromptsEnabled(enabled: Boolean) + fun setTrafficIncidentCardsEnabled(enabled: Boolean) + fun setNavigationTripProgressBarEnabled(enabled: Boolean) + fun setSpeedLimitIconEnabled(enabled: Boolean) + fun setSpeedometerEnabled(enabled: Boolean) fun isMyLocationButtonEnabled(): Boolean - fun isConsumeMyLocationButtonClickEventsEnabled(): Boolean - fun isZoomGesturesEnabled(): Boolean - fun isZoomControlsEnabled(): Boolean - fun isCompassEnabled(): Boolean - fun isRotateGesturesEnabled(): Boolean - fun isScrollGesturesEnabled(): Boolean - fun isScrollGesturesEnabledDuringRotateOrZoom(): Boolean - fun isTiltGesturesEnabled(): Boolean - fun isMapToolbarEnabled(): Boolean - fun isTrafficEnabled(): Boolean - + fun isTrafficPromptsEnabled(): Boolean + fun isTrafficIncidentCardsEnabled(): Boolean + fun isNavigationTripProgressBarEnabled(): Boolean + fun isSpeedLimitIconEnabled(): Boolean + fun isSpeedometerEnabled(): Boolean + fun showRouteOverview() fun getMarkers(): List - fun addMarkers(markers: List): List - fun updateMarkers(markers: List): List - fun removeMarkers(markers: List) - fun clearMarkers() - fun clear() - fun getPolygons(): List - fun addPolygons(polygons: List): List - fun updatePolygons(polygons: List): List - fun removePolygons(polygons: List) - fun clearPolygons() - fun getPolylines(): List - fun addPolylines(polylines: List): List - fun updatePolylines(polylines: List): List - fun removePolylines(polylines: List) - fun clearPolylines() - fun getCircles(): List - fun addCircles(circles: List): List - fun updateCircles(circles: List): List - fun removeCircles(circles: List) - fun clearCircles() - fun enableOnCameraChangedEvents() - fun isAutoScreenAvailable(): Boolean - fun setPadding(padding: MapPaddingDto) - fun getPadding(): MapPaddingDto + fun getMapColorScheme(): MapColorSchemeDto + fun setMapColorScheme(mapColorScheme: MapColorSchemeDto) + fun getForceNightMode(): NavigationForceNightModeDto + fun setForceNightMode(forceNightMode: NavigationForceNightModeDto) + fun sendCustomNavigationAutoEvent(event: String, data: Any) companion object { /** The codec used by AutoMapViewApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } /** Sets up an instance of `AutoMapViewApi` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: AutoMapViewApi?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + fun setUp(binaryMessenger: BinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val mapOptionsArg = args[0] as AutoMapOptionsDto + val wrapped: List = try { + api.setAutoMapOptions(mapOptionsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7726,23 +6581,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7750,20 +6599,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMyLocation()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMyLocation()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7771,20 +6614,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMapType()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMapType()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7792,23 +6629,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val mapTypeArg = args[0] as MapTypeDto - val wrapped: List = - try { - api.setMapType(mapTypeArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapType(mapTypeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7816,23 +6647,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val styleJsonArg = args[0] as String - val wrapped: List = - try { - api.setMapStyle(styleJsonArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapStyle(styleJsonArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7840,20 +6665,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCameraPosition()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCameraPosition()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7861,20 +6680,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getVisibleRegion()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getVisibleRegion()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7882,24 +6695,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val perspectiveArg = args[0] as CameraPerspectiveDto val zoomLevelArg = args[1] as Double? - val wrapped: List = - try { - api.followMyLocation(perspectiveArg, zoomLevelArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.followMyLocation(perspectiveArg, zoomLevelArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -7907,19 +6714,13 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto val durationArg = args[1] as Long? - api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { - result: Result -> + api.animateCameraToCameraPosition(cameraPositionArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7934,12 +6735,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -7960,20 +6756,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { - result: Result -> + api.animateCameraToLatLngBounds(boundsArg, paddingArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -7988,20 +6778,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result - -> + api.animateCameraToLatLngZoom(pointArg, zoomArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8016,20 +6800,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double val durationArg = args[2] as Long? - api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { - result: Result -> + api.animateCameraByScroll(scrollByDxArg, scrollByDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8044,12 +6822,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8057,8 +6830,7 @@ interface AutoMapViewApi { val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? val durationArg = args[3] as Long? - api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { - result: Result -> + api.animateCameraByZoom(zoomByArg, focusDxArg, focusDyArg, durationArg) { result: Result -> val error = result.exceptionOrNull() if (error != null) { reply.reply(MessagesPigeonUtils.wrapError(error)) @@ -8073,12 +6845,7 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List @@ -8099,23 +6866,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val cameraPositionArg = args[0] as CameraPositionDto - val wrapped: List = - try { - api.moveCameraToCameraPosition(cameraPositionArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToCameraPosition(cameraPositionArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8123,23 +6884,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto - val wrapped: List = - try { - api.moveCameraToLatLng(pointArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLng(pointArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8147,24 +6902,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val boundsArg = args[0] as LatLngBoundsDto val paddingArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngBounds(boundsArg, paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngBounds(boundsArg, paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8172,24 +6921,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val pointArg = args[0] as LatLngDto val zoomArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraToLatLngZoom(pointArg, zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToLatLngZoom(pointArg, zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8197,24 +6940,18 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val scrollByDxArg = args[0] as Double val scrollByDyArg = args[1] as Double - val wrapped: List = - try { - api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByScroll(scrollByDxArg, scrollByDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8222,25 +6959,19 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomByArg = args[0] as Double val focusDxArg = args[1] as Double? val focusDyArg = args[2] as Double? - val wrapped: List = - try { - api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraByZoom(zoomByArg, focusDxArg, focusDyArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8248,23 +6979,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val zoomArg = args[0] as Double - val wrapped: List = - try { - api.moveCameraToZoom(zoomArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.moveCameraToZoom(zoomArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8272,20 +6997,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMinZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMinZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8293,20 +7012,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMaxZoomPreference()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getMaxZoomPreference()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8314,21 +7027,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.resetMinMaxZoomPreference() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.resetMinMaxZoomPreference() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8336,23 +7043,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val minZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMinZoomPreference(minZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMinZoomPreference(minZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8360,23 +7061,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val maxZoomPreferenceArg = args[0] as Double - val wrapped: List = - try { - api.setMaxZoomPreference(maxZoomPreferenceArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMaxZoomPreference(maxZoomPreferenceArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8384,23 +7079,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMyLocationButtonEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMyLocationButtonEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8408,23 +7097,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setConsumeMyLocationButtonClickEventsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8432,23 +7115,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8456,23 +7133,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setZoomControlsEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setZoomControlsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8480,23 +7151,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setCompassEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setCompassEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8504,23 +7169,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setRotateGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setRotateGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8528,23 +7187,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8552,23 +7205,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setScrollGesturesDuringRotateOrZoomEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8576,23 +7223,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTiltGesturesEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTiltGesturesEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8600,23 +7241,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setMapToolbarEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setMapToolbarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8624,23 +7259,35 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val enabledArg = args[0] as Boolean - val wrapped: List = - try { - api.setTrafficEnabled(enabledArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setTrafficEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val enabledArg = args[0] as Boolean + val wrapped: List = try { + api.setTrafficPromptsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8648,20 +7295,86 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val enabledArg = args[0] as Boolean + val wrapped: List = try { + api.setTrafficIncidentCardsEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val enabledArg = args[0] as Boolean + val wrapped: List = try { + api.setNavigationTripProgressBarEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val enabledArg = args[0] as Boolean + val wrapped: List = try { + api.setSpeedLimitIconEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val enabledArg = args[0] as Boolean + val wrapped: List = try { + api.setSpeedometerEnabled(enabledArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMyLocationButtonEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMyLocationButtonEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8669,20 +7382,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isConsumeMyLocationButtonClickEventsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8690,20 +7397,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8711,20 +7412,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isZoomControlsEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isZoomControlsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8732,20 +7427,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isCompassEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isCompassEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8753,20 +7442,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isRotateGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isRotateGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8774,20 +7457,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8795,20 +7472,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isScrollGesturesEnabledDuringRotateOrZoom()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8816,20 +7487,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTiltGesturesEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTiltGesturesEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8837,20 +7502,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isMapToolbarEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isMapToolbarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8858,20 +7517,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isTrafficEnabled()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8879,20 +7532,44 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getMarkers()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isTrafficPromptsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isTrafficIncidentCardsEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isNavigationTripProgressBarEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8900,22 +7577,77 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isSpeedLimitIconEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isSpeedometerEnabled()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.showRouteOverview() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.getMarkers()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.addMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8923,22 +7655,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateMarkers(markersArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateMarkers(markersArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8946,23 +7672,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val markersArg = args[0] as List - val wrapped: List = - try { - api.removeMarkers(markersArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeMarkers(markersArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8970,21 +7690,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearMarkers() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearMarkers() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -8992,21 +7706,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clear() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clear() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9014,20 +7722,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolygons()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolygons()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9035,22 +7737,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9058,22 +7754,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolygons(polygonsArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolygons(polygonsArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9081,23 +7771,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polygonsArg = args[0] as List - val wrapped: List = - try { - api.removePolygons(polygonsArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolygons(polygonsArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9105,21 +7789,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolygons() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolygons() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9127,20 +7805,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPolylines()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPolylines()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9148,22 +7820,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addPolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addPolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9171,22 +7837,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updatePolylines(polylinesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updatePolylines(polylinesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9194,23 +7854,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val polylinesArg = args[0] as List - val wrapped: List = - try { - api.removePolylines(polylinesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removePolylines(polylinesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9218,21 +7872,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearPolylines() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearPolylines() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9240,20 +7888,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getCircles()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getCircles()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9261,22 +7903,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.addCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.addCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9284,22 +7920,16 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - listOf(api.updateCircles(circlesArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.updateCircles(circlesArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9307,23 +7937,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val circlesArg = args[0] as List - val wrapped: List = - try { - api.removeCircles(circlesArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.removeCircles(circlesArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9331,21 +7955,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.clearCircles() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.clearCircles() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9353,21 +7971,15 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - api.enableOnCameraChangedEvents() - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.enableOnCameraChangedEvents() + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9375,20 +7987,14 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.isAutoScreenAvailable()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isAutoScreenAvailable()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9396,23 +8002,17 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val paddingArg = args[0] as MapPaddingDto - val wrapped: List = - try { - api.setPadding(paddingArg) - listOf(null) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + api.setPadding(paddingArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9420,20 +8020,99 @@ interface AutoMapViewApi { } } run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { _, reply -> - val wrapped: List = - try { - listOf(api.getPadding()) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.getPadding()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.getMapColorScheme()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val mapColorSchemeArg = args[0] as MapColorSchemeDto + val wrapped: List = try { + api.setMapColorScheme(mapColorSchemeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.getForceNightMode()) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val forceNightModeArg = args[0] as NavigationForceNightModeDto + val wrapped: List = try { + api.setForceNightMode(forceNightModeArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val eventArg = args[0] as String + val dataArg = args[1] as Any + val wrapped: List = try { + api.sendCustomNavigationAutoEvent(eventArg, dataArg) + listOf(null) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { @@ -9443,26 +8122,18 @@ interface AutoMapViewApi { } } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class AutoViewEventApi( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "", -) { +class AutoViewEventApi(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { companion object { /** The codec used by AutoViewEventApi. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - } - - fun onCustomNavigationAutoEvent( - eventArg: String, - dataArg: Any, - callback: (Result) -> Unit, - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + } + fun onCustomNavigationAutoEvent(eventArg: String, dataArg: Any, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onCustomNavigationAutoEvent$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(eventArg, dataArg)) { if (it is List<*>) { @@ -9473,15 +8144,13 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } } } - - fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" + fun onAutoScreenAvailabilityChanged(isAvailableArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onAutoScreenAvailabilityChanged$separatedMessageChannelSuffix" val channel = BasicMessageChannel(binaryMessenger, channelName, codec) channel.send(listOf(isAvailableArg)) { if (it is List<*>) { @@ -9492,48 +8161,51 @@ class AutoViewEventApi( } } else { callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) - } + } + } + } + fun onPromptVisibilityChanged(promptVisibleArg: Boolean, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(promptVisibleArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(MessagesPigeonUtils.createConnectionError(channelName))) + } } } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NavigationInspector { fun isViewAttachedToSession(viewId: Long): Boolean companion object { /** The codec used by NavigationInspector. */ - val codec: MessageCodec by lazy { messagesPigeonCodec() } - - /** - * Sets up an instance of `NavigationInspector` to handle messages through the - * `binaryMessenger`. - */ + val codec: MessageCodec by lazy { + messagesPigeonCodec() + } + /** Sets up an instance of `NavigationInspector` to handle messages through the `binaryMessenger`. */ @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NavigationInspector?, - messageChannelSuffix: String = "", - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + fun setUp(binaryMessenger: BinaryMessenger, api: NavigationInspector?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" run { - val channel = - BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", - codec, - ) + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.google_navigation_flutter.NavigationInspector.isViewAttachedToSession$separatedMessageChannelSuffix", codec) if (api != null) { channel.setMessageHandler { message, reply -> val args = message as List val viewIdArg = args[0] as Long - val wrapped: List = - try { - listOf(api.isViewAttachedToSession(viewIdArg)) - } catch (exception: Throwable) { - MessagesPigeonUtils.wrapError(exception) - } + val wrapped: List = try { + listOf(api.isViewAttachedToSession(viewIdArg)) + } catch (exception: Throwable) { + MessagesPigeonUtils.wrapError(exception) + } reply.reply(wrapped) } } else { diff --git a/example/android/app/src/main/kotlin/com/google/maps/flutter/navigation_example/SampleAndroidAutoScreen.kt b/example/android/app/src/main/kotlin/com/google/maps/flutter/navigation_example/SampleAndroidAutoScreen.kt index 447a585c..1da05fab 100644 --- a/example/android/app/src/main/kotlin/com/google/maps/flutter/navigation_example/SampleAndroidAutoScreen.kt +++ b/example/android/app/src/main/kotlin/com/google/maps/flutter/navigation_example/SampleAndroidAutoScreen.kt @@ -17,6 +17,7 @@ package com.google.maps.flutter.navigation_example import android.annotation.SuppressLint +import android.util.Log import androidx.car.app.CarContext import androidx.car.app.model.Action import androidx.car.app.model.ActionStrip @@ -35,6 +36,7 @@ import com.google.android.gms.maps.GoogleMap import com.google.android.libraries.mapsplatform.turnbyturn.model.NavInfo import com.google.android.libraries.mapsplatform.turnbyturn.model.StepInfo import com.google.maps.flutter.navigation.AndroidAutoBaseScreen +import com.google.maps.flutter.navigation.AutoMapViewOptions import com.google.maps.flutter.navigation.GoogleMapsNavigationNavUpdatesService @@ -97,6 +99,41 @@ class SampleAndroidAutoScreen(carContext: CarContext): AndroidAutoBaseScreen(car invalidate() } + // Example of handling prompt visibility changes + // This is called when traffic prompts appear/disappear on the Android Auto screen + override fun onPromptVisibilityChanged(promptVisible: Boolean) { + super.onPromptVisibilityChanged(promptVisible) // This sends the event to Flutter + Log.d("SampleAndroidAutoScreen", "Prompt visibility changed to: $promptVisible") + + // You can add custom logic here, such as: + // - Hiding/showing custom action buttons when prompts appear + // - Adjusting your template layout + // - Updating custom UI elements + + // For example, you might want to refresh the template: + // invalidate() + } + + // Example of handling custom events from Flutter + override fun onCustomNavigationAutoEventFromFlutter(event: String, data: Any) { + super.onCustomNavigationAutoEventFromFlutter(event, data) + Log.d("SampleAndroidAutoScreen", "Received custom event from Flutter: event=$event, data=$data") + } + + // Example of providing custom map options from native code + override fun getAutoMapOptions(): AutoMapViewOptions? { + // Call super to use Flutter-provided options + return super.getAutoMapOptions() + + // Or provide your own custom options: + // return AutoMapViewOptions( + // mapId = "your-custom-map-id", + // mapType = GoogleMap.MAP_TYPE_SATELLITE, + // mapColorScheme = MapColorScheme.DARK, + // forceNightMode = NavigationForceNightMode.FORCE_NIGHT + // ) + } + override fun onGetTemplate(): Template { if (!mIsNavigationReady) { return PaneTemplate.Builder( diff --git a/example/ios/Podfile b/example/ios/Podfile index f47daa68..00eb4e50 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -52,6 +52,7 @@ post_install do |installer| flutter_additional_ios_build_settings(target) # Start of the permission_handler configuration target.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0' # You can enable the permissions needed here. For example to enable camera # permission, just remove the `#` character in front so it looks like this: diff --git a/example/ios/README.md b/example/ios/README.md new file mode 100644 index 00000000..130e4a3c --- /dev/null +++ b/example/ios/README.md @@ -0,0 +1,121 @@ +# iOS Example Apps + +This directory contains two iOS example apps to demonstrate different use cases of the Google Maps Navigation SDK: + +## 1. Runner (Standard iOS App) +**Bundle ID:** `com.google.maps.flutter.navigationExample` + +A standard iOS app without CarPlay support. + +### Running from Command Line: +```bash +# From example/ directory +flutter run -d -t lib/main.dart --flavor Runner +``` + +### Running from Xcode: +1. Open `ios/Runner.xcworkspace` +2. Select the **Runner** scheme +3. Build and run + +--- + +## 2. RunnerCarPlay (CarPlay-Enabled App) +**Bundle ID:** `com.google.maps.flutter.navigationExample.carplay` + +An iOS app with full CarPlay support, including: +- Multi-scene setup (phone + car scenes) +- CarPlay entitlements +- CarPlay-specific delegate (`AppDelegateCarPlay`) +- Conditional compilation with `#if CARPLAY` + +### Running from Command Line: +```bash +# From example/ directory +flutter run -d -t lib/main.dart --flavor RunnerCarPlay +``` + +### Running from Xcode: +1. Open `ios/Runner.xcworkspace` +2. Select the **RunnerCarPlay** scheme +3. Build and run + +--- + +## Technical Details + +### Key Differences + +| Feature | Runner | RunnerCarPlay | +| ------------- | -------------------- | ---------------------------- | +| Bundle ID | `.navigationExample` | `.navigationExample.carplay` | +| Info.plist | `Info.plist` | `Info-CarPlay.plist` | +| Entitlements | None | `RunnerCarPlay.entitlements` | +| App Delegate | `AppDelegate` | `AppDelegateCarPlay` | +| Scene Support | Single scene | Multi-scene (phone + car) | +| Swift Flags | Default | `-D CARPLAY` | + +### How main.swift Selects the Delegate + +The `main.swift` uses conditional compilation: + +```swift +#if CARPLAY + UIApplicationMain( + CommandLine.argc, + CommandLine.unsafeArgv, + nil, + NSStringFromClass(AppDelegateCarPlay.self) + ) +#else + UIApplicationMain( + CommandLine.argc, + CommandLine.unsafeArgv, + nil, + NSStringFromClass(AppDelegate.self) + ) +#endif +``` + +The `CARPLAY` flag is set via `OTHER_SWIFT_FLAGS` in the RunnerCarPlay target's build settings. + +### Swift Package Manager (SPM) Support + +Both targets support SPM. The shared scheme files are located in: +``` +ios/Runner.xcodeproj/xcshareddata/xcschemes/ +├── Runner.xcscheme +└── RunnerCarPlay.xcscheme +``` + +These schemes are version-controlled and shared across all developers. + +### CocoaPods Configuration + +The `Podfile` configures both targets: +- `Runner` target - standard iOS app +- `RunnerCarPlay` target - with CarPlay support + +All pods have their deployment target set to iOS 16.0 minimum in the `post_install` hook. + +--- + +## Troubleshooting + +### Error: "requires minimum platform version 16.0" +Run `pod install` from the `ios/` directory. The Podfile's `post_install` hook sets all pods to iOS 16.0. + +### Error: "You must specify a --flavor option" +Don't use `--flavor`. Use `--scheme` instead: +```bash +flutter run --scheme RunnerCarPlay +``` + +### Error: "Unable to get scheme file for RunnerCarPlay" +Remove any duplicate user-specific schemes: +```bash +rm -rf ios/Runner.xcodeproj/xcuserdata/*/xcschemes/RunnerCarPlay.xcscheme +``` + +### Both Apps Can't Be Installed at the Same Time +This is expected! They have different bundle IDs, so both apps can be installed simultaneously on the same device for testing purposes. diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index babaf9c3..eb615e7a 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -22,6 +22,7 @@ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 506F574D2AD8012C004AC70F /* RunnerUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 506F574C2AD8012C004AC70F /* RunnerUITests.m */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; }; 9622089A4166ECC03B433965 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 054752A3C68A7FF5D59CC247 /* Pods_RunnerTests.framework */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; @@ -30,7 +31,6 @@ C9CBB6602AD89694007C737E /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 506F57582AD8055D004AC70F /* XCTest.framework */; platformFilter = ios; }; D3A3B5ED895816BDF2A70351 /* Pods_RunnerCarPlay.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B269F01B5CD151328AA7F8EB /* Pods_RunnerCarPlay.framework */; }; EDFE577D2F64CF5D3712A4E9 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64B801515FD75D36D58A86FE /* Pods_Runner.framework */; }; - 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -77,6 +77,7 @@ 054752A3C68A7FF5D59CC247 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 255E7806BEC9998D7DACC806 /* Pods-Runner-RunnerUITests.debug-runnercarplay.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.debug-runnercarplay.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.debug-runnercarplay.xcconfig"; sourceTree = ""; }; 2A18B9192AB17E8000172055 /* ConvertTests.swift */ = {isa = PBXFileReference; indentWidth = 2; lastKnownFileType = sourcecode.swift; path = ConvertTests.swift; sourceTree = ""; }; 2A8C4ACD2CC646F200168311 /* RunnerCarPlay.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RunnerCarPlay.app; sourceTree = BUILT_PRODUCTS_DIR; }; 2A8C4ACF2CC64A8500168311 /* AppDelegateCarPlay.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegateCarPlay.swift; sourceTree = ""; }; @@ -87,15 +88,18 @@ 2A8C4ADE2CC656E800168311 /* CarSceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CarSceneDelegate.swift; sourceTree = ""; }; 2EAF2B705FB6C39F7F5344DA /* Pods-Runner-RunnerUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.debug.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.debug.xcconfig"; sourceTree = ""; }; 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 35E5AF4EA16C287D705B54B3 /* Pods-RunnerTests.debug-runnercarplay.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-runnercarplay.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-runnercarplay.xcconfig"; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 3D757C86B3AF1A2A14538F73 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 506F574A2AD8012C004AC70F /* RunnerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 506F574C2AD8012C004AC70F /* RunnerUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerUITests.m; sourceTree = ""; }; 506F57582AD8055D004AC70F /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 510AA50DE75FAE82EC03E97C /* Pods-Runner.debug-runnercarplay.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-runnercarplay.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-runnercarplay.xcconfig"; sourceTree = ""; }; 64B801515FD75D36D58A86FE /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 6E64AED9A2F8E776988CC405 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 8A1462748CBFF934FB9BF87A /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; @@ -113,9 +117,9 @@ B7C92A3F95B466A95C6F8F82 /* Pods-RunnerCarPlay.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerCarPlay.profile.xcconfig"; path = "Target Support Files/Pods-RunnerCarPlay/Pods-RunnerCarPlay.profile.xcconfig"; sourceTree = ""; }; C8406E69EBE45F2EF856A867 /* Pods-RunnerCarPlay.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerCarPlay.debug.xcconfig"; path = "Target Support Files/Pods-RunnerCarPlay/Pods-RunnerCarPlay.debug.xcconfig"; sourceTree = ""; }; D775A5369CBCF55F2213A29D /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + DB233621323BD5B8EBB431E5 /* Pods-RunnerCarPlay.debug-runnercarplay.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerCarPlay.debug-runnercarplay.xcconfig"; path = "Target Support Files/Pods-RunnerCarPlay/Pods-RunnerCarPlay.debug-runnercarplay.xcconfig"; sourceTree = ""; }; F66F7193CD255958326CC224 /* Pods-RunnerCarPlay.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerCarPlay.release.xcconfig"; path = "Target Support Files/Pods-RunnerCarPlay/Pods-RunnerCarPlay.release.xcconfig"; sourceTree = ""; }; FD0B54A81651AC7754FA8D08 /* Pods-Runner-RunnerUITests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-RunnerUITests.profile.xcconfig"; path = "Target Support Files/Pods-Runner-RunnerUITests/Pods-Runner-RunnerUITests.profile.xcconfig"; sourceTree = ""; }; - 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -244,6 +248,10 @@ C8406E69EBE45F2EF856A867 /* Pods-RunnerCarPlay.debug.xcconfig */, F66F7193CD255958326CC224 /* Pods-RunnerCarPlay.release.xcconfig */, B7C92A3F95B466A95C6F8F82 /* Pods-RunnerCarPlay.profile.xcconfig */, + 510AA50DE75FAE82EC03E97C /* Pods-Runner.debug-runnercarplay.xcconfig */, + 255E7806BEC9998D7DACC806 /* Pods-Runner-RunnerUITests.debug-runnercarplay.xcconfig */, + DB233621323BD5B8EBB431E5 /* Pods-RunnerCarPlay.debug-runnercarplay.xcconfig */, + 35E5AF4EA16C287D705B54B3 /* Pods-RunnerTests.debug-runnercarplay.xcconfig */, ); path = Pods; sourceTree = ""; @@ -282,6 +290,9 @@ dependencies = ( ); name = RunnerCarPlay; + packageProductDependencies = ( + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */, + ); productName = Runner; productReference = 2A8C4ACD2CC646F200168311 /* RunnerCarPlay.app */; productType = "com.apple.product-type.application"; @@ -329,9 +340,6 @@ productType = "com.apple.product-type.bundle.ui-testing"; }; 97C146ED1CF9000F007C117D /* Runner */ = { - packageProductDependencies = ( - 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */, - ); isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( @@ -350,6 +358,9 @@ dependencies = ( ); name = Runner; + packageProductDependencies = ( + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */, + ); productName = Runner; productReference = 97C146EE1CF9000F007C117D /* Runner.app */; productType = "com.apple.product-type.application"; @@ -358,9 +369,6 @@ /* Begin PBXProject section */ 97C146E61CF9000F007C117D /* Project object */ = { - packageReferences = ( - 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */, - ); isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = YES; @@ -390,6 +398,9 @@ Base, ); mainGroup = 97C146E51CF9000F007C117D; + packageReferences = ( + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */, + ); productRefGroup = 97C146EF1CF9000F007C117D /* Products */; projectDirPath = ""; projectRoot = ""; @@ -808,6 +819,7 @@ /* Begin XCBuildConfiguration section */ 249021D3217E4FDB00AE95B9 /* Profile */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB31CF90195004384FC /* Generated.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -1093,6 +1105,160 @@ }; name = Profile; }; + 52C24CA52EF59E8F003F5A8C /* Debug-RunnerCarPlay */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB31CF90195004384FC /* Generated.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = "Debug-RunnerCarPlay"; + }; + 52C24CA62EF59E8F003F5A8C /* Debug-RunnerCarPlay */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 5LUR69Y2U9; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.google.maps.flutter.navigationExample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Debug-RunnerCarPlay"; + }; + 52C24CA72EF59E8F003F5A8C /* Debug-RunnerCarPlay */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/RunnerCarPlay.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 5LUR69Y2U9; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = "Runner/Info-CarPlay.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + OTHER_SWIFT_FLAGS = "$(inherited) -D COCOAPODS -D CARPLAY"; + PRODUCT_BUNDLE_IDENTIFIER = com.google.maps.flutter.navigationExample; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Debug-RunnerCarPlay"; + }; + 52C24CA82EF59E8F003F5A8C /* Debug-RunnerCarPlay */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 35E5AF4EA16C287D705B54B3 /* Pods-RunnerTests.debug-runnercarplay.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.google.maps.flutter.navigationExample.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Debug-RunnerCarPlay"; + }; + 52C24CA92EF59E8F003F5A8C /* Debug-RunnerCarPlay */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 255E7806BEC9998D7DACC806 /* Pods-Runner-RunnerUITests.debug-runnercarplay.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.0; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.google.maps.flutter.navigation-example.RunnerUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = Runner; + }; + name = "Debug-RunnerCarPlay"; + }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 9740EEB31CF90195004384FC /* Generated.xcconfig */; @@ -1151,6 +1317,7 @@ }; 97C147041CF9000F007C117D /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB31CF90195004384FC /* Generated.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -1255,6 +1422,7 @@ isa = XCConfigurationList; buildConfigurations = ( 2A8C4ACA2CC646F200168311 /* Debug */, + 52C24CA72EF59E8F003F5A8C /* Debug-RunnerCarPlay */, 2A8C4ACB2CC646F200168311 /* Release */, 2A8C4ACC2CC646F200168311 /* Profile */, ); @@ -1265,6 +1433,7 @@ isa = XCConfigurationList; buildConfigurations = ( 331C8088294A63A400263BE5 /* Debug */, + 52C24CA82EF59E8F003F5A8C /* Debug-RunnerCarPlay */, 331C8089294A63A400263BE5 /* Release */, 331C808A294A63A400263BE5 /* Profile */, ); @@ -1275,6 +1444,7 @@ isa = XCConfigurationList; buildConfigurations = ( 506F57522AD8012C004AC70F /* Debug */, + 52C24CA92EF59E8F003F5A8C /* Debug-RunnerCarPlay */, 506F57532AD8012C004AC70F /* Release */, 506F57542AD8012C004AC70F /* Profile */, ); @@ -1285,6 +1455,7 @@ isa = XCConfigurationList; buildConfigurations = ( 97C147031CF9000F007C117D /* Debug */, + 52C24CA52EF59E8F003F5A8C /* Debug-RunnerCarPlay */, 97C147041CF9000F007C117D /* Release */, 249021D3217E4FDB00AE95B9 /* Profile */, ); @@ -1295,6 +1466,7 @@ isa = XCConfigurationList; buildConfigurations = ( 97C147061CF9000F007C117D /* Debug */, + 52C24CA62EF59E8F003F5A8C /* Debug-RunnerCarPlay */, 97C147071CF9000F007C117D /* Release */, 249021D4217E4FDB00AE95B9 /* Profile */, ); @@ -1302,12 +1474,14 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + /* Begin XCLocalSwiftPackageReference section */ - 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = { + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = { isa = XCLocalSwiftPackageReference; relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; }; /* End XCLocalSwiftPackageReference section */ + /* Begin XCSwiftPackageProductDependency section */ 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = { isa = XCSwiftPackageProductDependency; diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 49b7aacd..d2d01f75 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,7 +1,7 @@ + version = "1.7"> diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/RunnerCarPlay.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/RunnerCarPlay.xcscheme index 46eef0f5..eb6c4b7c 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/RunnerCarPlay.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/RunnerCarPlay.xcscheme @@ -1,11 +1,28 @@ + buildImplicitDependencies = "YES"> + + + + + + + + + + + customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit" + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + @@ -52,7 +82,7 @@ + buildConfiguration = "Debug-RunnerCarPlay"> diff --git a/example/ios/Runner/CarSceneDelegate.swift b/example/ios/Runner/CarSceneDelegate.swift index dfc2451b..0dd4dc93 100644 --- a/example/ios/Runner/CarSceneDelegate.swift +++ b/example/ios/Runner/CarSceneDelegate.swift @@ -35,4 +35,53 @@ class CarSceneDelegate: BaseCarSceneDelegate { template.leadingNavigationBarButtons = [customEventButton, recenterButton] return template } + + // Example of handling custom events from Flutter + override func onCustomNavigationAutoEventFromFlutter(event: String, data: Any) { + NSLog("CarSceneDelegate: Received custom event from Flutter: event=\(event), data=\(data)") + } + + // Example of providing custom map options from native code + // Override this method to provide custom map configuration + override func getAutoMapOptions() -> AutoMapViewOptions? { + // Call super to use Flutter-provided options + return super.getAutoMapOptions() + + // Or provide your own custom options: + // let cameraPosition = GMSCameraPosition(latitude: 37.7749, longitude: -122.4194, zoom: 14) + // return AutoMapViewOptions( + // cameraPosition: cameraPosition, + // mapId: "your-custom-map-id", + // mapType: .satellite, + // mapColorScheme: .dark, + // forceNightMode: .lowLight + // ) + } + + // Example of handling prompt visibility changes + override func onPromptVisibilityChanged(promptVisible: Bool) { + // Call super to ensure Flutter receives the event + super.onPromptVisibilityChanged(promptVisible: promptVisible) + + NSLog("CarSceneDelegate: onPromptVisibilityChanged called with promptVisible=\(promptVisible)") + + // Example: Hide custom UI when prompt appears, show it when prompt disappears + // Uncomment to enable this behavior: + // if promptVisible { + // mapTemplate?.leadingNavigationBarButtons = [] + // } else { + // // Restore your custom buttons + // let customEventButton = CPBarButton(title: "Custom Event") { [weak self] _ in + // let data = ["sampleDataKey": "sampleDataContent"] + // self?.sendCustomNavigationAutoEvent(event: "CustomCarPlayEvent", data: data) + // } + // let recenterButton = CPBarButton(title: "Re-center") { [weak self] _ in + // self?.getNavView()?.followMyLocation( + // perspective: GMSNavigationCameraPerspective.tilted, + // zoomLevel: nil + // ) + // } + // mapTemplate?.leadingNavigationBarButtons = [customEventButton, recenterButton] + // } + } } diff --git a/example/lib/main.dart b/example/lib/main.dart index a91cca40..405b75d4 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -69,6 +69,7 @@ class _NavigationDemoState extends State { _requestPermissions(); super.initState(); unawaited(_checkSDKVersion()); + _updateAutoMapOptions(); } Future _checkSDKVersion() async { @@ -84,6 +85,21 @@ class _NavigationDemoState extends State { setState(() {}); } + /// Updates AutoMapOptions for Android Auto and CarPlay views. + Future _updateAutoMapOptions() async { + final String? mapId = MapIdManager.instance.mapId; + + // Configure AutoMapOptions with current map ID + await GoogleMapsAutoViewController.setAutoMapOptions( + AutoMapOptions( + mapId: mapId, + // You can add more options here as needed: + // mapType: MapType.normal, + // mapColorScheme: MapColorScheme.dark, + ), + ); + } + Future _pushPage(BuildContext context, ExamplePage page) async { await Navigator.of( context, @@ -155,8 +171,13 @@ class _NavigationDemoState extends State { Padding( padding: const EdgeInsets.all(8.0), child: ElevatedButton( - onPressed: () => - showMapIdDialog(context, () => setState(() {})), + onPressed: () async { + await showMapIdDialog(context, () { + setState(() {}); + // Update AutoMapOptions when map ID changes + unawaited(_updateAutoMapOptions()); + }); + }, child: const Text('Set Map ID'), ), ), diff --git a/example/lib/pages/camera.dart b/example/lib/pages/camera.dart index a77e4ccf..a36d4032 100644 --- a/example/lib/pages/camera.dart +++ b/example/lib/pages/camera.dart @@ -113,7 +113,11 @@ class _CameraPageState extends ExamplePageState { Future _stopNavigation() async { if (_navigationRunning) { - await GoogleMapsNavigator.cleanup(); + try { + await GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } if (mounted) { setState(() { @@ -126,7 +130,11 @@ class _CameraPageState extends ExamplePageState { @override void dispose() { if (_navigationRunning) { - GoogleMapsNavigator.cleanup(); + try { + GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } } super.dispose(); } diff --git a/example/lib/pages/multiple_views.dart b/example/lib/pages/multiple_views.dart index 916da514..d6557a76 100644 --- a/example/lib/pages/multiple_views.dart +++ b/example/lib/pages/multiple_views.dart @@ -82,7 +82,11 @@ class _MultiplexState extends ExamplePageState { @override void dispose() { - GoogleMapsNavigator.cleanup(); + try { + GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } clearRegisteredImages(); super.dispose(); } diff --git a/example/lib/pages/navigation.dart b/example/lib/pages/navigation.dart index df1a1767..685cbbf5 100644 --- a/example/lib/pages/navigation.dart +++ b/example/lib/pages/navigation.dart @@ -120,6 +120,15 @@ class _NavigationPageState extends ExamplePageState { bool _isAutoScreenAvailable = false; + // Auto view state variables + bool _autoNavigationTripProgressBarEnabled = false; + bool _autoSpeedLimitIconEnabled = false; + bool _autoSpeedometerEnabled = false; + bool _autoTrafficPromptsEnabled = true; + bool _autoTrafficIncidentCardsEnabled = true; + MapColorScheme _autoMapColorScheme = MapColorScheme.followSystem; + NavigationForceNightMode _autoForceNightMode = NavigationForceNightMode.auto; + bool _validRoute = false; bool _errorOnSetDestinations = false; bool _navigatorInitialized = false; @@ -176,7 +185,11 @@ class _NavigationPageState extends ExamplePageState { @override void dispose() { _clearListeners(); - GoogleMapsNavigator.cleanup(); + try { + GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } clearRegisteredImages(); super.dispose(); } @@ -201,11 +214,14 @@ class _NavigationPageState extends ExamplePageState { } _autoViewController.listenForCustomNavigationAutoEvents((event) { + if (!mounted) return; _showMessage("Received event: ${event.event}"); }); _isAutoScreenAvailable = await _autoViewController.isAutoScreenAvailable(); + if (!mounted) return; _autoViewController.listenForAutoScreenAvailibilityChangedEvent((event) { + if (!mounted) return; debugPrint( event.isAvailable ? "Auto screen is available" @@ -215,6 +231,23 @@ class _NavigationPageState extends ExamplePageState { _isAutoScreenAvailable = event.isAvailable; }); }); + + // Listen for prompt visibility changes on Android Auto / CarPlay + _autoViewController.listenForPromptVisibilityChangedEvent((event) { + if (!mounted) return; + debugPrint( + event.promptVisible + ? "Traffic prompt is now visible on auto screen" + : "Traffic prompt is now hidden on auto screen", + ); + + // Example: Send a custom event back to native to adjust UI + _autoViewController + .sendCustomNavigationAutoEvent('PromptVisibilityChanged', { + 'promptVisible': event.promptVisible, + 'timestamp': DateTime.now().millisecondsSinceEpoch, + }); + }); } Future _setRouteTokensEnabled(bool value) async { @@ -686,7 +719,11 @@ class _NavigationPageState extends ExamplePageState { // Cleanup navigation session. // This will also clear destinations, stop simulation, stop guidance - await GoogleMapsNavigator.cleanup(); + try { + await GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } await _removeNewWaypointMarker(); await _removeDestinationWaypointMarkers(); _waypoints.clear(); @@ -2118,6 +2155,157 @@ class _NavigationPageState extends ExamplePageState { onPressed: () => _addMarkerForAuto(), child: const Text('Add marker'), ), + ElevatedButton( + onPressed: () => _autoViewController.showRouteOverview(), + child: const Text('Show route overview'), + ), + ElevatedButton( + onPressed: () => _autoViewController.followMyLocation( + CameraPerspective.tilted, + ), + child: const Text('Follow my location'), + ), + const Divider(), + const Padding( + padding: EdgeInsets.symmetric(horizontal: 16.0), + child: Text( + 'Navigation UI Controls', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ), + ExampleSwitch( + title: 'Trip progress bar', + initialValue: _autoNavigationTripProgressBarEnabled, + onChanged: (bool newValue) async { + await _autoViewController.setNavigationTripProgressBarEnabled( + newValue, + ); + setState(() { + _autoNavigationTripProgressBarEnabled = newValue; + }); + }, + ), + ExampleSwitch( + title: 'Speed limit icon', + initialValue: _autoSpeedLimitIconEnabled, + onChanged: (bool newValue) async { + await _autoViewController.setSpeedLimitIconEnabled(newValue); + setState(() { + _autoSpeedLimitIconEnabled = newValue; + }); + }, + ), + ExampleSwitch( + title: 'Speedometer', + initialValue: _autoSpeedometerEnabled, + onChanged: (bool newValue) async { + await _autoViewController.setSpeedometerEnabled(newValue); + setState(() { + _autoSpeedometerEnabled = newValue; + }); + }, + ), + ExampleSwitch( + title: 'Traffic prompts', + initialValue: _autoTrafficPromptsEnabled, + onChanged: (bool newValue) async { + await _autoViewController.setTrafficPromptsEnabled(newValue); + setState(() { + _autoTrafficPromptsEnabled = newValue; + }); + }, + ), + ExampleSwitch( + title: 'Traffic incident cards', + initialValue: _autoTrafficIncidentCardsEnabled, + onChanged: (bool newValue) async { + await _autoViewController.setTrafficIncidentCardsEnabled( + newValue, + ); + setState(() { + _autoTrafficIncidentCardsEnabled = newValue; + }); + }, + ), + const Divider(), + const Padding( + padding: EdgeInsets.symmetric(horizontal: 16.0), + child: Text( + 'Theme Controls', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ), + Padding( + padding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 8, + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Map Color Scheme:', + style: TextStyle(fontSize: 16), + ), + const SizedBox(height: 8), + Wrap( + spacing: 8, + children: [ + _buildAutoColorSchemeChip( + MapColorScheme.followSystem, + 'Auto', + ), + _buildAutoColorSchemeChip( + MapColorScheme.light, + 'Light', + ), + _buildAutoColorSchemeChip(MapColorScheme.dark, 'Dark'), + ], + ), + ], + ), + ), + Padding( + padding: const EdgeInsets.symmetric( + horizontal: 16, + vertical: 8, + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'Navigation Night Mode:', + style: TextStyle(fontSize: 16), + ), + const SizedBox(height: 8), + Wrap( + spacing: 8, + children: [ + _buildAutoNightModeChip( + NavigationForceNightMode.auto, + 'Auto', + ), + _buildAutoNightModeChip( + NavigationForceNightMode.forceDay, + 'Day', + ), + _buildAutoNightModeChip( + NavigationForceNightMode.forceNight, + 'Night', + ), + ], + ), + ], + ), + ), + const Divider(), + const Padding( + padding: EdgeInsets.symmetric(horizontal: 16.0), + child: Text( + 'Map Padding', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ), Text('Map left padding: ${_autoViewMapPadding.left}'), Slider( value: _autoViewMapPadding.left.toDouble(), @@ -2414,6 +2602,46 @@ class _NavigationPageState extends ExamplePageState { ); } + Widget _buildAutoColorSchemeChip(MapColorScheme scheme, String label) { + final bool isSelected = _autoMapColorScheme == scheme; + return FilterChip( + label: Text(label), + selected: isSelected, + onSelected: (bool selected) async { + if (selected) { + setState(() { + _autoMapColorScheme = scheme; + }); + try { + await _autoViewController.setMapColorScheme(scheme); + } catch (e) { + _showMessage('Failed to set auto map color scheme: $e'); + } + } + }, + ); + } + + Widget _buildAutoNightModeChip(NavigationForceNightMode mode, String label) { + final bool isSelected = _autoForceNightMode == mode; + return FilterChip( + label: Text(label), + selected: isSelected, + onSelected: (bool selected) async { + if (selected) { + setState(() { + _autoForceNightMode = mode; + }); + try { + await _autoViewController.setForceNightMode(mode); + } catch (e) { + _showMessage('Failed to set auto force night mode: $e'); + } + } + }, + ); + } + void _showMessage(String message) { if (isOverlayVisible) { showOverlaySnackBar(message); diff --git a/example/lib/pages/navigation_without_map.dart b/example/lib/pages/navigation_without_map.dart index 548bd518..9bbe07e5 100644 --- a/example/lib/pages/navigation_without_map.dart +++ b/example/lib/pages/navigation_without_map.dart @@ -117,7 +117,11 @@ class _NavigationWithoutMapPageState } Future cleanupNavigationSession() async { - await GoogleMapsNavigator.cleanup(); + try { + await GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } setState(() { routeCalculated = false; guidanceRunning = false; diff --git a/example/lib/pages/turn_by_turn.dart b/example/lib/pages/turn_by_turn.dart index c57ca0c7..bb64da63 100644 --- a/example/lib/pages/turn_by_turn.dart +++ b/example/lib/pages/turn_by_turn.dart @@ -149,8 +149,12 @@ class _TurnByTurnPageState extends ExamplePageState { // Clear registered maneuver and lane images before cleanup await clearRegisteredImages(filter: RegisteredImageType.maneuver); await clearRegisteredImages(filter: RegisteredImageType.lanes); - await GoogleMapsNavigator.simulator.removeUserLocation(); - await GoogleMapsNavigator.cleanup(); + try { + await GoogleMapsNavigator.simulator.removeUserLocation(); + await GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } setState(() { _navigationRunning = false; @@ -166,7 +170,11 @@ class _TurnByTurnPageState extends ExamplePageState { // Clear registered maneuver and lane images before cleanup clearRegisteredImages(filter: RegisteredImageType.maneuver); clearRegisteredImages(filter: RegisteredImageType.lanes); - GoogleMapsNavigator.cleanup(); + try { + GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } } super.dispose(); } diff --git a/example/lib/pages/widget_initialization.dart b/example/lib/pages/widget_initialization.dart index b34ff46f..8812615e 100644 --- a/example/lib/pages/widget_initialization.dart +++ b/example/lib/pages/widget_initialization.dart @@ -73,7 +73,11 @@ class _ViewInitializationPageState @override void dispose() { if (_navigationInitialized) { - GoogleMapsNavigator.cleanup(); + try { + GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } } super.dispose(); } @@ -144,7 +148,11 @@ class _ViewInitializationPageState } Future _disposeNavigation() async { - await GoogleMapsNavigator.cleanup(); + try { + await GoogleMapsNavigator.cleanup(); + } on SessionNotInitializedException catch (_) { + // Session was not initialized, continue. + } await _updateNavigationInitializationState(); } diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/AutoMapViewOptions.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/AutoMapViewOptions.swift new file mode 100644 index 00000000..853b2130 --- /dev/null +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/AutoMapViewOptions.swift @@ -0,0 +1,47 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import Foundation +import GoogleMaps +import GoogleNavigation + +/// Options for configuring CarPlay map views. +/// Contains only settings relevant for CarPlay views. +public struct AutoMapViewOptions { + /// The initial camera position for the map view. + public let cameraPosition: GMSCameraPosition? + + /// Cloud-based map ID for custom styling. + public let mapId: String? + + /// The type of map to display. + public let mapType: GMSMapViewType? + + /// The color scheme for the map. + public let mapColorScheme: UIUserInterfaceStyle? + + /// Forces night mode regardless of system settings. + public let forceNightMode: GMSNavigationLightingMode? + + public init( + cameraPosition: GMSCameraPosition? = nil, mapId: String? = nil, mapType: GMSMapViewType? = nil, + mapColorScheme: UIUserInterfaceStyle? = nil, forceNightMode: GMSNavigationLightingMode? = nil + ) { + self.cameraPosition = cameraPosition + self.mapId = mapId + self.mapType = mapType + self.mapColorScheme = mapColorScheme + self.forceNightMode = forceNightMode + } +} diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/BaseCarSceneDelegate.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/BaseCarSceneDelegate.swift index 577ea77a..150fe2b2 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/BaseCarSceneDelegate.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/BaseCarSceneDelegate.swift @@ -19,6 +19,37 @@ import GoogleMaps open class BaseCarSceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate, CPMapTemplateDelegate { + /// Map options to use for CarPlay views. + /// Can be set before the CarPlay scene is created to customize map appearance. + public static var mapOptions: AutoMapViewOptions? + + /// Provides the map options to use when creating the CarPlay map view. + /// + /// Override this method in your BaseCarSceneDelegate subclass to provide custom map options + /// from the native layer. This is useful when you want to set map configuration (like mapId) + /// directly in native code instead of from Flutter, especially when the CarPlay screen + /// may already be open. + /// + /// The default implementation returns the value from the static property, which can be set + /// from Flutter via GoogleMapsAutoViewController.setAutoMapOptions(). + /// + /// - Returns: AutoMapViewOptions containing map configuration, or nil to use defaults + /// + /// Example: + /// ```swift + /// override func getAutoMapOptions() -> AutoMapViewOptions? { + /// return AutoMapViewOptions( + /// mapId: "your-map-id", + /// mapType: .satellite, + /// mapColorScheme: .dark, + /// forceNightMode: NavigationView.ForceNightMode.auto.rawValue + /// ) + /// } + /// ``` + open func getAutoMapOptions() -> AutoMapViewOptions? { + BaseCarSceneDelegate.mapOptions + } + private var interfaceController: CPInterfaceController? private var carWindow: CPWindow? private var mapTemplate: CPMapTemplate? @@ -79,6 +110,10 @@ open class BaseCarSceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate guard let self else { return } self.viewRegistry = viewRegistry self.autoViewEventApi = autoViewEventApi + + // Get map options from overridable method (can be customized in subclasses) + let autoMapOptions = self.getAutoMapOptions() + self.navView = GoogleMapsNavigationView( frame: templateApplicationScene.carWindow.screen.bounds, viewIdentifier: nil, @@ -86,21 +121,32 @@ open class BaseCarSceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate viewRegistry: viewRegistry, viewEventApi: nil, navigationUIEnabledPreference: NavigationUIEnabledPreference.automatic, - forceNightMode: nil, + forceNightMode: autoMapOptions?.forceNightMode, mapConfiguration: MapConfiguration( - cameraPosition: nil, - mapType: .normal, - compassEnabled: true, + cameraPosition: autoMapOptions?.cameraPosition, + mapType: autoMapOptions?.mapType ?? .normal, + compassEnabled: false, rotateGesturesEnabled: false, scrollGesturesEnabled: true, tiltGesturesEnabled: false, zoomGesturesEnabled: true, scrollGesturesEnabledDuringRotateOrZoom: false, - mapColorScheme: .unspecified + cameraTargetBounds: nil, + minZoomPreference: nil, + maxZoomPreference: nil, + padding: nil, + mapId: autoMapOptions?.mapId, + mapColorScheme: autoMapOptions?.mapColorScheme ?? .unspecified ), imageRegistry: imageRegistry, isCarPlayView: true ) + + // Set up prompt visibility callback to allow override + self.navView?.promptVisibilityCallback = { [weak self] promptVisible in + self?.onPromptVisibilityChanged(promptVisible: promptVisible) + } + self.navView?.setNavigationHeaderEnabled(false) self.navView?.setRecenterButtonEnabled(false) self.navView?.setNavigationFooterEnabled(false) @@ -152,10 +198,72 @@ open class BaseCarSceneDelegate: UIResponder, CPTemplateApplicationSceneDelegate return scrollAmount } + /// Checks if a traffic prompt is currently visible on the CarPlay screen. + /// + /// This can be useful to dynamically adjust your UI based on prompt visibility, + /// such as when deciding whether to show custom buttons or adjust your template. + /// + /// - Returns: true if a prompt is currently visible, false otherwise + /// + /// Example: + /// ```swift + /// override func getTemplate() -> CPMapTemplate { + /// let template = CPMapTemplate() + /// + /// // Only show custom buttons if prompt is not visible + /// if !isPromptVisible() { + /// template.leadingNavigationBarButtons = [customButton] + /// } + /// + /// return template + /// } + /// ``` + open func isPromptVisible() -> Bool { + return navView?.isPromptVisible() ?? false + } + + /// Called when traffic prompt visibility changes on the CarPlay screen. + /// + /// Override this method to customize behavior when prompts appear or disappear, + /// such as hiding custom UI elements or adjusting your template. + /// + /// The default implementation sends the event to Flutter via AutoViewEventApi. + /// + /// - Parameter promptVisible: true when a prompt becomes visible, false when it disappears + /// + /// Example: + /// ```swift + /// override func onPromptVisibilityChanged(promptVisible: Bool) { + /// super.onPromptVisibilityChanged(promptVisible: promptVisible) + /// + /// if promptVisible { + /// // Hide custom UI when prompt appears + /// mapTemplate?.leadingNavigationBarButtons = [] + /// } else { + /// // Restore custom UI when prompt disappears + /// mapTemplate?.leadingNavigationBarButtons = [customButton] + /// } + /// } + /// ``` + open func onPromptVisibilityChanged(promptVisible: Bool) { + // Default implementation: send event to Flutter + autoViewEventApi?.onPromptVisibilityChanged( + promptVisible: promptVisible, + completion: { _ in } + ) + } + open func sendCustomNavigationAutoEvent(event: String, data: Any) { autoViewEventApi?.onCustomNavigationAutoEvent(event: event, data: data) { _ in } } + // Called when Flutter sends a custom event to native via sendCustomNavigationAutoEvent + // Override this method in your CarSceneDelegate subclass to handle custom events from Flutter + open func onCustomNavigationAutoEventFromFlutter(event: String, data: Any) { + // Default implementation does nothing + // Subclasses can override to handle custom events + } + func sendAutoScreenAvailabilityChangedEvent(isAvailable: Bool) { autoViewEventApi?.onAutoScreenAvailabilityChanged(isAvailable: isAvailable) { _ in } } diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsAutoViewMessageHandler.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsAutoViewMessageHandler.swift index fd1499c6..eb089be5 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsAutoViewMessageHandler.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsAutoViewMessageHandler.swift @@ -105,6 +105,58 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi { try getView().setTrafficEnabled(enabled) } + func setTrafficPromptsEnabled(enabled: Bool) throws { + try getView().setTrafficPromptsEnabled(enabled) + } + + func setTrafficIncidentCardsEnabled(enabled: Bool) throws { + try getView().setTrafficIncidentCardsEnabled(enabled) + } + + func isNavigationTripProgressBarEnabled() throws -> Bool { + try getView().isNavigationTripProgressBarEnabled() + } + + func setNavigationTripProgressBarEnabled(enabled: Bool) throws { + try getView().setNavigationTripProgressBarEnabled(enabled) + } + + func isSpeedLimitIconEnabled() throws -> Bool { + try getView().isSpeedLimitIconEnabled() + } + + func setSpeedLimitIconEnabled(enabled: Bool) throws { + try getView().setSpeedLimitIconEnabled(enabled) + } + + func isSpeedometerEnabled() throws -> Bool { + try getView().isSpeedometerEnabled() + } + + func setSpeedometerEnabled(enabled: Bool) throws { + try getView().setSpeedometerEnabled(enabled) + } + + func showRouteOverview() throws { + try getView().showRouteOverview() + } + + func setAutoMapOptions(mapOptions: AutoMapOptionsDto) throws { + // Store the map options in BaseCarSceneDelegate static property + let options = AutoMapViewOptions( + cameraPosition: mapOptions.cameraPosition != nil + ? Convert.convertCameraPosition(position: mapOptions.cameraPosition!) : nil, + mapId: mapOptions.mapId, + mapType: mapOptions.mapType != nil + ? Convert.convertMapType(mapType: mapOptions.mapType!) : nil, + mapColorScheme: mapOptions.mapColorScheme != nil + ? Convert.convertMapColorScheme(mapColorScheme: mapOptions.mapColorScheme!) : nil, + forceNightMode: mapOptions.forceNightMode != nil + ? Convert.convertNavigationForceNightMode(forceNightMode: mapOptions.forceNightMode!) : nil + ) + BaseCarSceneDelegate.mapOptions = options + } + func isMyLocationEnabled() throws -> Bool { try getView().isMyLocationEnabled() } @@ -149,6 +201,14 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi { try getView().isTrafficEnabled() } + func isTrafficPromptsEnabled() throws -> Bool { + try getView().isTrafficPromptsEnabled() + } + + func isTrafficIncidentCardsEnabled() throws -> Bool { + try getView().isTrafficIncidentCardsEnabled() + } + func getMyLocation() throws -> LatLngDto? { do { guard let myLocation = try getView().getMyLocation() else { @@ -481,4 +541,36 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi { func getPadding() throws -> MapPaddingDto { try getView().getPadding() } + + func getMapColorScheme() throws -> MapColorSchemeDto { + try Convert.convertMapColorScheme(uiUserInterfaceStyle: getView().getMapColorScheme()) + } + + func setMapColorScheme(mapColorScheme: MapColorSchemeDto) throws { + let colorScheme = Convert.convertMapColorScheme(mapColorScheme: mapColorScheme) + try getView().setMapColorScheme(colorScheme: colorScheme) + } + + func getForceNightMode() throws -> NavigationForceNightModeDto { + try Convert.convertNavigationForceNightMode( + gmsNavigationLightingMode: getView().getForceNightMode() + ) + } + + func setForceNightMode(forceNightMode: NavigationForceNightModeDto) throws { + let nightMode = Convert.convertNavigationForceNightMode( + forceNightMode: forceNightMode + ) + try getView().setForceNightMode(nightMode) + } + + func sendCustomNavigationAutoEvent(event: String, data: Any) throws { + // This method receives custom events from Flutter. + // The implementation is left empty by design, as developers should handle + // custom events in their BaseCarSceneDelegate subclass by overriding + // onCustomNavigationAutoEventFromFlutter method. + // + // Note: If you need to handle events here, you would need to maintain a reference + // to your CarSceneDelegate instance and call a method on it. + } } diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift index 8e7a2c93..45f46684 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift @@ -55,6 +55,13 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle // is handled by the view. private var _isTrafficPromptsEnabled: Bool = true + // Track current prompt visibility state + private var _isPromptVisible: Bool = false + + // Callback for CarPlay views to handle prompt visibility changes + // This allows BaseCarSceneDelegate to intercept and handle the event + var promptVisibilityCallback: ((Bool) -> Void)? + public func view() -> UIView { _mapView } @@ -612,6 +619,10 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle } } + func isPromptVisible() -> Bool { + return _isPromptVisible + } + func isNavigationUIEnabled() -> Bool { _mapView.isNavigationEnabled } @@ -1105,11 +1116,22 @@ extension GoogleMapsNavigationView: GMSMapViewDelegate { } func sendPromptVisibilityChangedEvent(promptVisible: Bool) { - getViewEventApi()?.onPromptVisibilityChanged( - viewId: _viewId!, - promptVisible: promptVisible, - completion: { _ in } - ) + // Update the prompt visibility state + _isPromptVisible = promptVisible + + // For CarPlay views, use callback if set (allows override in BaseCarSceneDelegate) + // Otherwise send to regular ViewEventApi + if _isCarPlayView { + if let callback = promptVisibilityCallback { + callback(promptVisible) + } + } else { + getViewEventApi()?.onPromptVisibilityChanged( + viewId: _viewId!, + promptVisible: promptVisible, + completion: { _ in } + ) + } } } diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift index 2e908426..52304c47 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/messages.g.swift @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -500,6 +500,54 @@ enum TaskRemovedBehaviorDto: Int { case quitService = 1 } +/// Object containing auto/carplay map options. +/// +/// Generated class from Pigeon that represents data sent in messages. +struct AutoMapOptionsDto: Hashable { + /// The initial positioning of the camera in the map view. + var cameraPosition: CameraPositionDto? = nil + /// Cloud-based map ID for custom styling. + var mapId: String? = nil + /// The type of map to display (e.g., satellite, terrain, hybrid, etc.). + var mapType: MapTypeDto? = nil + /// The color scheme for the map (light, dark, or follow system). + var mapColorScheme: MapColorSchemeDto? = nil + /// Forces night mode (dark theme) regardless of system settings. + var forceNightMode: NavigationForceNightModeDto? = nil + + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ pigeonVar_list: [Any?]) -> AutoMapOptionsDto? { + let cameraPosition: CameraPositionDto? = nilOrValue(pigeonVar_list[0]) + let mapId: String? = nilOrValue(pigeonVar_list[1]) + let mapType: MapTypeDto? = nilOrValue(pigeonVar_list[2]) + let mapColorScheme: MapColorSchemeDto? = nilOrValue(pigeonVar_list[3]) + let forceNightMode: NavigationForceNightModeDto? = nilOrValue(pigeonVar_list[4]) + + return AutoMapOptionsDto( + cameraPosition: cameraPosition, + mapId: mapId, + mapType: mapType, + mapColorScheme: mapColorScheme, + forceNightMode: forceNightMode + ) + } + func toList() -> [Any?] { + return [ + cameraPosition, + mapId, + mapType, + mapColorScheme, + forceNightMode, + ] + } + static func == (lhs: AutoMapOptionsDto, rhs: AutoMapOptionsDto) -> Bool { + return deepEqualsmessages(lhs.toList(), rhs.toList()) + } + func hash(into hasher: inout Hasher) { + deepHashmessages(value: toList(), hasher: &hasher) + } +} + /// Object containing map options used to initialize Google Map view. /// /// Generated class from Pigeon that represents data sent in messages. @@ -2453,95 +2501,97 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { } return nil case 155: - return MapOptionsDto.fromList(self.readValue() as! [Any?]) + return AutoMapOptionsDto.fromList(self.readValue() as! [Any?]) case 156: - return NavigationViewOptionsDto.fromList(self.readValue() as! [Any?]) + return MapOptionsDto.fromList(self.readValue() as! [Any?]) case 157: - return ViewCreationOptionsDto.fromList(self.readValue() as! [Any?]) + return NavigationViewOptionsDto.fromList(self.readValue() as! [Any?]) case 158: - return CameraPositionDto.fromList(self.readValue() as! [Any?]) + return ViewCreationOptionsDto.fromList(self.readValue() as! [Any?]) case 159: - return MarkerDto.fromList(self.readValue() as! [Any?]) + return CameraPositionDto.fromList(self.readValue() as! [Any?]) case 160: - return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) + return MarkerDto.fromList(self.readValue() as! [Any?]) case 161: - return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) + return MarkerOptionsDto.fromList(self.readValue() as! [Any?]) case 162: - return InfoWindowDto.fromList(self.readValue() as! [Any?]) + return ImageDescriptorDto.fromList(self.readValue() as! [Any?]) case 163: - return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) + return InfoWindowDto.fromList(self.readValue() as! [Any?]) case 164: - return PointOfInterestDto.fromList(self.readValue() as! [Any?]) + return MarkerAnchorDto.fromList(self.readValue() as! [Any?]) case 165: - return PolygonDto.fromList(self.readValue() as! [Any?]) + return PointOfInterestDto.fromList(self.readValue() as! [Any?]) case 166: - return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) + return PolygonDto.fromList(self.readValue() as! [Any?]) case 167: - return PolygonHoleDto.fromList(self.readValue() as! [Any?]) + return PolygonOptionsDto.fromList(self.readValue() as! [Any?]) case 168: - return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) + return PolygonHoleDto.fromList(self.readValue() as! [Any?]) case 169: - return StyleSpanDto.fromList(self.readValue() as! [Any?]) + return StyleSpanStrokeStyleDto.fromList(self.readValue() as! [Any?]) case 170: - return PolylineDto.fromList(self.readValue() as! [Any?]) + return StyleSpanDto.fromList(self.readValue() as! [Any?]) case 171: - return PatternItemDto.fromList(self.readValue() as! [Any?]) + return PolylineDto.fromList(self.readValue() as! [Any?]) case 172: - return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) + return PatternItemDto.fromList(self.readValue() as! [Any?]) case 173: - return CircleDto.fromList(self.readValue() as! [Any?]) + return PolylineOptionsDto.fromList(self.readValue() as! [Any?]) case 174: - return CircleOptionsDto.fromList(self.readValue() as! [Any?]) + return CircleDto.fromList(self.readValue() as! [Any?]) case 175: - return MapPaddingDto.fromList(self.readValue() as! [Any?]) + return CircleOptionsDto.fromList(self.readValue() as! [Any?]) case 176: - return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) + return MapPaddingDto.fromList(self.readValue() as! [Any?]) case 177: - return DestinationsDto.fromList(self.readValue() as! [Any?]) + return RouteTokenOptionsDto.fromList(self.readValue() as! [Any?]) case 178: - return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) + return DestinationsDto.fromList(self.readValue() as! [Any?]) case 179: - return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) + return RoutingOptionsDto.fromList(self.readValue() as! [Any?]) case 180: - return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) + return NavigationDisplayOptionsDto.fromList(self.readValue() as! [Any?]) case 181: - return ContinueToNextDestinationResponseDto.fromList(self.readValue() as! [Any?]) + return NavigationWaypointDto.fromList(self.readValue() as! [Any?]) case 182: - return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) + return ContinueToNextDestinationResponseDto.fromList(self.readValue() as! [Any?]) case 183: - return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) + return NavigationTimeAndDistanceDto.fromList(self.readValue() as! [Any?]) case 184: - return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) + return NavigationAudioGuidanceSettingsDto.fromList(self.readValue() as! [Any?]) case 185: - return LatLngDto.fromList(self.readValue() as! [Any?]) + return SimulationOptionsDto.fromList(self.readValue() as! [Any?]) case 186: - return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) + return LatLngDto.fromList(self.readValue() as! [Any?]) case 187: - return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) + return LatLngBoundsDto.fromList(self.readValue() as! [Any?]) case 188: - return GpsAvailabilityChangeEventDto.fromList(self.readValue() as! [Any?]) + return SpeedingUpdatedEventDto.fromList(self.readValue() as! [Any?]) case 189: - return SpeedAlertOptionsThresholdPercentageDto.fromList(self.readValue() as! [Any?]) + return GpsAvailabilityChangeEventDto.fromList(self.readValue() as! [Any?]) case 190: - return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) + return SpeedAlertOptionsThresholdPercentageDto.fromList(self.readValue() as! [Any?]) case 191: + return SpeedAlertOptionsDto.fromList(self.readValue() as! [Any?]) + case 192: return RouteSegmentTrafficDataRoadStretchRenderingDataDto.fromList( self.readValue() as! [Any?]) - case 192: - return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 193: - return RouteSegmentDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentTrafficDataDto.fromList(self.readValue() as! [Any?]) case 194: - return LaneDirectionDto.fromList(self.readValue() as! [Any?]) + return RouteSegmentDto.fromList(self.readValue() as! [Any?]) case 195: - return LaneDto.fromList(self.readValue() as! [Any?]) + return LaneDirectionDto.fromList(self.readValue() as! [Any?]) case 196: - return StepInfoDto.fromList(self.readValue() as! [Any?]) + return LaneDto.fromList(self.readValue() as! [Any?]) case 197: - return NavInfoDto.fromList(self.readValue() as! [Any?]) + return StepInfoDto.fromList(self.readValue() as! [Any?]) case 198: - return TermsAndConditionsUIParamsDto.fromList(self.readValue() as! [Any?]) + return NavInfoDto.fromList(self.readValue() as! [Any?]) case 199: + return TermsAndConditionsUIParamsDto.fromList(self.readValue() as! [Any?]) + case 200: return StepImageGenerationOptionsDto.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) @@ -2629,141 +2679,144 @@ private class MessagesPigeonCodecWriter: FlutterStandardWriter { } else if let value = value as? TaskRemovedBehaviorDto { super.writeByte(154) super.writeValue(value.rawValue) - } else if let value = value as? MapOptionsDto { + } else if let value = value as? AutoMapOptionsDto { super.writeByte(155) super.writeValue(value.toList()) - } else if let value = value as? NavigationViewOptionsDto { + } else if let value = value as? MapOptionsDto { super.writeByte(156) super.writeValue(value.toList()) - } else if let value = value as? ViewCreationOptionsDto { + } else if let value = value as? NavigationViewOptionsDto { super.writeByte(157) super.writeValue(value.toList()) - } else if let value = value as? CameraPositionDto { + } else if let value = value as? ViewCreationOptionsDto { super.writeByte(158) super.writeValue(value.toList()) - } else if let value = value as? MarkerDto { + } else if let value = value as? CameraPositionDto { super.writeByte(159) super.writeValue(value.toList()) - } else if let value = value as? MarkerOptionsDto { + } else if let value = value as? MarkerDto { super.writeByte(160) super.writeValue(value.toList()) - } else if let value = value as? ImageDescriptorDto { + } else if let value = value as? MarkerOptionsDto { super.writeByte(161) super.writeValue(value.toList()) - } else if let value = value as? InfoWindowDto { + } else if let value = value as? ImageDescriptorDto { super.writeByte(162) super.writeValue(value.toList()) - } else if let value = value as? MarkerAnchorDto { + } else if let value = value as? InfoWindowDto { super.writeByte(163) super.writeValue(value.toList()) - } else if let value = value as? PointOfInterestDto { + } else if let value = value as? MarkerAnchorDto { super.writeByte(164) super.writeValue(value.toList()) - } else if let value = value as? PolygonDto { + } else if let value = value as? PointOfInterestDto { super.writeByte(165) super.writeValue(value.toList()) - } else if let value = value as? PolygonOptionsDto { + } else if let value = value as? PolygonDto { super.writeByte(166) super.writeValue(value.toList()) - } else if let value = value as? PolygonHoleDto { + } else if let value = value as? PolygonOptionsDto { super.writeByte(167) super.writeValue(value.toList()) - } else if let value = value as? StyleSpanStrokeStyleDto { + } else if let value = value as? PolygonHoleDto { super.writeByte(168) super.writeValue(value.toList()) - } else if let value = value as? StyleSpanDto { + } else if let value = value as? StyleSpanStrokeStyleDto { super.writeByte(169) super.writeValue(value.toList()) - } else if let value = value as? PolylineDto { + } else if let value = value as? StyleSpanDto { super.writeByte(170) super.writeValue(value.toList()) - } else if let value = value as? PatternItemDto { + } else if let value = value as? PolylineDto { super.writeByte(171) super.writeValue(value.toList()) - } else if let value = value as? PolylineOptionsDto { + } else if let value = value as? PatternItemDto { super.writeByte(172) super.writeValue(value.toList()) - } else if let value = value as? CircleDto { + } else if let value = value as? PolylineOptionsDto { super.writeByte(173) super.writeValue(value.toList()) - } else if let value = value as? CircleOptionsDto { + } else if let value = value as? CircleDto { super.writeByte(174) super.writeValue(value.toList()) - } else if let value = value as? MapPaddingDto { + } else if let value = value as? CircleOptionsDto { super.writeByte(175) super.writeValue(value.toList()) - } else if let value = value as? RouteTokenOptionsDto { + } else if let value = value as? MapPaddingDto { super.writeByte(176) super.writeValue(value.toList()) - } else if let value = value as? DestinationsDto { + } else if let value = value as? RouteTokenOptionsDto { super.writeByte(177) super.writeValue(value.toList()) - } else if let value = value as? RoutingOptionsDto { + } else if let value = value as? DestinationsDto { super.writeByte(178) super.writeValue(value.toList()) - } else if let value = value as? NavigationDisplayOptionsDto { + } else if let value = value as? RoutingOptionsDto { super.writeByte(179) super.writeValue(value.toList()) - } else if let value = value as? NavigationWaypointDto { + } else if let value = value as? NavigationDisplayOptionsDto { super.writeByte(180) super.writeValue(value.toList()) - } else if let value = value as? ContinueToNextDestinationResponseDto { + } else if let value = value as? NavigationWaypointDto { super.writeByte(181) super.writeValue(value.toList()) - } else if let value = value as? NavigationTimeAndDistanceDto { + } else if let value = value as? ContinueToNextDestinationResponseDto { super.writeByte(182) super.writeValue(value.toList()) - } else if let value = value as? NavigationAudioGuidanceSettingsDto { + } else if let value = value as? NavigationTimeAndDistanceDto { super.writeByte(183) super.writeValue(value.toList()) - } else if let value = value as? SimulationOptionsDto { + } else if let value = value as? NavigationAudioGuidanceSettingsDto { super.writeByte(184) super.writeValue(value.toList()) - } else if let value = value as? LatLngDto { + } else if let value = value as? SimulationOptionsDto { super.writeByte(185) super.writeValue(value.toList()) - } else if let value = value as? LatLngBoundsDto { + } else if let value = value as? LatLngDto { super.writeByte(186) super.writeValue(value.toList()) - } else if let value = value as? SpeedingUpdatedEventDto { + } else if let value = value as? LatLngBoundsDto { super.writeByte(187) super.writeValue(value.toList()) - } else if let value = value as? GpsAvailabilityChangeEventDto { + } else if let value = value as? SpeedingUpdatedEventDto { super.writeByte(188) super.writeValue(value.toList()) - } else if let value = value as? SpeedAlertOptionsThresholdPercentageDto { + } else if let value = value as? GpsAvailabilityChangeEventDto { super.writeByte(189) super.writeValue(value.toList()) - } else if let value = value as? SpeedAlertOptionsDto { + } else if let value = value as? SpeedAlertOptionsThresholdPercentageDto { super.writeByte(190) super.writeValue(value.toList()) - } else if let value = value as? RouteSegmentTrafficDataRoadStretchRenderingDataDto { + } else if let value = value as? SpeedAlertOptionsDto { super.writeByte(191) super.writeValue(value.toList()) - } else if let value = value as? RouteSegmentTrafficDataDto { + } else if let value = value as? RouteSegmentTrafficDataRoadStretchRenderingDataDto { super.writeByte(192) super.writeValue(value.toList()) - } else if let value = value as? RouteSegmentDto { + } else if let value = value as? RouteSegmentTrafficDataDto { super.writeByte(193) super.writeValue(value.toList()) - } else if let value = value as? LaneDirectionDto { + } else if let value = value as? RouteSegmentDto { super.writeByte(194) super.writeValue(value.toList()) - } else if let value = value as? LaneDto { + } else if let value = value as? LaneDirectionDto { super.writeByte(195) super.writeValue(value.toList()) - } else if let value = value as? StepInfoDto { + } else if let value = value as? LaneDto { super.writeByte(196) super.writeValue(value.toList()) - } else if let value = value as? NavInfoDto { + } else if let value = value as? StepInfoDto { super.writeByte(197) super.writeValue(value.toList()) - } else if let value = value as? TermsAndConditionsUIParamsDto { + } else if let value = value as? NavInfoDto { super.writeByte(198) super.writeValue(value.toList()) - } else if let value = value as? StepImageGenerationOptionsDto { + } else if let value = value as? TermsAndConditionsUIParamsDto { super.writeByte(199) super.writeValue(value.toList()) + } else if let value = value as? StepImageGenerationOptionsDto { + super.writeByte(200) + super.writeValue(value.toList()) } else { super.writeValue(value) } @@ -6403,6 +6456,10 @@ class NavigationSessionEventApi: NavigationSessionEventApiProtocol { } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol AutoMapViewApi { + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + func setAutoMapOptions(mapOptions: AutoMapOptionsDto) throws func isMyLocationEnabled() throws -> Bool func setMyLocationEnabled(enabled: Bool) throws func getMyLocation() throws -> LatLngDto? @@ -6454,6 +6511,11 @@ protocol AutoMapViewApi { func setTiltGesturesEnabled(enabled: Bool) throws func setMapToolbarEnabled(enabled: Bool) throws func setTrafficEnabled(enabled: Bool) throws + func setTrafficPromptsEnabled(enabled: Bool) throws + func setTrafficIncidentCardsEnabled(enabled: Bool) throws + func setNavigationTripProgressBarEnabled(enabled: Bool) throws + func setSpeedLimitIconEnabled(enabled: Bool) throws + func setSpeedometerEnabled(enabled: Bool) throws func isMyLocationButtonEnabled() throws -> Bool func isConsumeMyLocationButtonClickEventsEnabled() throws -> Bool func isZoomGesturesEnabled() throws -> Bool @@ -6465,6 +6527,12 @@ protocol AutoMapViewApi { func isTiltGesturesEnabled() throws -> Bool func isMapToolbarEnabled() throws -> Bool func isTrafficEnabled() throws -> Bool + func isTrafficPromptsEnabled() throws -> Bool + func isTrafficIncidentCardsEnabled() throws -> Bool + func isNavigationTripProgressBarEnabled() throws -> Bool + func isSpeedLimitIconEnabled() throws -> Bool + func isSpeedometerEnabled() throws -> Bool + func showRouteOverview() throws func getMarkers() throws -> [MarkerDto] func addMarkers(markers: [MarkerDto]) throws -> [MarkerDto] func updateMarkers(markers: [MarkerDto]) throws -> [MarkerDto] @@ -6490,6 +6558,11 @@ protocol AutoMapViewApi { func isAutoScreenAvailable() throws -> Bool func setPadding(padding: MapPaddingDto) throws func getPadding() throws -> MapPaddingDto + func getMapColorScheme() throws -> MapColorSchemeDto + func setMapColorScheme(mapColorScheme: MapColorSchemeDto) throws + func getForceNightMode() throws -> NavigationForceNightModeDto + func setForceNightMode(forceNightMode: NavigationForceNightModeDto) throws + func sendCustomNavigationAutoEvent(event: String, data: Any) throws } /// Generated setup class from Pigeon to handle messages through the `binaryMessenger`. @@ -6500,6 +6573,27 @@ class AutoMapViewApiSetup { binaryMessenger: FlutterBinaryMessenger, api: AutoMapViewApi?, messageChannelSuffix: String = "" ) { let channelSuffix = messageChannelSuffix.count > 0 ? ".\(messageChannelSuffix)" : "" + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + let setAutoMapOptionsChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setAutoMapOptionsChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapOptionsArg = args[0] as! AutoMapOptionsDto + do { + try api.setAutoMapOptions(mapOptions: mapOptionsArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setAutoMapOptionsChannel.setMessageHandler(nil) + } let isMyLocationEnabledChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled\(channelSuffix)", @@ -7226,6 +7320,96 @@ class AutoMapViewApiSetup { } else { setTrafficEnabledChannel.setMessageHandler(nil) } + let setTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setTrafficPromptsEnabledChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enabledArg = args[0] as! Bool + do { + try api.setTrafficPromptsEnabled(enabled: enabledArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setTrafficPromptsEnabledChannel.setMessageHandler(nil) + } + let setTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setTrafficIncidentCardsEnabledChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enabledArg = args[0] as! Bool + do { + try api.setTrafficIncidentCardsEnabled(enabled: enabledArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) + } + let setNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setNavigationTripProgressBarEnabledChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enabledArg = args[0] as! Bool + do { + try api.setNavigationTripProgressBarEnabled(enabled: enabledArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) + } + let setSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setSpeedLimitIconEnabledChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enabledArg = args[0] as! Bool + do { + try api.setSpeedLimitIconEnabled(enabled: enabledArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setSpeedLimitIconEnabledChannel.setMessageHandler(nil) + } + let setSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setSpeedometerEnabledChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let enabledArg = args[0] as! Bool + do { + try api.setSpeedometerEnabled(enabled: enabledArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setSpeedometerEnabledChannel.setMessageHandler(nil) + } let isMyLocationButtonEnabledChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled\(channelSuffix)", @@ -7402,6 +7586,102 @@ class AutoMapViewApiSetup { } else { isTrafficEnabledChannel.setMessageHandler(nil) } + let isTrafficPromptsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + isTrafficPromptsEnabledChannel.setMessageHandler { _, reply in + do { + let result = try api.isTrafficPromptsEnabled() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + isTrafficPromptsEnabledChannel.setMessageHandler(nil) + } + let isTrafficIncidentCardsEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + isTrafficIncidentCardsEnabledChannel.setMessageHandler { _, reply in + do { + let result = try api.isTrafficIncidentCardsEnabled() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + isTrafficIncidentCardsEnabledChannel.setMessageHandler(nil) + } + let isNavigationTripProgressBarEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + isNavigationTripProgressBarEnabledChannel.setMessageHandler { _, reply in + do { + let result = try api.isNavigationTripProgressBarEnabled() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + isNavigationTripProgressBarEnabledChannel.setMessageHandler(nil) + } + let isSpeedLimitIconEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + isSpeedLimitIconEnabledChannel.setMessageHandler { _, reply in + do { + let result = try api.isSpeedLimitIconEnabled() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + isSpeedLimitIconEnabledChannel.setMessageHandler(nil) + } + let isSpeedometerEnabledChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + isSpeedometerEnabledChannel.setMessageHandler { _, reply in + do { + let result = try api.isSpeedometerEnabled() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + isSpeedometerEnabledChannel.setMessageHandler(nil) + } + let showRouteOverviewChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + showRouteOverviewChannel.setMessageHandler { _, reply in + do { + try api.showRouteOverview() + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + showRouteOverviewChannel.setMessageHandler(nil) + } let getMarkersChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers\(channelSuffix)", @@ -7827,6 +8107,93 @@ class AutoMapViewApiSetup { } else { getPaddingChannel.setMessageHandler(nil) } + let getMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + getMapColorSchemeChannel.setMessageHandler { _, reply in + do { + let result = try api.getMapColorScheme() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + getMapColorSchemeChannel.setMessageHandler(nil) + } + let setMapColorSchemeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setMapColorSchemeChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let mapColorSchemeArg = args[0] as! MapColorSchemeDto + do { + try api.setMapColorScheme(mapColorScheme: mapColorSchemeArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setMapColorSchemeChannel.setMessageHandler(nil) + } + let getForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + getForceNightModeChannel.setMessageHandler { _, reply in + do { + let result = try api.getForceNightMode() + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + getForceNightModeChannel.setMessageHandler(nil) + } + let setForceNightModeChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + setForceNightModeChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let forceNightModeArg = args[0] as! NavigationForceNightModeDto + do { + try api.setForceNightMode(forceNightMode: forceNightModeArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + setForceNightModeChannel.setMessageHandler(nil) + } + let sendCustomNavigationAutoEventChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + sendCustomNavigationAutoEventChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let eventArg = args[0] as! String + let dataArg = args[1]! + do { + try api.sendCustomNavigationAutoEvent(event: eventArg, data: dataArg) + reply(wrapResult(nil)) + } catch { + reply(wrapError(error)) + } + } + } else { + sendCustomNavigationAutoEventChannel.setMessageHandler(nil) + } } } /// Generated protocol from Pigeon that represents Flutter messages that can be called from Swift. @@ -7836,6 +8203,8 @@ protocol AutoViewEventApiProtocol { completion: @escaping (Result) -> Void) func onAutoScreenAvailabilityChanged( isAvailable isAvailableArg: Bool, completion: @escaping (Result) -> Void) + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void) } class AutoViewEventApi: AutoViewEventApiProtocol { private let binaryMessenger: FlutterBinaryMessenger @@ -7892,6 +8261,28 @@ class AutoViewEventApi: AutoViewEventApiProtocol { } } } + func onPromptVisibilityChanged( + promptVisible promptVisibleArg: Bool, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([promptVisibleArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + completion(.success(())) + } + } + } } /// Generated protocol from Pigeon that represents a handler of messages from Flutter. protocol NavigationInspector { diff --git a/lib/src/google_maps_auto_view_controller.dart b/lib/src/google_maps_auto_view_controller.dart index f69cdac1..4f50e3f8 100644 --- a/lib/src/google_maps_auto_view_controller.dart +++ b/lib/src/google_maps_auto_view_controller.dart @@ -24,6 +24,48 @@ class GoogleMapsAutoViewController { GoogleMapsNavigationPlatform.instance.autoAPI.ensureAutoViewApiSetUp(); } + /// Sets the map options to be used for Android Auto and CarPlay views. + /// + /// This method should be called before the Android Auto or CarPlay screen is created + /// to customize the map appearance. + /// + /// The [mapOptions] parameter allows you to specify: + /// - cameraPosition: The initial positioning of the camera (target, zoom, bearing, tilt) + /// - mapId: A cloud-based map ID for custom styling + /// - mapType: The type of map to display (normal, satellite, terrain, hybrid) + /// - mapColorScheme: Color scheme affecting map colors, roads, and labels (light, dark, or follow system) + /// - forceNightMode: Controls light/dark mode for navigation UI when navigation is running + /// + /// Note: mapColorScheme and forceNightMode are independent settings: + /// - mapColorScheme controls the map's visual appearance (roads, labels, terrain colors) + /// - forceNightMode controls the navigation UI mode (light/dark) when navigation is active + /// + /// This is a static configuration that affects all auto/carplay views. + /// Gesture controls and other UI elements are not configurable as they are + /// handled by the Android Auto and CarPlay systems. + /// + /// Example usage: + /// ```dart + /// // Set before Android Auto or CarPlay screen is created + /// await GoogleMapsAutoViewController.setAutoMapOptions( + /// AutoMapOptions( + /// cameraPosition: CameraPosition( + /// target: LatLng(37.7749, -122.4194), + /// zoom: 14.0, + /// ), + /// mapId: 'your-cloud-based-map-id', + /// mapType: MapType.hybrid, + /// mapColorScheme: MapColorScheme.dark, + /// forceNightMode: NavigationForceNightMode.forceNight, + /// ), + /// ); + /// ``` + static Future setAutoMapOptions(AutoMapOptions mapOptions) { + return GoogleMapsNavigationPlatform.instance.autoAPI.setAutoMapOptions( + mapOptions: mapOptions, + ); + } + /// Change status of my location enabled. Future setMyLocationEnabled(bool enabled) { return GoogleMapsNavigationPlatform.instance.autoAPI.setMyLocationEnabled( @@ -364,11 +406,225 @@ class GoogleMapsAutoViewController { return GoogleMapsNavigationPlatform.instance.autoAPI.getPadding(); } + /// Returns whether the Android Auto or CarPlay map view is currently available. Future isAutoScreenAvailable() { return GoogleMapsNavigationPlatform.instance.autoAPI .isAutoScreenAvailable(); } + /// Enable or disable traffic prompts on the Android Auto or CarPlay map view. + /// + /// When enabled, traffic prompts are displayed on the map during navigation + /// to inform the driver about traffic conditions along the route. + /// + /// This setting persists across navigation sessions. + /// + /// Example: + /// ```dart + /// await autoViewController.setTrafficPromptsEnabled(true); + /// ``` + Future setTrafficPromptsEnabled(bool enabled) { + return GoogleMapsNavigationPlatform.instance.autoAPI + .setTrafficPromptsEnabled(enabled: enabled); + } + + /// Returns whether traffic prompts are currently enabled on the + /// Android Auto or CarPlay map view. + Future isTrafficPromptsEnabled() { + return GoogleMapsNavigationPlatform.instance.autoAPI + .isTrafficPromptsEnabled(); + } + + /// Sets whether traffic incident cards are enabled on the Android Auto or CarPlay view. + /// + /// Traffic incident cards display information about accidents, construction, + /// road closures, and other incidents along the route. + /// + /// Example: + /// ```dart + /// await autoViewController.setTrafficIncidentCardsEnabled(true); + /// ``` + Future setTrafficIncidentCardsEnabled(bool enabled) { + return GoogleMapsNavigationPlatform.instance.autoAPI + .setTrafficIncidentCardsEnabled(enabled: enabled); + } + + /// Returns whether traffic incident cards are currently enabled on the + /// Android Auto or CarPlay map view. + Future isTrafficIncidentCardsEnabled() { + return GoogleMapsNavigationPlatform.instance.autoAPI + .isTrafficIncidentCardsEnabled(); + } + + /// Returns whether the navigation trip progress bar is enabled on the + /// Android Auto or CarPlay map view. + /// + /// The trip progress bar shows the progress of the current navigation trip. + Future isNavigationTripProgressBarEnabled() { + return GoogleMapsNavigationPlatform.instance.autoAPI + .isNavigationTripProgressBarEnabled(); + } + + /// Sets whether the navigation trip progress bar is enabled on the + /// Android Auto or CarPlay view. + /// + /// The trip progress bar shows the progress along the route during navigation. + /// + /// Example: + /// ```dart + /// await autoViewController.setNavigationTripProgressBarEnabled(true); + /// ``` + Future setNavigationTripProgressBarEnabled(bool enabled) { + return GoogleMapsNavigationPlatform.instance.autoAPI + .setNavigationTripProgressBarEnabled(enabled: enabled); + } + + /// Returns whether the speed limit icon is enabled on the + /// Android Auto or CarPlay map view. + Future isSpeedLimitIconEnabled() { + return GoogleMapsNavigationPlatform.instance.autoAPI + .isSpeedLimitIconEnabled(); + } + + /// Sets whether the speed limit icon is enabled on the Android Auto or CarPlay view. + /// + /// When enabled, the current speed limit is displayed on the map during navigation. + /// + /// Example: + /// ```dart + /// await autoViewController.setSpeedLimitIconEnabled(true); + /// ``` + Future setSpeedLimitIconEnabled(bool enabled) { + return GoogleMapsNavigationPlatform.instance.autoAPI + .setSpeedLimitIconEnabled(enabled: enabled); + } + + /// Returns whether the speedometer is enabled on the + /// Android Auto or CarPlay map view. + Future isSpeedometerEnabled() { + return GoogleMapsNavigationPlatform.instance.autoAPI.isSpeedometerEnabled(); + } + + /// Sets whether the speedometer is enabled on the Android Auto or CarPlay view. + /// + /// When enabled, the current driving speed is displayed on the map during navigation. + /// + /// Example: + /// ```dart + /// await autoViewController.setSpeedometerEnabled(true); + /// ``` + Future setSpeedometerEnabled(bool enabled) { + return GoogleMapsNavigationPlatform.instance.autoAPI.setSpeedometerEnabled( + enabled: enabled, + ); + } + + /// Shows the route overview on the Android Auto or CarPlay map view. + /// + /// This adjusts the camera to show the entire route on the screen, + /// providing the user with an overview of their navigation route. + /// + /// Example: + /// ```dart + /// await autoViewController.showRouteOverview(); + /// ``` + Future showRouteOverview() { + return GoogleMapsNavigationPlatform.instance.autoAPI.showRouteOverview(); + } + + /// Gets the current map color scheme for the Android Auto or CarPlay view. + /// + /// Returns the map color scheme (light, dark, or follow system). + /// + /// Example: + /// ```dart + /// final scheme = await autoViewController.getMapColorScheme(); + /// print('Current scheme: $scheme'); + /// ``` + Future getMapColorScheme() { + return GoogleMapsNavigationPlatform.instance.autoAPI.getMapColorScheme(); + } + + /// Sets the map color scheme for the Android Auto or CarPlay view. + /// + /// The color scheme affects how map tiles are rendered. + /// + /// Example: + /// ```dart + /// await autoViewController.setMapColorScheme(MapColorScheme.dark); + /// ``` + Future setMapColorScheme(MapColorScheme mapColorScheme) { + return GoogleMapsNavigationPlatform.instance.autoAPI.setMapColorScheme( + mapColorScheme: mapColorScheme, + ); + } + + /// Gets the current force night mode setting for the Android Auto or CarPlay navigation view. + /// + /// Returns the force night mode setting. + /// + /// Example: + /// ```dart + /// final mode = await autoViewController.getForceNightMode(); + /// print('Current night mode: $mode'); + /// ``` + Future getForceNightMode() { + return GoogleMapsNavigationPlatform.instance.autoAPI.getForceNightMode(); + } + + /// Sets the force night mode for the Android Auto or CarPlay navigation view. + /// + /// This controls whether the navigation UI uses night mode styling. + /// + /// Example: + /// ```dart + /// await autoViewController.setForceNightMode(NavigationForceNightMode.forceNight); + /// ``` + Future setForceNightMode(NavigationForceNightMode forceNightMode) { + return GoogleMapsNavigationPlatform.instance.autoAPI.setForceNightMode( + forceNightMode: forceNightMode, + ); + } + + /// Sends a custom event from Flutter to the native Android Auto or CarPlay implementation. + /// + /// This allows you to communicate custom data from your Flutter app to your native + /// Android Auto screen or CarPlay scene delegate implementations. + /// + /// The [event] parameter identifies the type of event being sent. + /// The [data] parameter contains the event payload, which can be any serializable type. + /// + /// Note: You must handle this event in your native implementation: + /// - Android: Override the event handling in your `AndroidAutoBaseScreen` subclass + /// - iOS: Override the event handling in your `BaseCarSceneDelegate` subclass + /// + /// Example: + /// ```dart + /// await autoViewController.sendCustomNavigationAutoEvent( + /// 'showMenu', + /// {'menuId': 'myMenu'} + /// ); + /// ``` + Future sendCustomNavigationAutoEvent(String event, Object data) { + return GoogleMapsNavigationPlatform.instance.autoAPI + .sendCustomNavigationAutoEvent(event: event, data: data); + } + + /// Listens for custom navigation events sent from the native Android Auto or CarPlay code. + /// + /// This allows your native Android Auto or CarPlay implementation to send + /// custom events back to your Flutter application. + /// + /// The [func] callback will be invoked whenever a custom event is received from + /// the native layer. + /// + /// Example: + /// ```dart + /// autoViewController.listenForCustomNavigationAutoEvents((event) { + /// print('Received event: ${event.event}'); + /// print('Event data: ${event.data}'); + /// }); + /// ``` void listenForCustomNavigationAutoEvents( void Function(CustomNavigationAutoEvent event) func, ) { @@ -379,6 +635,22 @@ class GoogleMapsAutoViewController { }); } + /// Listens for changes in Android Auto or CarPlay screen availability. + /// + /// The [func] callback will be invoked whenever the auto screen becomes + /// available or unavailable (e.g., when user connects/disconnects from + /// Android Auto or CarPlay). + /// + /// Example: + /// ```dart + /// autoViewController.listenForAutoScreenAvailibilityChangedEvent((event) { + /// if (event.isAvailable) { + /// print('Auto screen is now available'); + /// } else { + /// print('Auto screen is no longer available'); + /// } + /// }); + /// ``` void listenForAutoScreenAvailibilityChangedEvent( void Function(AutoScreenAvailabilityChangedEvent event) func, ) { @@ -388,4 +660,38 @@ class GoogleMapsAutoViewController { func(event); }); } + + /// Listens for prompt visibility changes on Android Auto or CarPlay. + /// + /// The [func] callback will be invoked whenever traffic prompts become + /// visible or hidden on the auto screen. This is useful for adjusting + /// your custom UI elements to avoid overlapping with system prompts. + /// + /// Note: You can also override the prompt visibility detection in your native + /// implementation: + /// - Android: Override the detection in your `AndroidAutoBaseScreen` subclass + /// - iOS: Override the detection in your `BaseCarSceneDelegate` subclass + /// This listener provides additional control from the Flutter side. + /// + /// Example: + /// ```dart + /// autoViewController.listenForPromptVisibilityChangedEvent((event) { + /// if (event.promptVisible) { + /// // Hide custom buttons or UI elements + /// print('Prompt is now visible, hiding custom UI'); + /// } else { + /// // Show custom buttons or UI elements + /// print('Prompt is hidden, showing custom UI'); + /// } + /// }); + /// ``` + void listenForPromptVisibilityChangedEvent( + void Function(PromptVisibilityChangedEvent event) func, + ) { + GoogleMapsNavigationPlatform.instance.autoAPI + .getPromptVisibilityChangedEventStream() + .listen((PromptVisibilityChangedEvent event) { + func(event); + }); + } } diff --git a/lib/src/method_channel/auto_view_api.dart b/lib/src/method_channel/auto_view_api.dart index bc96c5ae..84e0f1fa 100644 --- a/lib/src/method_channel/auto_view_api.dart +++ b/lib/src/method_channel/auto_view_api.dart @@ -86,6 +86,18 @@ class AutoMapViewAPIImpl { } } + /// Sets the map options to be used for Android Auto and CarPlay views. + Future setAutoMapOptions({required AutoMapOptions mapOptions}) { + final AutoMapOptionsDto mapOptionsDto = AutoMapOptionsDto( + cameraPosition: mapOptions.cameraPosition?.toDto(), + mapId: mapOptions.mapId, + mapType: mapOptions.mapType?.toDto(), + mapColorScheme: mapOptions.mapColorScheme?.toDto(), + forceNightMode: mapOptions.forceNightMode?.toDto(), + ); + return _viewApi.setAutoMapOptions(mapOptionsDto); + } + /// Get the preference for whether the my location should be enabled or disabled. Future isMyLocationEnabled() => _viewApi.isMyLocationEnabled().wrapPlatformException(); @@ -254,7 +266,7 @@ class AutoMapViewAPIImpl { unawaited( _viewApi .animateCameraToCameraPosition( - cameraUpdate.cameraPosition!.toCameraPosition(), + cameraUpdate.cameraPosition!.toDto(), duration, ) .then( @@ -349,9 +361,7 @@ class AutoMapViewAPIImpl { case CameraUpdateType.cameraPosition: assert(cameraUpdate.cameraPosition != null, 'Camera position is null'); return _viewApi - .moveCameraToCameraPosition( - cameraUpdate.cameraPosition!.toCameraPosition(), - ) + .moveCameraToCameraPosition(cameraUpdate.cameraPosition!.toDto()) .wrapPlatformException(); case CameraUpdateType.latLng: return _viewApi @@ -736,6 +746,83 @@ class AutoMapViewAPIImpl { getAutoScreenAvailabilityChangedEventStream() { return _unwrapEventStream(); } + + /// Get prompt visibility changed event stream from the auto view. + Stream getPromptVisibilityChangedEventStream() { + return _unwrapEventStream(); + } + + Future setTrafficPromptsEnabled({required bool enabled}) { + return _viewApi.setTrafficPromptsEnabled(enabled); + } + + Future isTrafficPromptsEnabled() { + return _viewApi.isTrafficPromptsEnabled(); + } + + Future setTrafficIncidentCardsEnabled({required bool enabled}) { + return _viewApi.setTrafficIncidentCardsEnabled(enabled); + } + + Future isTrafficIncidentCardsEnabled() { + return _viewApi.isTrafficIncidentCardsEnabled(); + } + + Future isNavigationTripProgressBarEnabled() { + return _viewApi.isNavigationTripProgressBarEnabled(); + } + + Future setNavigationTripProgressBarEnabled({required bool enabled}) { + return _viewApi.setNavigationTripProgressBarEnabled(enabled); + } + + Future isSpeedLimitIconEnabled() { + return _viewApi.isSpeedLimitIconEnabled(); + } + + Future setSpeedLimitIconEnabled({required bool enabled}) { + return _viewApi.setSpeedLimitIconEnabled(enabled); + } + + Future isSpeedometerEnabled() { + return _viewApi.isSpeedometerEnabled(); + } + + Future setSpeedometerEnabled({required bool enabled}) { + return _viewApi.setSpeedometerEnabled(enabled); + } + + Future showRouteOverview() { + return _viewApi.showRouteOverview(); + } + + Future getMapColorScheme() async { + final MapColorSchemeDto colorScheme = await _viewApi.getMapColorScheme(); + return colorScheme.toMapColorScheme(); + } + + Future setMapColorScheme({required MapColorScheme mapColorScheme}) { + return _viewApi.setMapColorScheme(mapColorScheme.toDto()); + } + + Future getForceNightMode() async { + final NavigationForceNightModeDto forceNightMode = await _viewApi + .getForceNightMode(); + return forceNightMode.toNavigationForceNightMode(); + } + + Future setForceNightMode({ + required NavigationForceNightMode forceNightMode, + }) { + return _viewApi.setForceNightMode(forceNightMode.toDto()); + } + + Future sendCustomNavigationAutoEvent({ + required String event, + required Object data, + }) { + return _viewApi.sendCustomNavigationAutoEvent(event, data); + } } class AutoViewEventApiImpl implements AutoViewEventApi { @@ -761,6 +848,13 @@ class AutoViewEventApiImpl implements AutoViewEventApi { ), ); } + + @override + void onPromptVisibilityChanged(bool promptVisible) { + _viewEventStreamController.add( + _AutoEventWrapper(PromptVisibilityChangedEvent(promptVisible)), + ); + } } class _AutoEventWrapper { diff --git a/lib/src/method_channel/convert/camera.dart b/lib/src/method_channel/convert/camera.dart index d0dd1b0e..b3409abf 100644 --- a/lib/src/method_channel/convert/camera.dart +++ b/lib/src/method_channel/convert/camera.dart @@ -31,7 +31,7 @@ extension ConvertCameraPositionDto on CameraPositionDto { /// @nodoc extension ConvertCameraPosition on CameraPosition { /// Convert [CameraPosition] to [CameraPositionDto]. - CameraPositionDto toCameraPosition() => CameraPositionDto( + CameraPositionDto toDto() => CameraPositionDto( bearing: bearing, target: target.toDto(), tilt: tilt, diff --git a/lib/src/method_channel/map_view_api.dart b/lib/src/method_channel/map_view_api.dart index 03cafbb7..cbbac6d8 100644 --- a/lib/src/method_channel/map_view_api.dart +++ b/lib/src/method_channel/map_view_api.dart @@ -353,7 +353,7 @@ class MapViewAPIImpl { _viewApi .animateCameraToCameraPosition( viewId, - cameraUpdate.cameraPosition!.toCameraPosition(), + cameraUpdate.cameraPosition!.toDto(), duration, ) .then( @@ -460,7 +460,7 @@ class MapViewAPIImpl { assert(cameraUpdate.cameraPosition != null, 'Camera position is null'); return _viewApi.moveCameraToCameraPosition( viewId, - cameraUpdate.cameraPosition!.toCameraPosition(), + cameraUpdate.cameraPosition!.toDto(), ); case CameraUpdateType.latLng: return _viewApi.moveCameraToLatLng( diff --git a/lib/src/method_channel/messages.g.dart b/lib/src/method_channel/messages.g.dart index d76ed0b7..3c26321d 100644 --- a/lib/src/method_channel/messages.g.dart +++ b/lib/src/method_channel/messages.g.dart @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -450,6 +450,73 @@ enum TaskRemovedBehaviorDto { quitService, } +/// Object containing auto/carplay map options. +class AutoMapOptionsDto { + AutoMapOptionsDto({ + this.cameraPosition, + this.mapId, + this.mapType, + this.mapColorScheme, + this.forceNightMode, + }); + + /// The initial positioning of the camera in the map view. + CameraPositionDto? cameraPosition; + + /// Cloud-based map ID for custom styling. + String? mapId; + + /// The type of map to display (e.g., satellite, terrain, hybrid, etc.). + MapTypeDto? mapType; + + /// The color scheme for the map (light, dark, or follow system). + MapColorSchemeDto? mapColorScheme; + + /// Forces night mode (dark theme) regardless of system settings. + NavigationForceNightModeDto? forceNightMode; + + List _toList() { + return [ + cameraPosition, + mapId, + mapType, + mapColorScheme, + forceNightMode, + ]; + } + + Object encode() { + return _toList(); + } + + static AutoMapOptionsDto decode(Object result) { + result as List; + return AutoMapOptionsDto( + cameraPosition: result[0] as CameraPositionDto?, + mapId: result[1] as String?, + mapType: result[2] as MapTypeDto?, + mapColorScheme: result[3] as MapColorSchemeDto?, + forceNightMode: result[4] as NavigationForceNightModeDto?, + ); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + bool operator ==(Object other) { + if (other is! AutoMapOptionsDto || other.runtimeType != runtimeType) { + return false; + } + if (identical(this, other)) { + return true; + } + return _deepEquals(encode(), other.encode()); + } + + @override + // ignore: avoid_equals_and_hash_code_on_mutable_classes + int get hashCode => Object.hashAll(_toList()); +} + /// Object containing map options used to initialize Google Map view. class MapOptionsDto { MapOptionsDto({ @@ -3019,141 +3086,144 @@ class _PigeonCodec extends StandardMessageCodec { } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is MapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PolylineDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PatternItemDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is LaneDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is NavInfoDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); + } else if (value is StepImageGenerationOptionsDto) { + buffer.putUint8(200); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -3248,98 +3318,100 @@ class _PigeonCodec extends StandardMessageCodec { final int? value = readValue(buffer) as int?; return value == null ? null : TaskRemovedBehaviorDto.values[value]; case 155: - return MapOptionsDto.decode(readValue(buffer)!); + return AutoMapOptionsDto.decode(readValue(buffer)!); case 156: - return NavigationViewOptionsDto.decode(readValue(buffer)!); + return MapOptionsDto.decode(readValue(buffer)!); case 157: - return ViewCreationOptionsDto.decode(readValue(buffer)!); + return NavigationViewOptionsDto.decode(readValue(buffer)!); case 158: - return CameraPositionDto.decode(readValue(buffer)!); + return ViewCreationOptionsDto.decode(readValue(buffer)!); case 159: - return MarkerDto.decode(readValue(buffer)!); + return CameraPositionDto.decode(readValue(buffer)!); case 160: - return MarkerOptionsDto.decode(readValue(buffer)!); + return MarkerDto.decode(readValue(buffer)!); case 161: - return ImageDescriptorDto.decode(readValue(buffer)!); + return MarkerOptionsDto.decode(readValue(buffer)!); case 162: - return InfoWindowDto.decode(readValue(buffer)!); + return ImageDescriptorDto.decode(readValue(buffer)!); case 163: - return MarkerAnchorDto.decode(readValue(buffer)!); + return InfoWindowDto.decode(readValue(buffer)!); case 164: - return PointOfInterestDto.decode(readValue(buffer)!); + return MarkerAnchorDto.decode(readValue(buffer)!); case 165: - return PolygonDto.decode(readValue(buffer)!); + return PointOfInterestDto.decode(readValue(buffer)!); case 166: - return PolygonOptionsDto.decode(readValue(buffer)!); + return PolygonDto.decode(readValue(buffer)!); case 167: - return PolygonHoleDto.decode(readValue(buffer)!); + return PolygonOptionsDto.decode(readValue(buffer)!); case 168: - return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); + return PolygonHoleDto.decode(readValue(buffer)!); case 169: - return StyleSpanDto.decode(readValue(buffer)!); + return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); case 170: - return PolylineDto.decode(readValue(buffer)!); + return StyleSpanDto.decode(readValue(buffer)!); case 171: - return PatternItemDto.decode(readValue(buffer)!); + return PolylineDto.decode(readValue(buffer)!); case 172: - return PolylineOptionsDto.decode(readValue(buffer)!); + return PatternItemDto.decode(readValue(buffer)!); case 173: - return CircleDto.decode(readValue(buffer)!); + return PolylineOptionsDto.decode(readValue(buffer)!); case 174: - return CircleOptionsDto.decode(readValue(buffer)!); + return CircleDto.decode(readValue(buffer)!); case 175: - return MapPaddingDto.decode(readValue(buffer)!); + return CircleOptionsDto.decode(readValue(buffer)!); case 176: - return RouteTokenOptionsDto.decode(readValue(buffer)!); + return MapPaddingDto.decode(readValue(buffer)!); case 177: - return DestinationsDto.decode(readValue(buffer)!); + return RouteTokenOptionsDto.decode(readValue(buffer)!); case 178: - return RoutingOptionsDto.decode(readValue(buffer)!); + return DestinationsDto.decode(readValue(buffer)!); case 179: - return NavigationDisplayOptionsDto.decode(readValue(buffer)!); + return RoutingOptionsDto.decode(readValue(buffer)!); case 180: - return NavigationWaypointDto.decode(readValue(buffer)!); + return NavigationDisplayOptionsDto.decode(readValue(buffer)!); case 181: - return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); + return NavigationWaypointDto.decode(readValue(buffer)!); case 182: - return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); + return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); case 183: - return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); + return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); case 184: - return SimulationOptionsDto.decode(readValue(buffer)!); + return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); case 185: - return LatLngDto.decode(readValue(buffer)!); + return SimulationOptionsDto.decode(readValue(buffer)!); case 186: - return LatLngBoundsDto.decode(readValue(buffer)!); + return LatLngDto.decode(readValue(buffer)!); case 187: - return SpeedingUpdatedEventDto.decode(readValue(buffer)!); + return LatLngBoundsDto.decode(readValue(buffer)!); case 188: - return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); + return SpeedingUpdatedEventDto.decode(readValue(buffer)!); case 189: + return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); + case 190: return SpeedAlertOptionsThresholdPercentageDto.decode( readValue(buffer)!, ); - case 190: - return SpeedAlertOptionsDto.decode(readValue(buffer)!); case 191: + return SpeedAlertOptionsDto.decode(readValue(buffer)!); + case 192: return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( readValue(buffer)!, ); - case 192: - return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 193: - return RouteSegmentDto.decode(readValue(buffer)!); + return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 194: - return LaneDirectionDto.decode(readValue(buffer)!); + return RouteSegmentDto.decode(readValue(buffer)!); case 195: - return LaneDto.decode(readValue(buffer)!); + return LaneDirectionDto.decode(readValue(buffer)!); case 196: - return StepInfoDto.decode(readValue(buffer)!); + return LaneDto.decode(readValue(buffer)!); case 197: - return NavInfoDto.decode(readValue(buffer)!); + return StepInfoDto.decode(readValue(buffer)!); case 198: - return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); + return NavInfoDto.decode(readValue(buffer)!); case 199: + return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); + case 200: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -8818,6 +8890,36 @@ class AutoMapViewApi { final String pigeonVar_messageChannelSuffix; + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + Future setAutoMapOptions(AutoMapOptionsDto mapOptions) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapOptions], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + Future isMyLocationEnabled() async { final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$pigeonVar_messageChannelSuffix'; @@ -9954,16 +10056,18 @@ class AutoMapViewApi { } } - Future isMyLocationButtonEnabled() async { + Future setTrafficPromptsEnabled(bool enabled) async { final String pigeonVar_channelName = - 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { @@ -9974,9 +10078,142 @@ class AutoMapViewApi { message: pigeonVar_replyList[1] as String?, details: pigeonVar_replyList[2], ); - } else if (pigeonVar_replyList[0] == null) { - throw PlatformException( - code: 'null-error', + } else { + return; + } + } + + Future setTrafficIncidentCardsEnabled(bool enabled) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future setNavigationTripProgressBarEnabled(bool enabled) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future setSpeedLimitIconEnabled(bool enabled) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future setSpeedometerEnabled(bool enabled) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [enabled], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future isMyLocationButtonEnabled() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { @@ -10284,6 +10521,181 @@ class AutoMapViewApi { } } + Future isTrafficPromptsEnabled() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + Future isTrafficIncidentCardsEnabled() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + Future isNavigationTripProgressBarEnabled() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + Future isSpeedLimitIconEnabled() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + Future isSpeedometerEnabled() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as bool?)!; + } + } + + Future showRouteOverview() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + Future> getMarkers() async { final String pigeonVar_channelName = 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$pigeonVar_messageChannelSuffix'; @@ -11004,6 +11416,149 @@ class AutoMapViewApi { return (pigeonVar_replyList[0] as MapPaddingDto?)!; } } + + Future getMapColorScheme() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as MapColorSchemeDto?)!; + } + } + + Future setMapColorScheme(MapColorSchemeDto mapColorScheme) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [mapColorScheme], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future getForceNightMode() async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else if (pigeonVar_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (pigeonVar_replyList[0] as NavigationForceNightModeDto?)!; + } + } + + Future setForceNightMode( + NavigationForceNightModeDto forceNightMode, + ) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [forceNightMode], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } + + Future sendCustomNavigationAutoEvent(String event, Object data) async { + final String pigeonVar_channelName = + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = + BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send( + [event, data], + ); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } } abstract class AutoViewEventApi { @@ -11013,6 +11568,8 @@ abstract class AutoViewEventApi { void onAutoScreenAvailabilityChanged(bool isAvailable); + void onPromptVisibilityChanged(bool promptVisible); + static void setUp( AutoViewEventApi? api, { BinaryMessenger? binaryMessenger, @@ -11094,6 +11651,40 @@ abstract class AutoViewEventApi { }); } } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null.', + ); + final List args = (message as List?)!; + final bool? arg_promptVisible = (args[0] as bool?); + assert( + arg_promptVisible != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoViewEventApi.onPromptVisibilityChanged was null, expected non-null bool.', + ); + try { + api.onPromptVisibilityChanged(arg_promptVisible!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } } } diff --git a/lib/src/types/auto_map_options.dart b/lib/src/types/auto_map_options.dart new file mode 100644 index 00000000..f0275b0f --- /dev/null +++ b/lib/src/types/auto_map_options.dart @@ -0,0 +1,68 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import 'types.dart'; + +/// Configuration options for Android Auto and CarPlay map views. +/// +/// This class contains only the settings relevant for Auto and CarPlay views, +/// excluding gesture controls and other UI elements that are handled by the system. +class AutoMapOptions { + /// Creates map options for Android Auto and CarPlay views. + /// + /// [cameraPosition] - The initial positioning of the camera in the map view. + /// [mapId] - Cloud-based map ID for custom styling. + /// [mapType] - The type of map to display (normal, satellite, terrain, hybrid). + /// [mapColorScheme] - The color scheme for the map (light, dark, or follow system). + /// [forceNightMode] - Forces night mode (dark theme) regardless of system settings. + const AutoMapOptions({ + this.cameraPosition, + this.mapId, + this.mapType, + this.mapColorScheme, + this.forceNightMode, + }); + + /// The initial positioning of the camera in the map view. + /// + /// Specifies the initial camera position (target location, zoom level, bearing, and tilt) + /// when the map view is created. + final CameraPosition? cameraPosition; + + /// Cloud-based map ID for custom styling. + /// + /// You can create map IDs in the Google Cloud Console to customize + /// the appearance of your map with custom styles. + final String? mapId; + + /// The type of map to display. + /// + /// Defaults to [MapType.normal] if not specified. + final MapType? mapType; + + /// The color scheme for the map. + /// + /// Defaults to [MapColorScheme.followSystem] if not specified, + /// which automatically switches between light and dark based on system settings. + final MapColorScheme? mapColorScheme; + + /// Forces night mode (dark theme) for the map. + /// + /// This is different from [mapColorScheme]: + /// - [mapColorScheme] affects the overall map appearance (roads, labels, etc.) + /// - [forceNightMode] forces the dark theme regardless of system or time settings + /// + /// Use [NavigationForceNightMode.auto] to automatically switch based on time of day. + final NavigationForceNightMode? forceNightMode; +} diff --git a/lib/src/types/navigation_view_types.dart b/lib/src/types/navigation_view_types.dart index 8d1c8d01..bd256989 100644 --- a/lib/src/types/navigation_view_types.dart +++ b/lib/src/types/navigation_view_types.dart @@ -200,12 +200,18 @@ class NavigationUIEnabledChangedEvent { /// Represents prompt visibility changed event in a view. /// {@category Navigation View} +/// {@category Android Auto} +/// {@category Carplay} class PromptVisibilityChangedEvent { /// Creates a [PromptVisibilityChangedEvent] object. const PromptVisibilityChangedEvent(this.promptVisible); /// Value representing whether prompts are visible or not. final bool promptVisible; + + @override + String toString() => + 'PromptVisibilityChangedEvent(promptVisible: $promptVisible)'; } /// Represents the long click position in a Google Maps view. diff --git a/lib/src/types/types.dart b/lib/src/types/types.dart index 6b1a3306..d483b364 100644 --- a/lib/src/types/types.dart +++ b/lib/src/types/types.dart @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +export 'auto_map_options.dart'; export 'circles.dart'; export 'images.dart'; export 'lat_lng.dart'; diff --git a/pigeons/copyright.txt b/pigeons/copyright.txt index 1d0a649a..3f083827 100644 --- a/pigeons/copyright.txt +++ b/pigeons/copyright.txt @@ -1,4 +1,4 @@ -Copyright 2023 Google LLC +Copyright 2026 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pigeons/messages.dart b/pigeons/messages.dart index b2a487ed..47db2220 100644 --- a/pigeons/messages.dart +++ b/pigeons/messages.dart @@ -36,6 +36,32 @@ enum MapViewTypeDto { map, } +/// Object containing auto/carplay map options. +class AutoMapOptionsDto { + AutoMapOptionsDto({ + this.cameraPosition, + this.mapId, + this.mapType, + this.mapColorScheme, + this.forceNightMode, + }); + + /// The initial positioning of the camera in the map view. + final CameraPositionDto? cameraPosition; + + /// Cloud-based map ID for custom styling. + final String? mapId; + + /// The type of map to display (e.g., satellite, terrain, hybrid, etc.). + final MapTypeDto? mapType; + + /// The color scheme for the map (light, dark, or follow system). + final MapColorSchemeDto? mapColorScheme; + + /// Forces night mode (dark theme) regardless of system settings. + final NavigationForceNightModeDto? forceNightMode; +} + /// Object containing map options used to initialize Google Map view. class MapOptionsDto { MapOptionsDto({ @@ -1496,8 +1522,13 @@ abstract class NavigationSessionEventApi { void onNewNavigationSession(); } -@HostApi() +@HostApi(dartHostTestHandler: 'TestAutoMapViewApi') abstract class AutoMapViewApi { + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + void setAutoMapOptions(AutoMapOptionsDto mapOptions); + bool isMyLocationEnabled(); void setMyLocationEnabled(bool enabled); LatLngDto? getMyLocation(); @@ -1565,6 +1596,11 @@ abstract class AutoMapViewApi { void setTiltGesturesEnabled(bool enabled); void setMapToolbarEnabled(bool enabled); void setTrafficEnabled(bool enabled); + void setTrafficPromptsEnabled(bool enabled); + void setTrafficIncidentCardsEnabled(bool enabled); + void setNavigationTripProgressBarEnabled(bool enabled); + void setSpeedLimitIconEnabled(bool enabled); + void setSpeedometerEnabled(bool enabled); bool isMyLocationButtonEnabled(); bool isConsumeMyLocationButtonClickEventsEnabled(); @@ -1577,6 +1613,13 @@ abstract class AutoMapViewApi { bool isTiltGesturesEnabled(); bool isMapToolbarEnabled(); bool isTrafficEnabled(); + bool isTrafficPromptsEnabled(); + bool isTrafficIncidentCardsEnabled(); + bool isNavigationTripProgressBarEnabled(); + bool isSpeedLimitIconEnabled(); + bool isSpeedometerEnabled(); + + void showRouteOverview(); List getMarkers(); List addMarkers(List markers); @@ -1607,12 +1650,20 @@ abstract class AutoMapViewApi { bool isAutoScreenAvailable(); void setPadding(MapPaddingDto padding); MapPaddingDto getPadding(); + + MapColorSchemeDto getMapColorScheme(); + void setMapColorScheme(MapColorSchemeDto mapColorScheme); + NavigationForceNightModeDto getForceNightMode(); + void setForceNightMode(NavigationForceNightModeDto forceNightMode); + + void sendCustomNavigationAutoEvent(String event, Object data); } @FlutterApi() abstract class AutoViewEventApi { void onCustomNavigationAutoEvent(String event, Object data); void onAutoScreenAvailabilityChanged(bool isAvailable); + void onPromptVisibilityChanged(bool promptVisible); } @HostApi() diff --git a/test/auto/auto_event_api_test.dart b/test/auto/auto_event_api_test.dart index 94888877..2b2f105b 100644 --- a/test/auto/auto_event_api_test.dart +++ b/test/auto/auto_event_api_test.dart @@ -148,5 +148,99 @@ void main() { expect(receivedEvents[2].isAvailable, true); }, ); + + test('PromptVisibilityChangedEvent stream receives events', () async { + PromptVisibilityChangedEvent? receivedEvent; + + // Subscribe directly to the test API's stream + testAutoApi.getPromptVisibilityChangedEventStream().listen(( + PromptVisibilityChangedEvent event, + ) { + receivedEvent = event; + }); + await Future.delayed(Duration.zero); + + // Inject event via test API + testAutoApi.testEventApi.onPromptVisibilityChanged(true); + await Future.delayed(Duration.zero); + + // Verify event was received + expect(receivedEvent, isNotNull); + expect(receivedEvent!.promptVisible, true); + }); + + test('Multiple PromptVisibilityChangedEvent events are received', () async { + final List receivedEvents = + []; + + // Subscribe directly to the test API's stream + testAutoApi.getPromptVisibilityChangedEventStream().listen(( + PromptVisibilityChangedEvent event, + ) { + receivedEvents.add(event); + }); + await Future.delayed(Duration.zero); + + // Inject multiple events with different visibility states + testAutoApi.testEventApi.onPromptVisibilityChanged(true); + testAutoApi.testEventApi.onPromptVisibilityChanged(false); + testAutoApi.testEventApi.onPromptVisibilityChanged(true); + await Future.delayed(Duration.zero); + + // Verify all events were received + expect(receivedEvents.length, 3); + expect(receivedEvents[0].promptVisible, true); + expect(receivedEvents[1].promptVisible, false); + expect(receivedEvents[2].promptVisible, true); + }); + + test( + 'Event streams filter correctly between different event types', + () async { + final List customEvents = + []; + final List availabilityEvents = + []; + final List promptEvents = + []; + + // Subscribe to all streams + testAutoApi.getCustomNavigationAutoEventStream().listen(( + CustomNavigationAutoEvent event, + ) { + customEvents.add(event); + }); + testAutoApi.getAutoScreenAvailabilityChangedEventStream().listen(( + AutoScreenAvailabilityChangedEvent event, + ) { + availabilityEvents.add(event); + }); + testAutoApi.getPromptVisibilityChangedEventStream().listen(( + PromptVisibilityChangedEvent event, + ) { + promptEvents.add(event); + }); + await Future.delayed(Duration.zero); + + // Inject mixed events + testAutoApi.testEventApi.onCustomNavigationAutoEvent('event1', 'data1'); + testAutoApi.testEventApi.onAutoScreenAvailabilityChanged(true); + testAutoApi.testEventApi.onPromptVisibilityChanged(true); + testAutoApi.testEventApi.onCustomNavigationAutoEvent('event2', 'data2'); + testAutoApi.testEventApi.onPromptVisibilityChanged(false); + await Future.delayed(Duration.zero); + + // Verify each stream only received its own events + expect(customEvents.length, 2); + expect(availabilityEvents.length, 1); + expect(promptEvents.length, 2); + + expect(customEvents[0].event, 'event1'); + expect(customEvents[1].event, 'event2'); + expect(availabilityEvents[0].isAvailable, true); + expect(promptEvents[0].promptVisible, true); + expect(promptEvents[1].promptVisible, false); + }, + ); }); } diff --git a/test/auto/auto_view_api_test.dart b/test/auto/auto_view_api_test.dart new file mode 100644 index 00000000..fa173255 --- /dev/null +++ b/test/auto/auto_view_api_test.dart @@ -0,0 +1,260 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:google_navigation_flutter/google_navigation_flutter.dart'; +import 'package:google_navigation_flutter/src/google_navigation_flutter_platform_interface.dart'; +import 'package:google_navigation_flutter/src/method_channel/method_channel.dart'; +import 'package:mockito/mockito.dart'; + +import '../google_navigation_flutter_test.mocks.dart'; +import '../messages_test.g.dart'; + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + group('AutoMapView API Tests', () { + late MockTestAutoMapViewApi autoViewMockApi; + + final List platforms = + [ + GoogleMapsNavigationAndroid( + AndroidNavigationSessionAPIImpl(), + MapViewAPIImpl(), + AutoMapViewAPIImpl(), + ImageRegistryAPIImpl(), + ), + GoogleMapsNavigationIOS( + NavigationSessionAPIImpl(), + MapViewAPIImpl(), + AutoMapViewAPIImpl(), + ImageRegistryAPIImpl(), + ), + ]; + + setUp(() { + autoViewMockApi = MockTestAutoMapViewApi(); + TestAutoMapViewApi.setUp(autoViewMockApi); + }); + + for (final GoogleMapsNavigationPlatform platform in platforms) { + group(platform.runtimeType, () { + setUp(() { + GoogleMapsNavigationPlatform.instance = platform; + }); + + group('Navigation UI features', () { + test('isNavigationTripProgressBarEnabled returns value', () async { + when( + autoViewMockApi.isNavigationTripProgressBarEnabled(), + ).thenReturn(true); + + final bool result = await GoogleMapsNavigationPlatform + .instance + .autoAPI + .isNavigationTripProgressBarEnabled(); + + expect(result, true); + verify( + autoViewMockApi.isNavigationTripProgressBarEnabled(), + ).called(1); + }); + + test( + 'setNavigationTripProgressBarEnabled sends correct value', + () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .setNavigationTripProgressBarEnabled(enabled: true); + + verify( + autoViewMockApi.setNavigationTripProgressBarEnabled(true), + ).called(1); + }, + ); + + test('isSpeedLimitIconEnabled returns value', () async { + when(autoViewMockApi.isSpeedLimitIconEnabled()).thenReturn(true); + + final bool result = await GoogleMapsNavigationPlatform + .instance + .autoAPI + .isSpeedLimitIconEnabled(); + + expect(result, true); + verify(autoViewMockApi.isSpeedLimitIconEnabled()).called(1); + }); + + test('setSpeedLimitIconEnabled sends correct value', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .setSpeedLimitIconEnabled(enabled: true); + + verify(autoViewMockApi.setSpeedLimitIconEnabled(true)).called(1); + }); + + test('isSpeedometerEnabled returns value', () async { + when(autoViewMockApi.isSpeedometerEnabled()).thenReturn(true); + + final bool result = await GoogleMapsNavigationPlatform + .instance + .autoAPI + .isSpeedometerEnabled(); + + expect(result, true); + verify(autoViewMockApi.isSpeedometerEnabled()).called(1); + }); + + test('setSpeedometerEnabled sends correct value', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .setSpeedometerEnabled(enabled: true); + + verify(autoViewMockApi.setSpeedometerEnabled(true)).called(1); + }); + + test('showRouteOverview sends message', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .showRouteOverview(); + + verify(autoViewMockApi.showRouteOverview()).called(1); + }); + }); + + group('Traffic UI features', () { + test('isTrafficPromptsEnabled returns value', () async { + when(autoViewMockApi.isTrafficPromptsEnabled()).thenReturn(true); + + final bool result = await GoogleMapsNavigationPlatform + .instance + .autoAPI + .isTrafficPromptsEnabled(); + + expect(result, true); + verify(autoViewMockApi.isTrafficPromptsEnabled()).called(1); + }); + + test('setTrafficPromptsEnabled sends correct value', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .setTrafficPromptsEnabled(enabled: true); + + verify(autoViewMockApi.setTrafficPromptsEnabled(true)).called(1); + }); + + test('isTrafficIncidentCardsEnabled returns value', () async { + when( + autoViewMockApi.isTrafficIncidentCardsEnabled(), + ).thenReturn(true); + + final bool result = await GoogleMapsNavigationPlatform + .instance + .autoAPI + .isTrafficIncidentCardsEnabled(); + + expect(result, true); + verify(autoViewMockApi.isTrafficIncidentCardsEnabled()).called(1); + }); + + test('setTrafficIncidentCardsEnabled sends correct value', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .setTrafficIncidentCardsEnabled(enabled: true); + + verify( + autoViewMockApi.setTrafficIncidentCardsEnabled(true), + ).called(1); + }); + }); + + group('Theme and color scheme', () { + test('getMapColorScheme returns correct value', () async { + when( + autoViewMockApi.getMapColorScheme(), + ).thenReturn(MapColorSchemeDto.dark); + + final MapColorScheme result = await GoogleMapsNavigationPlatform + .instance + .autoAPI + .getMapColorScheme(); + + expect(result, MapColorScheme.dark); + verify(autoViewMockApi.getMapColorScheme()).called(1); + }); + + test('setMapColorScheme sends correct value', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .setMapColorScheme(mapColorScheme: MapColorScheme.dark); + + verify( + autoViewMockApi.setMapColorScheme(MapColorSchemeDto.dark), + ).called(1); + }); + + test('getForceNightMode returns correct value', () async { + when( + autoViewMockApi.getForceNightMode(), + ).thenReturn(NavigationForceNightModeDto.forceNight); + + final NavigationForceNightMode result = + await GoogleMapsNavigationPlatform.instance.autoAPI + .getForceNightMode(); + + expect(result, NavigationForceNightMode.forceNight); + verify(autoViewMockApi.getForceNightMode()).called(1); + }); + + test('setForceNightMode sends correct value', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .setForceNightMode( + forceNightMode: NavigationForceNightMode.forceNight, + ); + + verify( + autoViewMockApi.setForceNightMode( + NavigationForceNightModeDto.forceNight, + ), + ).called(1); + }); + }); + + group('Auto screen availability', () { + test('isAutoScreenAvailable returns value', () async { + when(autoViewMockApi.isAutoScreenAvailable()).thenReturn(true); + + final bool result = await GoogleMapsNavigationPlatform + .instance + .autoAPI + .isAutoScreenAvailable(); + + expect(result, true); + verify(autoViewMockApi.isAutoScreenAvailable()).called(1); + }); + }); + + group('Custom events', () { + test('sendCustomNavigationAutoEvent sends event and data', () async { + await GoogleMapsNavigationPlatform.instance.autoAPI + .sendCustomNavigationAutoEvent( + event: 'testEvent', + data: 'testData', + ); + + verify( + autoViewMockApi.sendCustomNavigationAutoEvent( + 'testEvent', + 'testData', + ), + ).called(1); + }); + }); + }); + } + }); +} diff --git a/test/google_navigation_flutter_test.dart b/test/google_navigation_flutter_test.dart index 4256ee3f..66e27c47 100644 --- a/test/google_navigation_flutter_test.dart +++ b/test/google_navigation_flutter_test.dart @@ -25,6 +25,7 @@ import 'messages_test.g.dart'; @GenerateMocks([ TestNavigationSessionApi, TestMapViewApi, + TestAutoMapViewApi, TestImageRegistryApi, ]) void main() { diff --git a/test/google_navigation_flutter_test.mocks.dart b/test/google_navigation_flutter_test.mocks.dart index aff0cbf3..33a37486 100644 --- a/test/google_navigation_flutter_test.mocks.dart +++ b/test/google_navigation_flutter_test.mocks.dart @@ -1281,6 +1281,719 @@ class MockTestMapViewApi extends _i1.Mock implements _i3.TestMapViewApi { ); } +/// A class which mocks [TestAutoMapViewApi]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockTestAutoMapViewApi extends _i1.Mock + implements _i3.TestAutoMapViewApi { + MockTestAutoMapViewApi() { + _i1.throwOnMissingStub(this); + } + + @override + void setAutoMapOptions(_i2.AutoMapOptionsDto? mapOptions) => + super.noSuchMethod( + Invocation.method(#setAutoMapOptions, [mapOptions]), + returnValueForMissingStub: null, + ); + + @override + bool isMyLocationEnabled() => + (super.noSuchMethod( + Invocation.method(#isMyLocationEnabled, []), + returnValue: false, + ) + as bool); + + @override + void setMyLocationEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setMyLocationEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + _i2.MapTypeDto getMapType() => + (super.noSuchMethod( + Invocation.method(#getMapType, []), + returnValue: _i2.MapTypeDto.none, + ) + as _i2.MapTypeDto); + + @override + void setMapType(_i2.MapTypeDto? mapType) => super.noSuchMethod( + Invocation.method(#setMapType, [mapType]), + returnValueForMissingStub: null, + ); + + @override + void setMapStyle(String? styleJson) => super.noSuchMethod( + Invocation.method(#setMapStyle, [styleJson]), + returnValueForMissingStub: null, + ); + + @override + _i2.CameraPositionDto getCameraPosition() => + (super.noSuchMethod( + Invocation.method(#getCameraPosition, []), + returnValue: _FakeCameraPositionDto_2( + this, + Invocation.method(#getCameraPosition, []), + ), + ) + as _i2.CameraPositionDto); + + @override + _i2.LatLngBoundsDto getVisibleRegion() => + (super.noSuchMethod( + Invocation.method(#getVisibleRegion, []), + returnValue: _FakeLatLngBoundsDto_3( + this, + Invocation.method(#getVisibleRegion, []), + ), + ) + as _i2.LatLngBoundsDto); + + @override + void followMyLocation( + _i2.CameraPerspectiveDto? perspective, + double? zoomLevel, + ) => super.noSuchMethod( + Invocation.method(#followMyLocation, [perspective, zoomLevel]), + returnValueForMissingStub: null, + ); + + @override + _i4.Future animateCameraToCameraPosition( + _i2.CameraPositionDto? cameraPosition, + int? duration, + ) => + (super.noSuchMethod( + Invocation.method(#animateCameraToCameraPosition, [ + cameraPosition, + duration, + ]), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future animateCameraToLatLng(_i2.LatLngDto? point, int? duration) => + (super.noSuchMethod( + Invocation.method(#animateCameraToLatLng, [point, duration]), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future animateCameraToLatLngBounds( + _i2.LatLngBoundsDto? bounds, + double? padding, + int? duration, + ) => + (super.noSuchMethod( + Invocation.method(#animateCameraToLatLngBounds, [ + bounds, + padding, + duration, + ]), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future animateCameraToLatLngZoom( + _i2.LatLngDto? point, + double? zoom, + int? duration, + ) => + (super.noSuchMethod( + Invocation.method(#animateCameraToLatLngZoom, [ + point, + zoom, + duration, + ]), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future animateCameraByScroll( + double? scrollByDx, + double? scrollByDy, + int? duration, + ) => + (super.noSuchMethod( + Invocation.method(#animateCameraByScroll, [ + scrollByDx, + scrollByDy, + duration, + ]), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future animateCameraByZoom( + double? zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ) => + (super.noSuchMethod( + Invocation.method(#animateCameraByZoom, [ + zoomBy, + focusDx, + focusDy, + duration, + ]), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + _i4.Future animateCameraToZoom(double? zoom, int? duration) => + (super.noSuchMethod( + Invocation.method(#animateCameraToZoom, [zoom, duration]), + returnValue: _i4.Future.value(false), + ) + as _i4.Future); + + @override + void moveCameraToCameraPosition(_i2.CameraPositionDto? cameraPosition) => + super.noSuchMethod( + Invocation.method(#moveCameraToCameraPosition, [cameraPosition]), + returnValueForMissingStub: null, + ); + + @override + void moveCameraToLatLng(_i2.LatLngDto? point) => super.noSuchMethod( + Invocation.method(#moveCameraToLatLng, [point]), + returnValueForMissingStub: null, + ); + + @override + void moveCameraToLatLngBounds(_i2.LatLngBoundsDto? bounds, double? padding) => + super.noSuchMethod( + Invocation.method(#moveCameraToLatLngBounds, [bounds, padding]), + returnValueForMissingStub: null, + ); + + @override + void moveCameraToLatLngZoom(_i2.LatLngDto? point, double? zoom) => + super.noSuchMethod( + Invocation.method(#moveCameraToLatLngZoom, [point, zoom]), + returnValueForMissingStub: null, + ); + + @override + void moveCameraByScroll(double? scrollByDx, double? scrollByDy) => + super.noSuchMethod( + Invocation.method(#moveCameraByScroll, [scrollByDx, scrollByDy]), + returnValueForMissingStub: null, + ); + + @override + void moveCameraByZoom(double? zoomBy, double? focusDx, double? focusDy) => + super.noSuchMethod( + Invocation.method(#moveCameraByZoom, [zoomBy, focusDx, focusDy]), + returnValueForMissingStub: null, + ); + + @override + void moveCameraToZoom(double? zoom) => super.noSuchMethod( + Invocation.method(#moveCameraToZoom, [zoom]), + returnValueForMissingStub: null, + ); + + @override + double getMinZoomPreference() => + (super.noSuchMethod( + Invocation.method(#getMinZoomPreference, []), + returnValue: 0.0, + ) + as double); + + @override + double getMaxZoomPreference() => + (super.noSuchMethod( + Invocation.method(#getMaxZoomPreference, []), + returnValue: 0.0, + ) + as double); + + @override + void resetMinMaxZoomPreference() => super.noSuchMethod( + Invocation.method(#resetMinMaxZoomPreference, []), + returnValueForMissingStub: null, + ); + + @override + void setMinZoomPreference(double? minZoomPreference) => super.noSuchMethod( + Invocation.method(#setMinZoomPreference, [minZoomPreference]), + returnValueForMissingStub: null, + ); + + @override + void setMaxZoomPreference(double? maxZoomPreference) => super.noSuchMethod( + Invocation.method(#setMaxZoomPreference, [maxZoomPreference]), + returnValueForMissingStub: null, + ); + + @override + void setMyLocationButtonEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setMyLocationButtonEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setConsumeMyLocationButtonClickEventsEnabled(bool? enabled) => + super.noSuchMethod( + Invocation.method(#setConsumeMyLocationButtonClickEventsEnabled, [ + enabled, + ]), + returnValueForMissingStub: null, + ); + + @override + void setZoomGesturesEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setZoomGesturesEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setZoomControlsEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setZoomControlsEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setCompassEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setCompassEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setRotateGesturesEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setRotateGesturesEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setScrollGesturesEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setScrollGesturesEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setScrollGesturesDuringRotateOrZoomEnabled(bool? enabled) => + super.noSuchMethod( + Invocation.method(#setScrollGesturesDuringRotateOrZoomEnabled, [ + enabled, + ]), + returnValueForMissingStub: null, + ); + + @override + void setTiltGesturesEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setTiltGesturesEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setMapToolbarEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setMapToolbarEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setTrafficEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setTrafficEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setTrafficPromptsEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setTrafficPromptsEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setTrafficIncidentCardsEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setTrafficIncidentCardsEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setNavigationTripProgressBarEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setNavigationTripProgressBarEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setSpeedLimitIconEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setSpeedLimitIconEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + void setSpeedometerEnabled(bool? enabled) => super.noSuchMethod( + Invocation.method(#setSpeedometerEnabled, [enabled]), + returnValueForMissingStub: null, + ); + + @override + bool isMyLocationButtonEnabled() => + (super.noSuchMethod( + Invocation.method(#isMyLocationButtonEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isConsumeMyLocationButtonClickEventsEnabled() => + (super.noSuchMethod( + Invocation.method(#isConsumeMyLocationButtonClickEventsEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isZoomGesturesEnabled() => + (super.noSuchMethod( + Invocation.method(#isZoomGesturesEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isZoomControlsEnabled() => + (super.noSuchMethod( + Invocation.method(#isZoomControlsEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isCompassEnabled() => + (super.noSuchMethod( + Invocation.method(#isCompassEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isRotateGesturesEnabled() => + (super.noSuchMethod( + Invocation.method(#isRotateGesturesEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isScrollGesturesEnabled() => + (super.noSuchMethod( + Invocation.method(#isScrollGesturesEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isScrollGesturesEnabledDuringRotateOrZoom() => + (super.noSuchMethod( + Invocation.method(#isScrollGesturesEnabledDuringRotateOrZoom, []), + returnValue: false, + ) + as bool); + + @override + bool isTiltGesturesEnabled() => + (super.noSuchMethod( + Invocation.method(#isTiltGesturesEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isMapToolbarEnabled() => + (super.noSuchMethod( + Invocation.method(#isMapToolbarEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isTrafficEnabled() => + (super.noSuchMethod( + Invocation.method(#isTrafficEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isTrafficPromptsEnabled() => + (super.noSuchMethod( + Invocation.method(#isTrafficPromptsEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isTrafficIncidentCardsEnabled() => + (super.noSuchMethod( + Invocation.method(#isTrafficIncidentCardsEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isNavigationTripProgressBarEnabled() => + (super.noSuchMethod( + Invocation.method(#isNavigationTripProgressBarEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isSpeedLimitIconEnabled() => + (super.noSuchMethod( + Invocation.method(#isSpeedLimitIconEnabled, []), + returnValue: false, + ) + as bool); + + @override + bool isSpeedometerEnabled() => + (super.noSuchMethod( + Invocation.method(#isSpeedometerEnabled, []), + returnValue: false, + ) + as bool); + + @override + void showRouteOverview() => super.noSuchMethod( + Invocation.method(#showRouteOverview, []), + returnValueForMissingStub: null, + ); + + @override + List<_i2.MarkerDto> getMarkers() => + (super.noSuchMethod( + Invocation.method(#getMarkers, []), + returnValue: <_i2.MarkerDto>[], + ) + as List<_i2.MarkerDto>); + + @override + List<_i2.MarkerDto> addMarkers(List<_i2.MarkerDto>? markers) => + (super.noSuchMethod( + Invocation.method(#addMarkers, [markers]), + returnValue: <_i2.MarkerDto>[], + ) + as List<_i2.MarkerDto>); + + @override + List<_i2.MarkerDto> updateMarkers(List<_i2.MarkerDto>? markers) => + (super.noSuchMethod( + Invocation.method(#updateMarkers, [markers]), + returnValue: <_i2.MarkerDto>[], + ) + as List<_i2.MarkerDto>); + + @override + void removeMarkers(List<_i2.MarkerDto>? markers) => super.noSuchMethod( + Invocation.method(#removeMarkers, [markers]), + returnValueForMissingStub: null, + ); + + @override + void clearMarkers() => super.noSuchMethod( + Invocation.method(#clearMarkers, []), + returnValueForMissingStub: null, + ); + + @override + void clear() => super.noSuchMethod( + Invocation.method(#clear, []), + returnValueForMissingStub: null, + ); + + @override + List<_i2.PolygonDto> getPolygons() => + (super.noSuchMethod( + Invocation.method(#getPolygons, []), + returnValue: <_i2.PolygonDto>[], + ) + as List<_i2.PolygonDto>); + + @override + List<_i2.PolygonDto> addPolygons(List<_i2.PolygonDto>? polygons) => + (super.noSuchMethod( + Invocation.method(#addPolygons, [polygons]), + returnValue: <_i2.PolygonDto>[], + ) + as List<_i2.PolygonDto>); + + @override + List<_i2.PolygonDto> updatePolygons(List<_i2.PolygonDto>? polygons) => + (super.noSuchMethod( + Invocation.method(#updatePolygons, [polygons]), + returnValue: <_i2.PolygonDto>[], + ) + as List<_i2.PolygonDto>); + + @override + void removePolygons(List<_i2.PolygonDto>? polygons) => super.noSuchMethod( + Invocation.method(#removePolygons, [polygons]), + returnValueForMissingStub: null, + ); + + @override + void clearPolygons() => super.noSuchMethod( + Invocation.method(#clearPolygons, []), + returnValueForMissingStub: null, + ); + + @override + List<_i2.PolylineDto> getPolylines() => + (super.noSuchMethod( + Invocation.method(#getPolylines, []), + returnValue: <_i2.PolylineDto>[], + ) + as List<_i2.PolylineDto>); + + @override + List<_i2.PolylineDto> addPolylines(List<_i2.PolylineDto>? polylines) => + (super.noSuchMethod( + Invocation.method(#addPolylines, [polylines]), + returnValue: <_i2.PolylineDto>[], + ) + as List<_i2.PolylineDto>); + + @override + List<_i2.PolylineDto> updatePolylines(List<_i2.PolylineDto>? polylines) => + (super.noSuchMethod( + Invocation.method(#updatePolylines, [polylines]), + returnValue: <_i2.PolylineDto>[], + ) + as List<_i2.PolylineDto>); + + @override + void removePolylines(List<_i2.PolylineDto>? polylines) => super.noSuchMethod( + Invocation.method(#removePolylines, [polylines]), + returnValueForMissingStub: null, + ); + + @override + void clearPolylines() => super.noSuchMethod( + Invocation.method(#clearPolylines, []), + returnValueForMissingStub: null, + ); + + @override + List<_i2.CircleDto> getCircles() => + (super.noSuchMethod( + Invocation.method(#getCircles, []), + returnValue: <_i2.CircleDto>[], + ) + as List<_i2.CircleDto>); + + @override + List<_i2.CircleDto> addCircles(List<_i2.CircleDto>? circles) => + (super.noSuchMethod( + Invocation.method(#addCircles, [circles]), + returnValue: <_i2.CircleDto>[], + ) + as List<_i2.CircleDto>); + + @override + List<_i2.CircleDto> updateCircles(List<_i2.CircleDto>? circles) => + (super.noSuchMethod( + Invocation.method(#updateCircles, [circles]), + returnValue: <_i2.CircleDto>[], + ) + as List<_i2.CircleDto>); + + @override + void removeCircles(List<_i2.CircleDto>? circles) => super.noSuchMethod( + Invocation.method(#removeCircles, [circles]), + returnValueForMissingStub: null, + ); + + @override + void clearCircles() => super.noSuchMethod( + Invocation.method(#clearCircles, []), + returnValueForMissingStub: null, + ); + + @override + void enableOnCameraChangedEvents() => super.noSuchMethod( + Invocation.method(#enableOnCameraChangedEvents, []), + returnValueForMissingStub: null, + ); + + @override + bool isAutoScreenAvailable() => + (super.noSuchMethod( + Invocation.method(#isAutoScreenAvailable, []), + returnValue: false, + ) + as bool); + + @override + void setPadding(_i2.MapPaddingDto? padding) => super.noSuchMethod( + Invocation.method(#setPadding, [padding]), + returnValueForMissingStub: null, + ); + + @override + _i2.MapPaddingDto getPadding() => + (super.noSuchMethod( + Invocation.method(#getPadding, []), + returnValue: _FakeMapPaddingDto_4( + this, + Invocation.method(#getPadding, []), + ), + ) + as _i2.MapPaddingDto); + + @override + _i2.MapColorSchemeDto getMapColorScheme() => + (super.noSuchMethod( + Invocation.method(#getMapColorScheme, []), + returnValue: _i2.MapColorSchemeDto.followSystem, + ) + as _i2.MapColorSchemeDto); + + @override + void setMapColorScheme(_i2.MapColorSchemeDto? mapColorScheme) => + super.noSuchMethod( + Invocation.method(#setMapColorScheme, [mapColorScheme]), + returnValueForMissingStub: null, + ); + + @override + _i2.NavigationForceNightModeDto getForceNightMode() => + (super.noSuchMethod( + Invocation.method(#getForceNightMode, []), + returnValue: _i2.NavigationForceNightModeDto.auto, + ) + as _i2.NavigationForceNightModeDto); + + @override + void setForceNightMode(_i2.NavigationForceNightModeDto? forceNightMode) => + super.noSuchMethod( + Invocation.method(#setForceNightMode, [forceNightMode]), + returnValueForMissingStub: null, + ); + + @override + void sendCustomNavigationAutoEvent(String? event, Object? data) => + super.noSuchMethod( + Invocation.method(#sendCustomNavigationAutoEvent, [event, data]), + returnValueForMissingStub: null, + ); +} + /// A class which mocks [TestImageRegistryApi]. /// /// See the documentation for Mockito's code generation for more information. diff --git a/test/messages_test.g.dart b/test/messages_test.g.dart index 7dc8c88a..5060108f 100644 --- a/test/messages_test.g.dart +++ b/test/messages_test.g.dart @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -110,141 +110,144 @@ class _PigeonCodec extends StandardMessageCodec { } else if (value is TaskRemovedBehaviorDto) { buffer.putUint8(154); writeValue(buffer, value.index); - } else if (value is MapOptionsDto) { + } else if (value is AutoMapOptionsDto) { buffer.putUint8(155); writeValue(buffer, value.encode()); - } else if (value is NavigationViewOptionsDto) { + } else if (value is MapOptionsDto) { buffer.putUint8(156); writeValue(buffer, value.encode()); - } else if (value is ViewCreationOptionsDto) { + } else if (value is NavigationViewOptionsDto) { buffer.putUint8(157); writeValue(buffer, value.encode()); - } else if (value is CameraPositionDto) { + } else if (value is ViewCreationOptionsDto) { buffer.putUint8(158); writeValue(buffer, value.encode()); - } else if (value is MarkerDto) { + } else if (value is CameraPositionDto) { buffer.putUint8(159); writeValue(buffer, value.encode()); - } else if (value is MarkerOptionsDto) { + } else if (value is MarkerDto) { buffer.putUint8(160); writeValue(buffer, value.encode()); - } else if (value is ImageDescriptorDto) { + } else if (value is MarkerOptionsDto) { buffer.putUint8(161); writeValue(buffer, value.encode()); - } else if (value is InfoWindowDto) { + } else if (value is ImageDescriptorDto) { buffer.putUint8(162); writeValue(buffer, value.encode()); - } else if (value is MarkerAnchorDto) { + } else if (value is InfoWindowDto) { buffer.putUint8(163); writeValue(buffer, value.encode()); - } else if (value is PointOfInterestDto) { + } else if (value is MarkerAnchorDto) { buffer.putUint8(164); writeValue(buffer, value.encode()); - } else if (value is PolygonDto) { + } else if (value is PointOfInterestDto) { buffer.putUint8(165); writeValue(buffer, value.encode()); - } else if (value is PolygonOptionsDto) { + } else if (value is PolygonDto) { buffer.putUint8(166); writeValue(buffer, value.encode()); - } else if (value is PolygonHoleDto) { + } else if (value is PolygonOptionsDto) { buffer.putUint8(167); writeValue(buffer, value.encode()); - } else if (value is StyleSpanStrokeStyleDto) { + } else if (value is PolygonHoleDto) { buffer.putUint8(168); writeValue(buffer, value.encode()); - } else if (value is StyleSpanDto) { + } else if (value is StyleSpanStrokeStyleDto) { buffer.putUint8(169); writeValue(buffer, value.encode()); - } else if (value is PolylineDto) { + } else if (value is StyleSpanDto) { buffer.putUint8(170); writeValue(buffer, value.encode()); - } else if (value is PatternItemDto) { + } else if (value is PolylineDto) { buffer.putUint8(171); writeValue(buffer, value.encode()); - } else if (value is PolylineOptionsDto) { + } else if (value is PatternItemDto) { buffer.putUint8(172); writeValue(buffer, value.encode()); - } else if (value is CircleDto) { + } else if (value is PolylineOptionsDto) { buffer.putUint8(173); writeValue(buffer, value.encode()); - } else if (value is CircleOptionsDto) { + } else if (value is CircleDto) { buffer.putUint8(174); writeValue(buffer, value.encode()); - } else if (value is MapPaddingDto) { + } else if (value is CircleOptionsDto) { buffer.putUint8(175); writeValue(buffer, value.encode()); - } else if (value is RouteTokenOptionsDto) { + } else if (value is MapPaddingDto) { buffer.putUint8(176); writeValue(buffer, value.encode()); - } else if (value is DestinationsDto) { + } else if (value is RouteTokenOptionsDto) { buffer.putUint8(177); writeValue(buffer, value.encode()); - } else if (value is RoutingOptionsDto) { + } else if (value is DestinationsDto) { buffer.putUint8(178); writeValue(buffer, value.encode()); - } else if (value is NavigationDisplayOptionsDto) { + } else if (value is RoutingOptionsDto) { buffer.putUint8(179); writeValue(buffer, value.encode()); - } else if (value is NavigationWaypointDto) { + } else if (value is NavigationDisplayOptionsDto) { buffer.putUint8(180); writeValue(buffer, value.encode()); - } else if (value is ContinueToNextDestinationResponseDto) { + } else if (value is NavigationWaypointDto) { buffer.putUint8(181); writeValue(buffer, value.encode()); - } else if (value is NavigationTimeAndDistanceDto) { + } else if (value is ContinueToNextDestinationResponseDto) { buffer.putUint8(182); writeValue(buffer, value.encode()); - } else if (value is NavigationAudioGuidanceSettingsDto) { + } else if (value is NavigationTimeAndDistanceDto) { buffer.putUint8(183); writeValue(buffer, value.encode()); - } else if (value is SimulationOptionsDto) { + } else if (value is NavigationAudioGuidanceSettingsDto) { buffer.putUint8(184); writeValue(buffer, value.encode()); - } else if (value is LatLngDto) { + } else if (value is SimulationOptionsDto) { buffer.putUint8(185); writeValue(buffer, value.encode()); - } else if (value is LatLngBoundsDto) { + } else if (value is LatLngDto) { buffer.putUint8(186); writeValue(buffer, value.encode()); - } else if (value is SpeedingUpdatedEventDto) { + } else if (value is LatLngBoundsDto) { buffer.putUint8(187); writeValue(buffer, value.encode()); - } else if (value is GpsAvailabilityChangeEventDto) { + } else if (value is SpeedingUpdatedEventDto) { buffer.putUint8(188); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsThresholdPercentageDto) { + } else if (value is GpsAvailabilityChangeEventDto) { buffer.putUint8(189); writeValue(buffer, value.encode()); - } else if (value is SpeedAlertOptionsDto) { + } else if (value is SpeedAlertOptionsThresholdPercentageDto) { buffer.putUint8(190); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { + } else if (value is SpeedAlertOptionsDto) { buffer.putUint8(191); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentTrafficDataDto) { + } else if (value is RouteSegmentTrafficDataRoadStretchRenderingDataDto) { buffer.putUint8(192); writeValue(buffer, value.encode()); - } else if (value is RouteSegmentDto) { + } else if (value is RouteSegmentTrafficDataDto) { buffer.putUint8(193); writeValue(buffer, value.encode()); - } else if (value is LaneDirectionDto) { + } else if (value is RouteSegmentDto) { buffer.putUint8(194); writeValue(buffer, value.encode()); - } else if (value is LaneDto) { + } else if (value is LaneDirectionDto) { buffer.putUint8(195); writeValue(buffer, value.encode()); - } else if (value is StepInfoDto) { + } else if (value is LaneDto) { buffer.putUint8(196); writeValue(buffer, value.encode()); - } else if (value is NavInfoDto) { + } else if (value is StepInfoDto) { buffer.putUint8(197); writeValue(buffer, value.encode()); - } else if (value is TermsAndConditionsUIParamsDto) { + } else if (value is NavInfoDto) { buffer.putUint8(198); writeValue(buffer, value.encode()); - } else if (value is StepImageGenerationOptionsDto) { + } else if (value is TermsAndConditionsUIParamsDto) { buffer.putUint8(199); writeValue(buffer, value.encode()); + } else if (value is StepImageGenerationOptionsDto) { + buffer.putUint8(200); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -339,98 +342,100 @@ class _PigeonCodec extends StandardMessageCodec { final int? value = readValue(buffer) as int?; return value == null ? null : TaskRemovedBehaviorDto.values[value]; case 155: - return MapOptionsDto.decode(readValue(buffer)!); + return AutoMapOptionsDto.decode(readValue(buffer)!); case 156: - return NavigationViewOptionsDto.decode(readValue(buffer)!); + return MapOptionsDto.decode(readValue(buffer)!); case 157: - return ViewCreationOptionsDto.decode(readValue(buffer)!); + return NavigationViewOptionsDto.decode(readValue(buffer)!); case 158: - return CameraPositionDto.decode(readValue(buffer)!); + return ViewCreationOptionsDto.decode(readValue(buffer)!); case 159: - return MarkerDto.decode(readValue(buffer)!); + return CameraPositionDto.decode(readValue(buffer)!); case 160: - return MarkerOptionsDto.decode(readValue(buffer)!); + return MarkerDto.decode(readValue(buffer)!); case 161: - return ImageDescriptorDto.decode(readValue(buffer)!); + return MarkerOptionsDto.decode(readValue(buffer)!); case 162: - return InfoWindowDto.decode(readValue(buffer)!); + return ImageDescriptorDto.decode(readValue(buffer)!); case 163: - return MarkerAnchorDto.decode(readValue(buffer)!); + return InfoWindowDto.decode(readValue(buffer)!); case 164: - return PointOfInterestDto.decode(readValue(buffer)!); + return MarkerAnchorDto.decode(readValue(buffer)!); case 165: - return PolygonDto.decode(readValue(buffer)!); + return PointOfInterestDto.decode(readValue(buffer)!); case 166: - return PolygonOptionsDto.decode(readValue(buffer)!); + return PolygonDto.decode(readValue(buffer)!); case 167: - return PolygonHoleDto.decode(readValue(buffer)!); + return PolygonOptionsDto.decode(readValue(buffer)!); case 168: - return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); + return PolygonHoleDto.decode(readValue(buffer)!); case 169: - return StyleSpanDto.decode(readValue(buffer)!); + return StyleSpanStrokeStyleDto.decode(readValue(buffer)!); case 170: - return PolylineDto.decode(readValue(buffer)!); + return StyleSpanDto.decode(readValue(buffer)!); case 171: - return PatternItemDto.decode(readValue(buffer)!); + return PolylineDto.decode(readValue(buffer)!); case 172: - return PolylineOptionsDto.decode(readValue(buffer)!); + return PatternItemDto.decode(readValue(buffer)!); case 173: - return CircleDto.decode(readValue(buffer)!); + return PolylineOptionsDto.decode(readValue(buffer)!); case 174: - return CircleOptionsDto.decode(readValue(buffer)!); + return CircleDto.decode(readValue(buffer)!); case 175: - return MapPaddingDto.decode(readValue(buffer)!); + return CircleOptionsDto.decode(readValue(buffer)!); case 176: - return RouteTokenOptionsDto.decode(readValue(buffer)!); + return MapPaddingDto.decode(readValue(buffer)!); case 177: - return DestinationsDto.decode(readValue(buffer)!); + return RouteTokenOptionsDto.decode(readValue(buffer)!); case 178: - return RoutingOptionsDto.decode(readValue(buffer)!); + return DestinationsDto.decode(readValue(buffer)!); case 179: - return NavigationDisplayOptionsDto.decode(readValue(buffer)!); + return RoutingOptionsDto.decode(readValue(buffer)!); case 180: - return NavigationWaypointDto.decode(readValue(buffer)!); + return NavigationDisplayOptionsDto.decode(readValue(buffer)!); case 181: - return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); + return NavigationWaypointDto.decode(readValue(buffer)!); case 182: - return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); + return ContinueToNextDestinationResponseDto.decode(readValue(buffer)!); case 183: - return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); + return NavigationTimeAndDistanceDto.decode(readValue(buffer)!); case 184: - return SimulationOptionsDto.decode(readValue(buffer)!); + return NavigationAudioGuidanceSettingsDto.decode(readValue(buffer)!); case 185: - return LatLngDto.decode(readValue(buffer)!); + return SimulationOptionsDto.decode(readValue(buffer)!); case 186: - return LatLngBoundsDto.decode(readValue(buffer)!); + return LatLngDto.decode(readValue(buffer)!); case 187: - return SpeedingUpdatedEventDto.decode(readValue(buffer)!); + return LatLngBoundsDto.decode(readValue(buffer)!); case 188: - return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); + return SpeedingUpdatedEventDto.decode(readValue(buffer)!); case 189: + return GpsAvailabilityChangeEventDto.decode(readValue(buffer)!); + case 190: return SpeedAlertOptionsThresholdPercentageDto.decode( readValue(buffer)!, ); - case 190: - return SpeedAlertOptionsDto.decode(readValue(buffer)!); case 191: + return SpeedAlertOptionsDto.decode(readValue(buffer)!); + case 192: return RouteSegmentTrafficDataRoadStretchRenderingDataDto.decode( readValue(buffer)!, ); - case 192: - return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 193: - return RouteSegmentDto.decode(readValue(buffer)!); + return RouteSegmentTrafficDataDto.decode(readValue(buffer)!); case 194: - return LaneDirectionDto.decode(readValue(buffer)!); + return RouteSegmentDto.decode(readValue(buffer)!); case 195: - return LaneDto.decode(readValue(buffer)!); + return LaneDirectionDto.decode(readValue(buffer)!); case 196: - return StepInfoDto.decode(readValue(buffer)!); + return LaneDto.decode(readValue(buffer)!); case 197: - return NavInfoDto.decode(readValue(buffer)!); + return StepInfoDto.decode(readValue(buffer)!); case 198: - return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); + return NavInfoDto.decode(readValue(buffer)!); case 199: + return TermsAndConditionsUIParamsDto.decode(readValue(buffer)!); + case 200: return StepImageGenerationOptionsDto.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -6785,3 +6790,3680 @@ abstract class TestNavigationSessionApi { } } } + +abstract class TestAutoMapViewApi { + static TestDefaultBinaryMessengerBinding? get _testBinaryMessengerBinding => + TestDefaultBinaryMessengerBinding.instance; + static const MessageCodec pigeonChannelCodec = _PigeonCodec(); + + /// Sets the map options to be used for Android Auto and CarPlay views. + /// Should be called before the Auto/CarPlay screen is created. + /// This allows customization of mapId and basic map settings. + void setAutoMapOptions(AutoMapOptionsDto mapOptions); + + bool isMyLocationEnabled(); + + void setMyLocationEnabled(bool enabled); + + LatLngDto? getMyLocation(); + + MapTypeDto getMapType(); + + void setMapType(MapTypeDto mapType); + + void setMapStyle(String styleJson); + + CameraPositionDto getCameraPosition(); + + LatLngBoundsDto getVisibleRegion(); + + void followMyLocation(CameraPerspectiveDto perspective, double? zoomLevel); + + Future animateCameraToCameraPosition( + CameraPositionDto cameraPosition, + int? duration, + ); + + Future animateCameraToLatLng(LatLngDto point, int? duration); + + Future animateCameraToLatLngBounds( + LatLngBoundsDto bounds, + double padding, + int? duration, + ); + + Future animateCameraToLatLngZoom( + LatLngDto point, + double zoom, + int? duration, + ); + + Future animateCameraByScroll( + double scrollByDx, + double scrollByDy, + int? duration, + ); + + Future animateCameraByZoom( + double zoomBy, + double? focusDx, + double? focusDy, + int? duration, + ); + + Future animateCameraToZoom(double zoom, int? duration); + + void moveCameraToCameraPosition(CameraPositionDto cameraPosition); + + void moveCameraToLatLng(LatLngDto point); + + void moveCameraToLatLngBounds(LatLngBoundsDto bounds, double padding); + + void moveCameraToLatLngZoom(LatLngDto point, double zoom); + + void moveCameraByScroll(double scrollByDx, double scrollByDy); + + void moveCameraByZoom(double zoomBy, double? focusDx, double? focusDy); + + void moveCameraToZoom(double zoom); + + double getMinZoomPreference(); + + double getMaxZoomPreference(); + + void resetMinMaxZoomPreference(); + + void setMinZoomPreference(double minZoomPreference); + + void setMaxZoomPreference(double maxZoomPreference); + + void setMyLocationButtonEnabled(bool enabled); + + void setConsumeMyLocationButtonClickEventsEnabled(bool enabled); + + void setZoomGesturesEnabled(bool enabled); + + void setZoomControlsEnabled(bool enabled); + + void setCompassEnabled(bool enabled); + + void setRotateGesturesEnabled(bool enabled); + + void setScrollGesturesEnabled(bool enabled); + + void setScrollGesturesDuringRotateOrZoomEnabled(bool enabled); + + void setTiltGesturesEnabled(bool enabled); + + void setMapToolbarEnabled(bool enabled); + + void setTrafficEnabled(bool enabled); + + void setTrafficPromptsEnabled(bool enabled); + + void setTrafficIncidentCardsEnabled(bool enabled); + + void setNavigationTripProgressBarEnabled(bool enabled); + + void setSpeedLimitIconEnabled(bool enabled); + + void setSpeedometerEnabled(bool enabled); + + bool isMyLocationButtonEnabled(); + + bool isConsumeMyLocationButtonClickEventsEnabled(); + + bool isZoomGesturesEnabled(); + + bool isZoomControlsEnabled(); + + bool isCompassEnabled(); + + bool isRotateGesturesEnabled(); + + bool isScrollGesturesEnabled(); + + bool isScrollGesturesEnabledDuringRotateOrZoom(); + + bool isTiltGesturesEnabled(); + + bool isMapToolbarEnabled(); + + bool isTrafficEnabled(); + + bool isTrafficPromptsEnabled(); + + bool isTrafficIncidentCardsEnabled(); + + bool isNavigationTripProgressBarEnabled(); + + bool isSpeedLimitIconEnabled(); + + bool isSpeedometerEnabled(); + + void showRouteOverview(); + + List getMarkers(); + + List addMarkers(List markers); + + List updateMarkers(List markers); + + void removeMarkers(List markers); + + void clearMarkers(); + + void clear(); + + List getPolygons(); + + List addPolygons(List polygons); + + List updatePolygons(List polygons); + + void removePolygons(List polygons); + + void clearPolygons(); + + List getPolylines(); + + List addPolylines(List polylines); + + List updatePolylines(List polylines); + + void removePolylines(List polylines); + + void clearPolylines(); + + List getCircles(); + + List addCircles(List circles); + + List updateCircles(List circles); + + void removeCircles(List circles); + + void clearCircles(); + + void enableOnCameraChangedEvents(); + + bool isAutoScreenAvailable(); + + void setPadding(MapPaddingDto padding); + + MapPaddingDto getPadding(); + + MapColorSchemeDto getMapColorScheme(); + + void setMapColorScheme(MapColorSchemeDto mapColorScheme); + + NavigationForceNightModeDto getForceNightMode(); + + void setForceNightMode(NavigationForceNightModeDto forceNightMode); + + void sendCustomNavigationAutoEvent(String event, Object data); + + static void setUp( + TestAutoMapViewApi? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { + messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null.', + ); + final List args = (message as List?)!; + final AutoMapOptionsDto? arg_mapOptions = + (args[0] as AutoMapOptionsDto?); + assert( + arg_mapOptions != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setAutoMapOptions was null, expected non-null AutoMapOptionsDto.', + ); + try { + api.setAutoMapOptions(arg_mapOptions!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMyLocationEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationEnabled was null, expected non-null bool.', + ); + try { + api.setMyLocationEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final LatLngDto? output = api.getMyLocation(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapTypeDto output = api.getMapType(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null.', + ); + final List args = (message as List?)!; + final MapTypeDto? arg_mapType = (args[0] as MapTypeDto?); + assert( + arg_mapType != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapType was null, expected non-null MapTypeDto.', + ); + try { + api.setMapType(arg_mapType!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null.', + ); + final List args = (message as List?)!; + final String? arg_styleJson = (args[0] as String?); + assert( + arg_styleJson != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapStyle was null, expected non-null String.', + ); + try { + api.setMapStyle(arg_styleJson!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final CameraPositionDto output = api.getCameraPosition(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getVisibleRegion$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final LatLngBoundsDto output = api.getVisibleRegion(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null.', + ); + final List args = (message as List?)!; + final CameraPerspectiveDto? arg_perspective = + (args[0] as CameraPerspectiveDto?); + assert( + arg_perspective != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.followMyLocation was null, expected non-null CameraPerspectiveDto.', + ); + final double? arg_zoomLevel = (args[1] as double?); + try { + api.followMyLocation(arg_perspective!, arg_zoomLevel); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null.', + ); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = + (args[0] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToCameraPosition( + arg_cameraPosition!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLng was null, expected non-null LatLngDto.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToLatLng( + arg_point!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null.', + ); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[1] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngBounds was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLngBounds( + arg_bounds!, + arg_padding!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToLatLngZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraToLatLngZoom( + arg_point!, + arg_zoom!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null.', + ); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[1] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByScroll was null, expected non-null double.', + ); + final int? arg_duration = (args[2] as int?); + try { + final bool output = await api.animateCameraByScroll( + arg_scrollByDx!, + arg_scrollByDy!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + final int? arg_duration = (args[3] as int?); + try { + final bool output = await api.animateCameraByZoom( + arg_zoomBy!, + arg_focusDx, + arg_focusDy, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.animateCameraToZoom was null, expected non-null double.', + ); + final int? arg_duration = (args[1] as int?); + try { + final bool output = await api.animateCameraToZoom( + arg_zoom!, + arg_duration, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null.', + ); + final List args = (message as List?)!; + final CameraPositionDto? arg_cameraPosition = + (args[0] as CameraPositionDto?); + assert( + arg_cameraPosition != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToCameraPosition was null, expected non-null CameraPositionDto.', + ); + try { + api.moveCameraToCameraPosition(arg_cameraPosition!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLng was null, expected non-null LatLngDto.', + ); + try { + api.moveCameraToLatLng(arg_point!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null.', + ); + final List args = (message as List?)!; + final LatLngBoundsDto? arg_bounds = (args[0] as LatLngBoundsDto?); + assert( + arg_bounds != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null LatLngBoundsDto.', + ); + final double? arg_padding = (args[1] as double?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngBounds was null, expected non-null double.', + ); + try { + api.moveCameraToLatLngBounds(arg_bounds!, arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null.', + ); + final List args = (message as List?)!; + final LatLngDto? arg_point = (args[0] as LatLngDto?); + assert( + arg_point != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null LatLngDto.', + ); + final double? arg_zoom = (args[1] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToLatLngZoom was null, expected non-null double.', + ); + try { + api.moveCameraToLatLngZoom(arg_point!, arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null.', + ); + final List args = (message as List?)!; + final double? arg_scrollByDx = (args[0] as double?); + assert( + arg_scrollByDx != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + final double? arg_scrollByDy = (args[1] as double?); + assert( + arg_scrollByDy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByScroll was null, expected non-null double.', + ); + try { + api.moveCameraByScroll(arg_scrollByDx!, arg_scrollByDy!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoomBy = (args[0] as double?); + assert( + arg_zoomBy != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraByZoom was null, expected non-null double.', + ); + final double? arg_focusDx = (args[1] as double?); + final double? arg_focusDy = (args[2] as double?); + try { + api.moveCameraByZoom(arg_zoomBy!, arg_focusDx, arg_focusDy); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null.', + ); + final List args = (message as List?)!; + final double? arg_zoom = (args[0] as double?); + assert( + arg_zoom != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.moveCameraToZoom was null, expected non-null double.', + ); + try { + api.moveCameraToZoom(arg_zoom!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final double output = api.getMinZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final double output = api.getMaxZoomPreference(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.resetMinMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.resetMinMaxZoomPreference(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null.', + ); + final List args = (message as List?)!; + final double? arg_minZoomPreference = (args[0] as double?); + assert( + arg_minZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMinZoomPreference was null, expected non-null double.', + ); + try { + api.setMinZoomPreference(arg_minZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null.', + ); + final List args = (message as List?)!; + final double? arg_maxZoomPreference = (args[0] as double?); + assert( + arg_maxZoomPreference != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMaxZoomPreference was null, expected non-null double.', + ); + try { + api.setMaxZoomPreference(arg_maxZoomPreference!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMyLocationButtonEnabled was null, expected non-null bool.', + ); + try { + api.setMyLocationButtonEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setConsumeMyLocationButtonClickEventsEnabled was null, expected non-null bool.', + ); + try { + api.setConsumeMyLocationButtonClickEventsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setZoomGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setZoomControlsEnabled was null, expected non-null bool.', + ); + try { + api.setZoomControlsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setCompassEnabled was null, expected non-null bool.', + ); + try { + api.setCompassEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setRotateGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setRotateGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setScrollGesturesDuringRotateOrZoomEnabled was null, expected non-null bool.', + ); + try { + api.setScrollGesturesDuringRotateOrZoomEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTiltGesturesEnabled was null, expected non-null bool.', + ); + try { + api.setTiltGesturesEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapToolbarEnabled was null, expected non-null bool.', + ); + try { + api.setMapToolbarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficPromptsEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficPromptsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setTrafficIncidentCardsEnabled was null, expected non-null bool.', + ); + try { + api.setTrafficIncidentCardsEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setNavigationTripProgressBarEnabled was null, expected non-null bool.', + ); + try { + api.setNavigationTripProgressBarEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedLimitIconEnabled was null, expected non-null bool.', + ); + try { + api.setSpeedLimitIconEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null.', + ); + final List args = (message as List?)!; + final bool? arg_enabled = (args[0] as bool?); + assert( + arg_enabled != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setSpeedometerEnabled was null, expected non-null bool.', + ); + try { + api.setSpeedometerEnabled(arg_enabled!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMyLocationButtonEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMyLocationButtonEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isConsumeMyLocationButtonClickEventsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api + .isConsumeMyLocationButtonClickEventsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isZoomGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isZoomControlsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isZoomControlsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isCompassEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isCompassEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isRotateGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isRotateGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isScrollGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isScrollGesturesEnabledDuringRotateOrZoom$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api + .isScrollGesturesEnabledDuringRotateOrZoom(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTiltGesturesEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTiltGesturesEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isMapToolbarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isMapToolbarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficPromptsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficPromptsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isTrafficIncidentCardsEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isTrafficIncidentCardsEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isNavigationTripProgressBarEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isNavigationTripProgressBarEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedLimitIconEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isSpeedLimitIconEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isSpeedometerEnabled$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isSpeedometerEnabled(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.showRouteOverview$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.showRouteOverview(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getMarkers(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addMarkers was null, expected non-null List.', + ); + try { + final List output = api.addMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateMarkers was null, expected non-null List.', + ); + try { + final List output = api.updateMarkers(arg_markers!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null.', + ); + final List args = (message as List?)!; + final List? arg_markers = (args[0] as List?) + ?.cast(); + assert( + arg_markers != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeMarkers was null, expected non-null List.', + ); + try { + api.removeMarkers(arg_markers!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearMarkers$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearMarkers(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clear$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clear(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getPolygons(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolygons was null, expected non-null List.', + ); + try { + final List output = api.addPolygons(arg_polygons!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolygons was null, expected non-null List.', + ); + try { + final List output = api.updatePolygons( + arg_polygons!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null.', + ); + final List args = (message as List?)!; + final List? arg_polygons = (args[0] as List?) + ?.cast(); + assert( + arg_polygons != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolygons was null, expected non-null List.', + ); + try { + api.removePolygons(arg_polygons!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolygons$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearPolygons(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getPolylines(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addPolylines was null, expected non-null List.', + ); + try { + final List output = api.addPolylines( + arg_polylines!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updatePolylines was null, expected non-null List.', + ); + try { + final List output = api.updatePolylines( + arg_polylines!, + ); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null.', + ); + final List args = (message as List?)!; + final List? arg_polylines = + (args[0] as List?)?.cast(); + assert( + arg_polylines != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removePolylines was null, expected non-null List.', + ); + try { + api.removePolylines(arg_polylines!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearPolylines$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearPolylines(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final List output = api.getCircles(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.addCircles was null, expected non-null List.', + ); + try { + final List output = api.addCircles(arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.updateCircles was null, expected non-null List.', + ); + try { + final List output = api.updateCircles(arg_circles!); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null.', + ); + final List args = (message as List?)!; + final List? arg_circles = (args[0] as List?) + ?.cast(); + assert( + arg_circles != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.removeCircles was null, expected non-null List.', + ); + try { + api.removeCircles(arg_circles!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.clearCircles$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.clearCircles(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.enableOnCameraChangedEvents$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + api.enableOnCameraChangedEvents(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.isAutoScreenAvailable$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final bool output = api.isAutoScreenAvailable(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null.', + ); + final List args = (message as List?)!; + final MapPaddingDto? arg_padding = (args[0] as MapPaddingDto?); + assert( + arg_padding != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setPadding was null, expected non-null MapPaddingDto.', + ); + try { + api.setPadding(arg_padding!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getPadding$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapPaddingDto output = api.getPadding(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final MapColorSchemeDto output = api.getMapColorScheme(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null.', + ); + final List args = (message as List?)!; + final MapColorSchemeDto? arg_mapColorScheme = + (args[0] as MapColorSchemeDto?); + assert( + arg_mapColorScheme != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setMapColorScheme was null, expected non-null MapColorSchemeDto.', + ); + try { + api.setMapColorScheme(arg_mapColorScheme!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.getForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + try { + final NavigationForceNightModeDto output = api + .getForceNightMode(); + return [output]; + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, ( + Object? message, + ) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null.', + ); + final List args = (message as List?)!; + final NavigationForceNightModeDto? arg_forceNightMode = + (args[0] as NavigationForceNightModeDto?); + assert( + arg_forceNightMode != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.setForceNightMode was null, expected non-null NavigationForceNightModeDto.', + ); + try { + api.setForceNightMode(arg_forceNightMode!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException( + code: 'error', + message: e.toString(), + ), + ); + } + }); + } + } + { + final BasicMessageChannel + pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger, + ); + if (api == null) { + _testBinaryMessengerBinding!.defaultBinaryMessenger + .setMockDecodedMessageHandler(pigeonVar_channel, null); + } else { + _testBinaryMessengerBinding!.defaultBinaryMessenger.setMockDecodedMessageHandler< + Object? + >(pigeonVar_channel, (Object? message) async { + assert( + message != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null.', + ); + final List args = (message as List?)!; + final String? arg_event = (args[0] as String?); + assert( + arg_event != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null String.', + ); + final Object? arg_data = (args[1] as Object?); + assert( + arg_data != null, + 'Argument for dev.flutter.pigeon.google_navigation_flutter.AutoMapViewApi.sendCustomNavigationAutoEvent was null, expected non-null Object.', + ); + try { + api.sendCustomNavigationAutoEvent(arg_event!, arg_data!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString()), + ); + } + }); + } + } + } +}