|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
Holds a global reference to a managed RecyclerView.Adapter and exposes a JniListSource<T>::NotifySink that drives its notifyItem* methods. More...
#include <JniRecyclerNotifier.hpp>
Public Member Functions | |
| JniRecyclerNotifier (JNIEnv *env, jobject adapter) | |
| ~JniRecyclerNotifier () | |
| JniRecyclerNotifier (const JniRecyclerNotifier &)=delete | |
| JniRecyclerNotifier & | operator= (const JniRecyclerNotifier &)=delete |
| bool | valid () const noexcept |
| std::function< void(const RecyclerNotification &)> | sink () |
| A retained sink becomes inert at notifier destruction. | |
| void | dispatch (const RecyclerNotification ¬ification) |
Holds a global reference to a managed RecyclerView.Adapter and exposes a JniListSource<T>::NotifySink that drives its notifyItem* methods.
Method IDs are resolved once in the constructor: they are stable for the adapter's class, and resolving them per notification would put reflection on the scroll path.
|
inline |
|
inline |
|
delete |
|
delete |
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
A retained sink becomes inert at notifier destruction.
An already executing notification retains its JNI state until the call returns.
|
inline |