Wraps an Android View (jobject) as an IView.
More...
#include <JniAdapter.hpp>
|
| | JniView (JNIEnv *env, jobject view) |
| | Construct from a JNI jobject (Android View).
|
| | ~JniView () override |
| | JniView (const JniView &)=delete |
| JniView & | operator= (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 (the adapter is "jni", the platform is "android").
|
| jobject | native () const noexcept |
| | Access the underlying JNI global-ref jobject.
|
| | IView () |
| | IView (const IView &)=delete |
| IView & | operator= (const IView &)=delete |
| | IView (IView &&)=delete |
| IView & | operator= (IView &&)=delete |
| virtual | ~IView () |
| Subscription | on_destroy (std::function< void()> cb) const |
| | Subscribe to "this view is about to be destroyed".
|
|
| void | fire_destroy_ () noexcept |
| | Invoked by ~IView() to fan out the notification — this is the last-resort trigger.
|
Wraps an Android View (jobject) as an IView.
The jobject is stored as a JNI global reference to prevent GC.
◆ JniView() [1/2]
| aria::adapters::jni::JniView::JniView |
( |
JNIEnv * | env, |
|
|
jobject | view ) |
Construct from a JNI jobject (Android View).
Creates a global reference to prevent garbage collection.
◆ ~JniView()
| aria::adapters::jni::JniView::~JniView |
( |
| ) |
|
|
override |
◆ JniView() [2/2]
| aria::adapters::jni::JniView::JniView |
( |
const JniView & | | ) |
|
|
delete |
◆ operator=()
◆ kind()
| std::string_view aria::adapters::jni::JniView::kind |
( |
| ) |
const |
|
inlinenodiscardoverridevirtualnoexcept |
Reported as "android" — this is the runtime platform name, used by BindingEngine for adapter routing (the adapter is "jni", the platform is "android").
Implements aria::binding::IView.
◆ native()
| jobject aria::adapters::jni::JniView::native |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Access the underlying JNI global-ref jobject.
The documentation for this class was generated from the following file: