52 lines
3.0 KiB
Java
52 lines
3.0 KiB
Java
package com.google.maps.android.compose;
|
|
|
|
import com.google.android.gms.maps.model.GroundOverlay;
|
|
import com.google.maps.android.compose.MapNode;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* JADX INFO: compiled from: GroundOverlay.kt */
|
|
/* JADX INFO: loaded from: classes2.dex */
|
|
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\n\b\u0001\u0018\u00002\u00020\u0001B#\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\u0004\b\u0007\u0010\bJ\b\u0010\u000f\u001a\u00020\u0006H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR&\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00060\u0005X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000e¨\u0006\u0010"}, d2 = {"Lcom/google/maps/android/compose/GroundOverlayNode;", "Lcom/google/maps/android/compose/MapNode;", "groundOverlay", "Lcom/google/android/gms/maps/model/GroundOverlay;", "onGroundOverlayClick", "Lkotlin/Function1;", "", "<init>", "(Lcom/google/android/gms/maps/model/GroundOverlay;Lkotlin/jvm/functions/Function1;)V", "getGroundOverlay", "()Lcom/google/android/gms/maps/model/GroundOverlay;", "getOnGroundOverlayClick", "()Lkotlin/jvm/functions/Function1;", "setOnGroundOverlayClick", "(Lkotlin/jvm/functions/Function1;)V", "onRemoved", "maps-compose_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
public final class GroundOverlayNode implements MapNode {
|
|
public static final int $stable = 8;
|
|
private final GroundOverlay groundOverlay;
|
|
private Function1<? super GroundOverlay, Unit> onGroundOverlayClick;
|
|
|
|
public GroundOverlayNode(GroundOverlay groundOverlay, Function1<? super GroundOverlay, Unit> onGroundOverlayClick) {
|
|
Intrinsics.checkNotNullParameter(groundOverlay, "groundOverlay");
|
|
Intrinsics.checkNotNullParameter(onGroundOverlayClick, "onGroundOverlayClick");
|
|
this.groundOverlay = groundOverlay;
|
|
this.onGroundOverlayClick = onGroundOverlayClick;
|
|
}
|
|
|
|
@Override // com.google.maps.android.compose.MapNode
|
|
public void onAttached() {
|
|
MapNode.DefaultImpls.onAttached(this);
|
|
}
|
|
|
|
@Override // com.google.maps.android.compose.MapNode
|
|
public void onCleared() {
|
|
MapNode.DefaultImpls.onCleared(this);
|
|
}
|
|
|
|
public final GroundOverlay getGroundOverlay() {
|
|
return this.groundOverlay;
|
|
}
|
|
|
|
public final Function1<GroundOverlay, Unit> getOnGroundOverlayClick() {
|
|
return this.onGroundOverlayClick;
|
|
}
|
|
|
|
public final void setOnGroundOverlayClick(Function1<? super GroundOverlay, Unit> function1) {
|
|
Intrinsics.checkNotNullParameter(function1, "<set-?>");
|
|
this.onGroundOverlayClick = function1;
|
|
}
|
|
|
|
@Override // com.google.maps.android.compose.MapNode
|
|
public void onRemoved() {
|
|
this.groundOverlay.remove();
|
|
}
|
|
} |