| 48 | namespace ValdiAndroid { |
| 49 | |
| 50 | ViewManager::ViewManager(JavaEnv env, jobject object, float pointScale, Valdi::ILogger& logger) |
| 51 | : GlobalRefJavaObject(env, object, "ViewManager"), |
| 52 | _viewOperationsPool(Valdi::makeShared<DeferredViewOperationsPool>()), |
| 53 | _pointScale(pointScale), |
| 54 | _logger(logger) { |
| 55 | auto obj = toObject(); |
| 56 | auto cls = obj.getClass(); |
| 57 | cls.getMethod("createViewFactory", _createViewFactoryMethod); |
| 58 | cls.getMethod("callAction", _callActionMethod); |
| 59 | cls.getMethod("bindAttributes", _bindAttributesMethod); |
| 60 | cls.getMethod("createAnimator", _createAnimatorMethod); |
| 61 | cls.getMethod("presentDebugMessage", _presentDebugMessageMethod); |
| 62 | cls.getMethod("onNonFatal", _onNonFatal); |
| 63 | cls.getMethod("onJsCrash", _onJsCrash); |
| 64 | cls.getMethod("performViewOperations", _performViewOperationsMethod); |
| 65 | cls.getMethod("measure", _measureMethod); |
| 66 | cls.getMethod("getMeasurerPlaceholderView", _getMeasurerPlaceholderViewMethod); |
| 67 | cls.getMethod("createViewNodeWrapper", _createViewNodeWrapperMethod); |
| 68 | } |
| 69 | |
| 70 | ViewManager::~ViewManager() = default; |
| 71 | |