-
- All Implemented Interfaces:
-
java.io.Serializable
public interface MessagesLazyListState.MessageOffsetHandler implements Serializable
Handler that calculates the message offset that will be applied to the focused message. Implements Serializable so that it can be saved using Saver to persist the custom implementation of the handler across compositions.
-
-
Method Summary
Modifier and Type Method Description abstract IntegercalculateOffset(IntSize parentSize, IntSize focusedMessageSize)Calculates the focused message offset. -
-
Method Detail
-
calculateOffset
abstract Integer calculateOffset(IntSize parentSize, IntSize focusedMessageSize)
Calculates the focused message offset.
- Parameters:
parentSize- The size of the parent containing the Message we wish to focus.focusedMessageSize- The size of the message we wish to focus.
-
-
-
-