IHosannaView
Duration of scroll animations in ms.
Private
animatorAnimator for smooth scrolling.
Optional
audioThis hint can be used in conjunction with the audio guide item
Optional
audioEnables or disables auto-scrolling to focused child.
Indicates whether the element can receive focus.
These are the children that are rendered on screen in the tree structure of the view
Indicdates whether the view is a focus group which means it can have a focused child Otherwise it will be focused itself
Private
contentOptional
customOptional
customCallback for custom horizontal positioning.
Custom horizontal position for children.
Custom vertical position for children.
Optional
customCallback for custom vertical positioning.
Optional
focusedHorizontal alignment of scrollable content.
Indicates whether the element is currently focused.
If true, this view has been presented in an AggregateViewController
Private
lastLast focused child view.
Optional
onOptional callback for custom animation to position.
Private
originalOriginal container position for restoration.
Optional
parentPrivate
pendingPending focus event for deferred scrolling.
Private
pivotView to restore scroll position to.
Optional
scrollChild to scroll to.
These are the children that were created in getViews, in a flat strcuture - it contains EVERYTHING that we declared.
Vertical alignment of scrollable content.
The IHosannaView subclass that created us in getViews
Height of the scrollable viewport.
Private
viewportThe origin position of the viewport.
Width of the scrollable viewport.
Indicates whether the navigatable entity is visible.
Private
wasWhether the view was scrolled.
Children
Optional
mountTarget: IHosannaView<ViewState>View Creation
Animates the scroll view to bring a child into view.
The child view to scroll to.
The animation duration in ms.
Animates the scroll view to a specific position.
The [x, y] translation to animate to.
The animation duration in ms.
Optional
nextState: ScrollViewStatePrivate
bottomBuilds the view and attaches it to the view owner.
Optional
mountTarget: IHosannaView<ViewState>The target to mount the view.
The built view or undefined.
Private
centerPrivate
centerPrivate
customPrivate
customPrivate
definePrivate
defineOptional
options: IScreenDismissOptionsOptional
args: Record<string, unknown>Optional
cancellationToken: HsCancellationTokenAsync Support
Optional
args: Record<string, unknown>Optional
callback: AsyncCommandEventCallbackResolves the next focusable element in the given direction.
The event containing details about the focus transition.
The next focusable element, or undefined if none exists.
Private
floatingPrivate
floatingAudio guide support
Measurement
Private
getRendererers
Private
handleHandles a focus change event and animates to the new child.
The focus child change event.
Hibernates the view and its subviews by releasing native renderers and setting the view phase to Hibernating.
The view to be added as a subview.
index of the child in the parent view, -1 means add to end
Focus
Private
leftPrivate
needPrivate
nonePrivate
noneHandles changes to the focused child and triggers scrolling if needed.
The focus child change event.
Called when the navigatable entity is shown.
DO NOT CALL THIS METHOD DIRECTLY DO NOT OVERRIDE IT
Called after the navigatable entity has been added to an aggregate view.
The aggregate view to which the entity has been added.
Called after the navigatable entity has been removed from an aggregate view.
The aggregate view from which the entity has been removed.
Called when the navigatable entity is hidden.
Handles focus events for the scroll view.
Handles a key event.
The key event to handle.
True if the key event was handled, false otherwise.
Called before the navigatable entity is added to an aggregate view.
The aggregate view to which the entity will be added.
This method is called before applying state changes to the view. It is used to perform any necessary preparations before the state changes are applied.
Called before the navigatable entity is removed from an aggregate view.
The aggregate view from which the entity will be removed.
Performs layout of child views and handles pending focus events.
Private
predefinedPrivate
predefinedPresents a new screen in the navigation stack or as a dialog.
The screen to be presented, represented by a ViewStruct<ViewState>
.
Optional
options: IScreenPresentationOptionsOptional presentation options.
If true, the screen will be presented as a dialog.
If true, the screen transition will be animated.
IReusable implementation
Private
restorePrivate
rightNavigatable View
Private
storePrivate
topWakes up the view and its subviews by reserving native renderers and setting the view phase to Mounted.
ScrollViewView is a composite view for displaying scrollable content.
Remarks
Example