package com.google.maps.android.ktx.utils.collection;

import com.google.android.gms.maps.model.Polyline;
import com.google.android.gms.maps.model.PolylineOptions;
import com.google.maps.android.collections.PolylineManager;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: PolylineManager.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000\"\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\u001a-\u0010\u0000\u001a\u00020\u0001*\u00060\u0002R\u00020\u00032\u0017\u0010\u0004\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005¢\u0006\u0002\b\bH\u0086\bø\u0001\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\t"}, d2 = {"addPolyline", "Lcom/google/android/gms/maps/model/Polyline;", "Lcom/google/maps/android/collections/PolylineManager$Collection;", "Lcom/google/maps/android/collections/PolylineManager;", "optionsActions", "Lkotlin/Function1;", "Lcom/google/android/gms/maps/model/PolylineOptions;", "", "Lkotlin/ExtensionFunctionType;", "maps-utils-ktx_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
public final class PolylineManagerKt {
    public static final Polyline addPolyline(PolylineManager.Collection collection, Function1<? super PolylineOptions, Unit> optionsActions) {
        Intrinsics.checkNotNullParameter(collection, "<this>");
        Intrinsics.checkNotNullParameter(optionsActions, "optionsActions");
        PolylineOptions polylineOptions = new PolylineOptions();
        optionsActions.invoke(polylineOptions);
        Polyline polylineAddPolyline = collection.addPolyline(polylineOptions);
        Intrinsics.checkNotNullExpressionValue(polylineAddPolyline, "this.addPolyline(\n      …ply(optionsActions)\n    )");
        return polylineAddPolyline;
    }
}