package com.ustadmobile.port.android.view;

import java.lang.System;

/**
 * This is a convenience wrapper for a Spinner that contains a fixed list of choices (e.g.
 * field dropdowns, sort options, etc). Each choice has a Message ID that is used to determine
 * the string to show to the user, and a code that is the value to be stored.
 */
@kotlin.Metadata(mv = {1, 7, 1}, k = 1, d1 = {"\u0000^\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\b\f\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u00012\u00020\u0002:\u0001/B\u000f\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0002\u0010\u0005B\u0019\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u00a2\u0006\u0002\u0010\bB!\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007\u0012\u0006\u0010\t\u001a\u00020\n\u00a2\u0006\u0002\u0010\u000bJ\b\u0010\"\u001a\u00020#H\u0002J0\u0010$\u001a\u00020#2\f\u0010%\u001a\b\u0012\u0002\b\u0003\u0018\u00010&2\b\u0010\'\u001a\u0004\u0018\u00010(2\u0006\u0010)\u001a\u00020\n2\u0006\u0010*\u001a\u00020+H\u0016J\u0016\u0010,\u001a\u00020#2\f\u0010%\u001a\b\u0012\u0002\b\u0003\u0018\u00010&H\u0016J\u0012\u0010-\u001a\u00020#2\b\u0010.\u001a\u0004\u0018\u00010\u0002H\u0016R\u0016\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\rX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u0010X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014R0\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u000e0\u00162\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u000e0\u0016@FX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR\u0010\u0010\u001c\u001a\u0004\u0018\u00010\u0002X\u0082\u000e\u00a2\u0006\u0002\n\u0000R$\u0010\u001d\u001a\u00020\n2\u0006\u0010\u0015\u001a\u00020\n8F@FX\u0086\u000e\u00a2\u0006\f\u001a\u0004\b\u001e\u0010\u001f\"\u0004\b \u0010!\u00a8\u00060"}, d2 = {"Lcom/ustadmobile/port/android/view/MessageIdSpinner;", "Landroidx/appcompat/widget/AppCompatSpinner;", "Landroid/widget/AdapterView$OnItemSelectedListener;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "attrs", "Landroid/util/AttributeSet;", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "defStyleAttr", "", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "mMessageIdArrayAdapter", "Landroid/widget/ArrayAdapter;", "Lcom/ustadmobile/core/util/IdOption;", "messageIdOptionSelectedListener", "Lcom/ustadmobile/port/android/view/MessageIdSpinner$OnMessageIdOptionSelectedListener;", "getMessageIdOptionSelectedListener", "()Lcom/ustadmobile/port/android/view/MessageIdSpinner$OnMessageIdOptionSelectedListener;", "setMessageIdOptionSelectedListener", "(Lcom/ustadmobile/port/android/view/MessageIdSpinner$OnMessageIdOptionSelectedListener;)V", "value", "", "messageIdOptions", "getMessageIdOptions", "()Ljava/util/List;", "setMessageIdOptions", "(Ljava/util/List;)V", "realItemSelectedListener", "selectedMessageIdOption", "getSelectedMessageIdOption", "()I", "setSelectedMessageIdOption", "(I)V", "init", "", "onItemSelected", "parent", "Landroid/widget/AdapterView;", "view", "Landroid/view/View;", "position", "id", "", "onNothingSelected", "setOnItemSelectedListener", "listener", "OnMessageIdOptionSelectedListener", "app-android_debug"})
@java.lang.Deprecated()
public final class MessageIdSpinner extends androidx.appcompat.widget.AppCompatSpinner implements android.widget.AdapterView.OnItemSelectedListener {
    private android.widget.AdapterView.OnItemSelectedListener realItemSelectedListener;
    @org.jetbrains.annotations.Nullable()
    private com.ustadmobile.port.android.view.MessageIdSpinner.OnMessageIdOptionSelectedListener messageIdOptionSelectedListener;
    private android.widget.ArrayAdapter<com.ustadmobile.core.util.IdOption> mMessageIdArrayAdapter;
    @org.jetbrains.annotations.NotNull()
    private java.util.List<? extends com.ustadmobile.core.util.IdOption> messageIdOptions;
    
    @org.jetbrains.annotations.Nullable()
    public final com.ustadmobile.port.android.view.MessageIdSpinner.OnMessageIdOptionSelectedListener getMessageIdOptionSelectedListener() {
        return null;
    }
    
    public final void setMessageIdOptionSelectedListener(@org.jetbrains.annotations.Nullable()
    com.ustadmobile.port.android.view.MessageIdSpinner.OnMessageIdOptionSelectedListener p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public final java.util.List<com.ustadmobile.core.util.IdOption> getMessageIdOptions() {
        return null;
    }
    
    public final void setMessageIdOptions(@org.jetbrains.annotations.NotNull()
    java.util.List<? extends com.ustadmobile.core.util.IdOption> value) {
    }
    
    public final int getSelectedMessageIdOption() {
        return 0;
    }
    
    public final void setSelectedMessageIdOption(int value) {
    }
    
    public MessageIdSpinner(@org.jetbrains.annotations.NotNull()
    android.content.Context context) {
        super(null);
    }
    
    public MessageIdSpinner(@org.jetbrains.annotations.NotNull()
    android.content.Context context, @org.jetbrains.annotations.Nullable()
    android.util.AttributeSet attrs) {
        super(null);
    }
    
    public MessageIdSpinner(@org.jetbrains.annotations.NotNull()
    android.content.Context context, @org.jetbrains.annotations.Nullable()
    android.util.AttributeSet attrs, int defStyleAttr) {
        super(null);
    }
    
    private final void init() {
    }
    
    @java.lang.Override()
    public void setOnItemSelectedListener(@org.jetbrains.annotations.Nullable()
    android.widget.AdapterView.OnItemSelectedListener listener) {
    }
    
    @java.lang.Override()
    public void onNothingSelected(@org.jetbrains.annotations.Nullable()
    android.widget.AdapterView<?> parent) {
    }
    
    @java.lang.Override()
    public void onItemSelected(@org.jetbrains.annotations.Nullable()
    android.widget.AdapterView<?> parent, @org.jetbrains.annotations.Nullable()
    android.view.View view, int position, long id) {
    }
    
    @kotlin.Metadata(mv = {1, 7, 1}, k = 1, d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bf\u0018\u00002\u00020\u0001J\u001e\u0010\u0002\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00052\u0006\u0010\u0006\u001a\u00020\u0007H&J\u0016\u0010\b\u001a\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0005H&\u00a8\u0006\t"}, d2 = {"Lcom/ustadmobile/port/android/view/MessageIdSpinner$OnMessageIdOptionSelectedListener;", "", "onMessageIdOptionSelected", "", "view", "Landroid/widget/AdapterView;", "messageIdOption", "Lcom/ustadmobile/core/util/IdOption;", "onNoMessageIdOptionSelected", "app-android_debug"})
    public static abstract interface OnMessageIdOptionSelectedListener {
        
        public abstract void onMessageIdOptionSelected(@org.jetbrains.annotations.Nullable()
        android.widget.AdapterView<?> view, @org.jetbrains.annotations.NotNull()
        com.ustadmobile.core.util.IdOption messageIdOption);
        
        public abstract void onNoMessageIdOptionSelected(@org.jetbrains.annotations.Nullable()
        android.widget.AdapterView<?> view);
    }
}