PullToRefreshBehaviour Class |
Namespace: Com.ForbiddenByte.OSA.Util.PullToRefresh
public class PullToRefreshBehaviour : MonoBehaviour, IScrollRectProxy, IBeginDragHandler, IEventSystemHandler, IDragHandler, IEndDragHandler
The PullToRefreshBehaviour type exposes the following members.
Name | Description | |
---|---|---|
PullToRefreshBehaviour |
Name | Description | |
---|---|---|
Content | ||
IsHorizontal | ||
IsVertical | ||
Velocity | ||
Viewport |
Name | Description | |
---|---|---|
GetContentSize | ||
GetNormalizedPosition | ||
GetViewportSize | ||
HideGizmo | ||
OnBeginDrag | ||
OnDrag | ||
OnEndDrag | ||
SetNormalizedPosition | ||
ShowGizmoIfNeeded | ||
StopMovement |
Name | Description | |
---|---|---|
ScrollPositionChanged | Not used in this default interface implementation |
Name | Description | |
---|---|---|
externalScrollRectProxy |
Will be retrieved from the scrollrect. If not found, it can be assigned anytime before the first Update.
If not assigned, a default proxy will be used. The purpose of this is to allow custom implementations of ScrollRect to be used
| |
OnPullProgress |
Unity event (editable in inspector) fired when each frame the click/finger is dragged after it has touched the ScrollView
Negative values indicate pulling from end
| |
OnRefresh | Unity event (editable in inspector) fired when the refresh occurred |
Name | Description | |
---|---|---|
GetContentSizeToViewportRatio | (Defined by IScrollRectProxyExtensions.) | |
GetScrollableArea | (Defined by IScrollRectProxyExtensions.) |