// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from example.djinni

#pragma once

#include "djinni_support.hpp"
#include "textbox_reset_listener.hpp"

namespace djinni_generated {

class NativeTextboxResetListener final : ::djinni::JniInterface<::textsort::TextboxResetListener, NativeTextboxResetListener> {
public:
    using CppType = std::shared_ptr<::textsort::TextboxResetListener>;
    using CppOptType = std::shared_ptr<::textsort::TextboxResetListener>;
    using JniType = jobject;

    using Boxed = NativeTextboxResetListener;

    ~NativeTextboxResetListener();

    static CppType toCpp(JNIEnv* jniEnv, JniType j) { return ::djinni::JniClass<NativeTextboxResetListener>::get()._fromJava(jniEnv, j); }
    static ::djinni::LocalRef<JniType> fromCppOpt(JNIEnv* jniEnv, const CppOptType& c) { return {jniEnv, ::djinni::JniClass<NativeTextboxResetListener>::get()._toJava(jniEnv, c)}; }
    static ::djinni::LocalRef<JniType> fromCpp(JNIEnv* jniEnv, const CppType& c) { return fromCppOpt(jniEnv, c); }

private:
    NativeTextboxResetListener();
    friend ::djinni::JniClass<NativeTextboxResetListener>;
    friend ::djinni::JniInterface<::textsort::TextboxResetListener, NativeTextboxResetListener>;

    class JavaProxy final : ::djinni::JavaProxyHandle<JavaProxy>, public ::textsort::TextboxResetListener
    {
    public:
        JavaProxy(JniType j);
        ~JavaProxy();

        void reset(const std::string & text) override;

    private:
        friend ::djinni::JniInterface<::textsort::TextboxResetListener, ::djinni_generated::NativeTextboxResetListener>;
    };

    const ::djinni::GlobalRef<jclass> clazz { ::djinni::jniFindClass("com/dropbox/textsort/TextboxResetListener") };
    const jmethodID method_reset { ::djinni::jniGetMethodID(clazz.get(), "reset", "(Ljava/lang/String;)V") };
};

}  // namespace djinni_generated
