I want to implement point-events for Nativescript.
Though I am facing a technical dilemma for which I might need help. Thus this issue
To achieve that feature you need UIView::hitTest or iOS and android.view.View.dispatchTouchEvent on android.
For it work well we would need this to be applied to any view, either from the framework or from a module.
This could be achieved on iOS with a category on UIView in which we would implement hitTest and inside call a method on the Nativescript View class. But is there a way to use category that way in Nativescript? Maybe in the widgets?
Now on android it s even more tricky as it is a method that need to be overridden. There I fill stuck.
I implemented this in another framework (Titanium Mobile), but there it was easier because each widget (even modules) was actually created inside a custom bounding View on which I had total control. So when you were creating a button you were actually creating a view and a button inside it.
For me this is a must have feature as I use it all the time in my apps. For example a flexible app bar under which you have a map view for example.
Any idea would be much appreciated
Reactions are currently unavailable
I want to implement point-events for Nativescript.
Though I am facing a technical dilemma for which I might need help. Thus this issue
To achieve that feature you need UIView::hitTest or iOS and android.view.View.dispatchTouchEvent on android.
For it work well we would need this to be applied to any view, either from the framework or from a module.
This could be achieved on iOS with a category on UIView in which we would implement hitTest and inside call a method on the Nativescript View class. But is there a way to use category that way in Nativescript? Maybe in the widgets?
Now on android it s even more tricky as it is a method that need to be overridden. There I fill stuck.
I implemented this in another framework (Titanium Mobile), but there it was easier because each widget (even modules) was actually created inside a custom bounding View on which I had total control. So when you were creating a button you were actually creating a view and a button inside it.
For me this is a must have feature as I use it all the time in my apps. For example a flexible app bar under which you have a map view for example.
Any idea would be much appreciated