mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-04 03:28:54 +01:00
60 lines
3.7 KiB
Java
60 lines
3.7 KiB
Java
package androidx.compose.ui.input.rotary;
|
|
|
|
import androidx.compose.ui.Modifier;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.functions.Function1;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u001e\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\u000b\n\u0002\b\r\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B3\u0012\u0014\u0010\u0003\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004\u0012\u0014\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004¢\u0006\u0004\b\b\u0010\tJ\u0010\u0010\u0010\u001a\u00020\u00062\u0006\u0010\u0011\u001a\u00020\u0005H\u0016J\u0010\u0010\u0012\u001a\u00020\u00062\u0006\u0010\u0011\u001a\u00020\u0005H\u0016R(\u0010\u0003\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\n\u0010\u000b\"\u0004\b\f\u0010\rR(\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u000b\"\u0004\b\u000f\u0010\r¨\u0006\u0013"}, d2 = {"Landroidx/compose/ui/input/rotary/RotaryInputNode;", "Landroidx/compose/ui/input/rotary/RotaryInputModifierNode;", "Landroidx/compose/ui/Modifier$Node;", "onEvent", "Lkotlin/Function1;", "Landroidx/compose/ui/input/rotary/RotaryScrollEvent;", "", "onPreEvent", "<init>", "(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V", "getOnEvent", "()Lkotlin/jvm/functions/Function1;", "setOnEvent", "(Lkotlin/jvm/functions/Function1;)V", "getOnPreEvent", "setOnPreEvent", "onRotaryScrollEvent", "event", "onPreRotaryScrollEvent", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
final class RotaryInputNode extends Modifier.Node implements RotaryInputModifierNode {
|
|
|
|
@Nullable
|
|
private Function1<? super RotaryScrollEvent, Boolean> onEvent;
|
|
|
|
@Nullable
|
|
private Function1<? super RotaryScrollEvent, Boolean> onPreEvent;
|
|
|
|
public RotaryInputNode(@Nullable Function1<? super RotaryScrollEvent, Boolean> function1, @Nullable Function1<? super RotaryScrollEvent, Boolean> function12) {
|
|
this.onEvent = function1;
|
|
this.onPreEvent = function12;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<RotaryScrollEvent, Boolean> getOnEvent() {
|
|
return this.onEvent;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<RotaryScrollEvent, Boolean> getOnPreEvent() {
|
|
return this.onPreEvent;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.input.rotary.RotaryInputModifierNode
|
|
public boolean onPreRotaryScrollEvent(@NotNull RotaryScrollEvent event) {
|
|
Function1<? super RotaryScrollEvent, Boolean> function1 = this.onPreEvent;
|
|
if (function1 != null) {
|
|
return function1.invoke(event).booleanValue();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.input.rotary.RotaryInputModifierNode
|
|
public boolean onRotaryScrollEvent(@NotNull RotaryScrollEvent event) {
|
|
Function1<? super RotaryScrollEvent, Boolean> function1 = this.onEvent;
|
|
if (function1 != null) {
|
|
return function1.invoke(event).booleanValue();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void setOnEvent(@Nullable Function1<? super RotaryScrollEvent, Boolean> function1) {
|
|
this.onEvent = function1;
|
|
}
|
|
|
|
public final void setOnPreEvent(@Nullable Function1<? super RotaryScrollEvent, Boolean> function1) {
|
|
this.onPreEvent = function1;
|
|
}
|
|
}
|