OSATParams, TItemViewsHolderSmoothBringToView Method |
Namespace:
Com.ForbiddenByte.OSA.Core
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public virtual bool SmoothBringToView(
int itemIndex,
float duration,
Nullable<float> spacingFromViewportEdge = null,
Func<float, bool> onProgress = null,
bool overrideCurrentScrollingAnimation = false
)
Parameters
- itemIndex
- Type: SystemInt32
- duration
- Type: SystemSingle
- spacingFromViewportEdge (Optional)
- Type: SystemNullableSingle
if not set, ContentSpacing will be used. Set to 0 to align the item's edge to the viewport's edge exactly, with no spacing
- onProgress (Optional)
- Type: SystemFuncSingle, Boolean
- overrideCurrentScrollingAnimation (Optional)
- Type: SystemBoolean
Return Value
Type:
BooleanTrue, if the animation started. For details, see also the return value of
SmoothScrollTo(Int32, Single, Single, Single, FuncSingle, Boolean, Boolean)Version Information Optimized ScrollView Adapter
Supported in: 4.1
See Also