Interface ISetScrollable
interface ISetScrollable
Extends com.amazon.apmf.IStandard
This interface allows publishers to describe scrollable components.
Methods
offset()
Set the offset of the currently visible region of the scrollable content. This offset is relative to the total scrollable region. the offset is between the first point in the scrollable container’s bounds and the first point in the scrollable region’s limits (in the common rectangle case, the top-left point of each).voidoffset(Pointoffset)
Parameters
offset
Point — Required
the offset of the currently visible region
limits()
Set the scroll limits. The total region viewable by paging the viewport (this region will likely be much larger than the device’s screen), if the region is infinite, use MAX_INT or MIN_INT for the x or y value of the appropriate coordinates.voidlimits(Point[]limits)
Parameters
limits
Point[] — Required
the limits of the entire scrollable region.
directions()
Set the valid scroll directions for this component.voiddirections(Direction[]directions)
Parameters
directions
Direction[] — Required
the list of currently valid scroll directions.
scrollFunction()
Set the function clients can call to programmatically scroll this component.voidscrollFunction(IScrollFunction*func)
Parameters
func
IScrollFunction* — Required
the function clients can call to programmatically scroll this
component.

