.focusedHandler(focusedEventHandler) .unfocusedHandler(unfocusedEventHandler) .fullImpressionHandler(fullImpressionHandler) .widthPx(10) .heightPx(10))
.focusedHandler(focusedEventHandler1) .unfocusedHandler(unfocusedEventHandler1) .fullImpressionHandler(fullImpressionVisibleEventHandler1) .widthPx(10) .heightPx(5) .focusedHandler(focusedEventHandler2) .unfocusedHandler(unfocusedEventHandler2) .fullImpressionHandler(fullImpressionVisibleEventHandler2) .build()) .visibleHandler(visibleEventHandler3) .focusedHandler(focusedEventHandler3) .unfocusedHandler(unfocusedEventHandler3) .fullImpressionHandler(fullImpressionVisibleEventHandler3)) .build(), true,
@Test public void testFullImpressionEvent() { final TestComponent content = create(mContext).build(); final EventHandler<FullImpressionVisibleEvent> fullImpressionVisibleEvent = new EventHandler<>(content, 2); mountComponent( mContext, mLithoView, Column.create(mContext) .child( Wrapper.create(mContext) .delegate(content) .fullImpressionHandler(fullImpressionVisibleEvent) .widthPx(10) .heightPx(5) .marginPx(YogaEdge.TOP, 5)) .build(), true, 10, 10); assertThat(content.getDispatchedEventHandlers()) .contains(fullImpressionVisibleEvent); }