Package 

Interface MessagesLazyListState.MessageOffsetHandler

  • 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 Integer calculateOffset(IntSize parentSize, IntSize focusedMessageSize) Calculates the focused message offset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.