mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 03:47:18 +01:00
62 lines
4.1 KiB
Java
62 lines
4.1 KiB
Java
package androidx.compose.ui.input.key;
|
|
|
|
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\u0010\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\u0017\u0010\u0010\u001a\u00020\u00062\u0006\u0010\u0011\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0012\u0010\u0013J\u0017\u0010\u0014\u001a\u00020\u00062\u0006\u0010\u0011\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0015\u0010\u0013R(\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\u0016"}, d2 = {"Landroidx/compose/ui/input/key/InterceptedKeyInputNode;", "Landroidx/compose/ui/input/key/SoftKeyboardInterceptionModifierNode;", "Landroidx/compose/ui/Modifier$Node;", "onEvent", "Lkotlin/Function1;", "Landroidx/compose/ui/input/key/KeyEvent;", "", "onPreEvent", "<init>", "(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V", "getOnEvent", "()Lkotlin/jvm/functions/Function1;", "setOnEvent", "(Lkotlin/jvm/functions/Function1;)V", "getOnPreEvent", "setOnPreEvent", "onInterceptKeyBeforeSoftKeyboard", "event", "onInterceptKeyBeforeSoftKeyboard-ZmokQxo", "(Landroid/view/KeyEvent;)Z", "onPreInterceptKeyBeforeSoftKeyboard", "onPreInterceptKeyBeforeSoftKeyboard-ZmokQxo", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
final class InterceptedKeyInputNode extends Modifier.Node implements SoftKeyboardInterceptionModifierNode {
|
|
|
|
@Nullable
|
|
private Function1<? super KeyEvent, Boolean> onEvent;
|
|
|
|
@Nullable
|
|
private Function1<? super KeyEvent, Boolean> onPreEvent;
|
|
|
|
public InterceptedKeyInputNode(@Nullable Function1<? super KeyEvent, Boolean> function1, @Nullable Function1<? super KeyEvent, Boolean> function12) {
|
|
this.onEvent = function1;
|
|
this.onPreEvent = function12;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<KeyEvent, Boolean> getOnEvent() {
|
|
return this.onEvent;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<KeyEvent, Boolean> getOnPreEvent() {
|
|
return this.onPreEvent;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.input.key.SoftKeyboardInterceptionModifierNode
|
|
/* renamed from: onInterceptKeyBeforeSoftKeyboard-ZmokQxo, reason: not valid java name */
|
|
public boolean mo5485onInterceptKeyBeforeSoftKeyboardZmokQxo(@NotNull android.view.KeyEvent event) {
|
|
Function1<? super KeyEvent, Boolean> function1 = this.onEvent;
|
|
if (function1 != null) {
|
|
return function1.invoke(KeyEvent.m5781boximpl(event)).booleanValue();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.input.key.SoftKeyboardInterceptionModifierNode
|
|
/* renamed from: onPreInterceptKeyBeforeSoftKeyboard-ZmokQxo, reason: not valid java name */
|
|
public boolean mo5486onPreInterceptKeyBeforeSoftKeyboardZmokQxo(@NotNull android.view.KeyEvent event) {
|
|
Function1<? super KeyEvent, Boolean> function1 = this.onPreEvent;
|
|
if (function1 != null) {
|
|
return function1.invoke(KeyEvent.m5781boximpl(event)).booleanValue();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void setOnEvent(@Nullable Function1<? super KeyEvent, Boolean> function1) {
|
|
this.onEvent = function1;
|
|
}
|
|
|
|
public final void setOnPreEvent(@Nullable Function1<? super KeyEvent, Boolean> function1) {
|
|
this.onPreEvent = function1;
|
|
}
|
|
}
|