UIRenderContext
class UIRenderContext abstract
extends
ManagedObject
Base application render context, to be extended with platform specific render implementation.
Constructor
(): UIRenderContext
.viewportContext abstract
any
Observable viewport data; propagated to AppActivity
and ViewComponent
so that it can be used by bindings within view components.
.emitRenderChange()
(): void
Emit a change event for this context, e.g. when the viewport orientation or current locale changes. This will trigger all views to re-render if needed.
.getAppComponents()
():
ManagedObject
[]
Returns a list of all application components (activities, view components) that are associated with this render context.
.clear() abstract
(): void
Remove all rendered output from the screen.
.getRenderCallback() abstract
():
RenderCallback
<
Output
<never, never>>
Returns a callback that can be used to render an output element to the screen asynchronously.
.managedId
number
Inherited from ManagedObject.managedId
.
.managedState
Inherited from ManagedObject.managedState
.
.getReferenceCount() protected
(): number
Inherited from ManagedObject.getReferenceCount
.
.getManagedReferrers() protected
():
ManagedObject
[]
Inherited from ManagedObject.getManagedReferrers
.
.getManagedParent() protected
<TParent extends ManagedObject = ManagedObject>(ParentClass?:
ManagedObjectConstructor
<TParent>): TParent
Inherited from ManagedObject.getManagedParent
.
.emit()
<TEvent extends ManagedEvent = ManagedEvent, TConstructorArgs extends any[] = any[]>(e: string | TEvent | (new (...args: TConstructorArgs) => TEvent), ...constructorArgs: TConstructorArgs): this
Inherited from ManagedObject.emit
.
.emitChange()
(name?: string): void
Inherited from ManagedObject.emitChange
.
.propagateChildEvents() protected deprecated
(...types: ((new (...args: any[]) =>
ManagedEvent
) | ((e:
ManagedEvent
) => any))[]): this
Inherited from ManagedObject.propagateChildEvents
.
.activateManagedAsync() protected
(): Promise<any>
Inherited from ManagedObject.activateManagedAsync
.
.deactivateManagedAsync() protected
(): Promise<void>
Inherited from ManagedObject.deactivateManagedAsync
.
.destroyManagedAsync() protected
(): Promise<void>
Inherited from ManagedObject.destroyManagedAsync
.
.onManagedStateActivatingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateActivatingAsync
.
.onManagedStateActiveAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateActiveAsync
.
.onManagedStateDeactivatingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateDeactivatingAsync
.
.onManagedStateInactiveAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateInactiveAsync
.
.onManagedStateDestroyingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateDestroyingAsync
.
UIRenderContext.RenderCallback
Callback function that accepts rendered output and returns a next callback.
UIRenderContext.Output
Encapsulates a rendered output element, to be placed on screen by a platform specific UIRenderContext
instance.
Constructor
<TComponent extends UIRenderable = UIRenderable, TElement = any>(source: TComponent, element: TElement, placement?:
UIRenderPlacement
, reference?:
UIComponent
):
Output
<...>
.source
TComponent
The rendered component.
.element
TElement
The rendered element, as a platform-dependent object or handle.
.placement
Placement mode, used by UIRenderContext
for root output elements.
.placementRef
Placement reference for dropdowns and popovers.
.modalShadeOpacity
number
Modal shade opacity behind content (0-1).
.detach
() => void
Handler function, added by a previous parent renderer (if any), to detach the visible element from the previous parent’s tree structure; any other renderer should call this method before adding the element to a new parent.