74 [[nodiscard]] std::string_view
kind() const noexcept
override {
return "android"; }
77 [[nodiscard]] jobject
native() const noexcept {
return view_; }
80 JavaVM* vm_ =
nullptr;
108 std::function<
void(std::string_view)> cb)
override;
114 std::function<
void(
bool)> cb)
override;
120 std::function<
void(
int)> cb)
override;
125 std::function<
void(std::int64_t)> cb)
override;
130 std::function<
void(std::uint64_t)> cb)
override;
135 std::function<
void(
float)> cb)
override;
141 std::function<
void(
double)> cb)
override;
149 std::function<
void()> cb)
override;
168 std::shared_ptr<Impl> p_;
RAII handle to a single subscription.
Definition subscription.hpp:44
::aria::Subscription on_float_changed(::aria::binding::IView &v, std::function< void(float)> cb) override
std::string get_text(::aria::binding::IView &v) override
void set_uint64(::aria::binding::IView &v, std::uint64_t value) override
std::int64_t get_int64(::aria::binding::IView &v) override
std::uint64_t get_uint64(::aria::binding::IView &v) override
void notify_float_changed(::aria::binding::IView &v, float value)
void set_visible(::aria::binding::IView &v, bool visible) override
JniAdapter(const JniAdapter &)=delete
void set_double(::aria::binding::IView &v, double value) override
void notify_uint64_changed(::aria::binding::IView &v, std::uint64_t value)
::aria::Subscription on_double_changed(::aria::binding::IView &v, std::function< void(double)> cb) override
JniAdapter & operator=(const JniAdapter &)=delete
void set_bool(::aria::binding::IView &v, bool value) override
void notify_double_changed(::aria::binding::IView &v, double value)
::aria::Subscription on_int64_changed(::aria::binding::IView &v, std::function< void(std::int64_t)> cb) override
float get_float(::aria::binding::IView &v) override
::aria::Subscription on_click(::aria::binding::IView &v, std::function< void()> cb) override
void notify_int_changed(::aria::binding::IView &v, int value)
double get_double(::aria::binding::IView &v) override
void set_text(::aria::binding::IView &v, std::string_view text) override
void notify_text_changed(::aria::binding::IView &v, std::string_view value)
void set_float(::aria::binding::IView &v, float value) override
int get_int(::aria::binding::IView &v) override
void notify_click(::aria::binding::IView &v)
std::string_view platform_name() const noexcept override
Definition JniAdapter.hpp:100
void notify_int64_changed(::aria::binding::IView &v, std::int64_t value)
void set_int(::aria::binding::IView &v, int value) override
void set_int64(::aria::binding::IView &v, std::int64_t value) override
::aria::Subscription on_uint64_changed(::aria::binding::IView &v, std::function< void(std::uint64_t)> cb) override
::aria::Subscription on_int_changed(::aria::binding::IView &v, std::function< void(int)> cb) override
void notify_bool_changed(::aria::binding::IView &v, bool value)
bool get_bool(::aria::binding::IView &v) override
::aria::Subscription on_text_changed(::aria::binding::IView &v, std::function< void(std::string_view)> cb) override
void set_enabled(::aria::binding::IView &v, bool enabled) override
::aria::Subscription on_bool_changed(::aria::binding::IView &v, std::function< void(bool)> cb) override
JniView & operator=(const JniView &)=delete
jobject native() const noexcept
Access the underlying JNI global-ref jobject.
Definition JniAdapter.hpp:77
JniView(const JniView &)=delete
std::string_view kind() const noexcept override
Reported as "android" — this is the runtime platform name, used by BindingEngine for adapter routing ...
Definition JniAdapter.hpp:74
JniView(JNIEnv *env, jobject view)
Construct from a JNI jobject (Android View).
Abstract platform adapter — knows how to read/write/observe widgets.
Definition view_adapter.hpp:80
Abstract platform widget reference.
Definition view_adapter.hpp:28
#define ARIA_JNI_API
Definition export.hpp:75
JniAdapter — Android JNI implementation of aria::binding::IViewAdapter.
Definition JniAdapter.hpp:54