Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewportManager<V>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

reorientationTimer

reorientationTimer: number

Readonly rootViews

rootViews: readonly V[]

Readonly viewContext

viewContext: ViewportContext

Readonly viewManagerObservers

viewManagerObservers: readonly ViewportManagerObserver<View, ViewportManager<View>>[]

viewportResizeTimer

viewportResizeTimer: number

Static ReorientationDelay

ReorientationDelay: number

Static ViewportResizeDelay

ViewportResizeDelay: number

Accessors

viewIdiom

  • Returns ViewIdiom

viewport

  • Returns Viewport

Methods

addViewManagerObserver

Protected attachEvents

  • attachEvents(): void
  • Returns void

Protected debounceReorientation

  • debounceReorientation(): void
  • Returns void

Protected debounceViewportResize

  • debounceViewportResize(): void
  • Returns void

Protected detachEvents

  • detachEvents(): void
  • Returns void

detectViewIdiom

  • Parameters

    Returns undefined | ViewIdiom

detectViewport

  • Returns Viewport

Protected didAddViewManagerObserver

Protected didAttach

  • didAttach(): void
  • Returns void

Protected didDetach

  • didDetach(): void
  • Returns void

Protected didInsertRootView

  • didInsertRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

Protected didObserve

Protected didRemoveRootView

  • didRemoveRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

Protected didRemoveViewManagerObserver

Protected didReorient

  • didReorient(orientation: OrientationType): void
  • Parameters

    • orientation: OrientationType

    Returns void

Protected didSetViewIdiom

  • Parameters

    Returns void

Protected initViewContext

  • Returns ViewportContext

insertRootView

  • insertRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

isAttached

  • isAttached(): boolean
  • Returns boolean

Protected onAddViewManagerObserver

Protected onAttach

  • onAttach(): void
  • Returns void

Protected onDetach

  • onDetach(): void
  • Returns void

Protected onInsertRootView

  • onInsertRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

Protected onRemoveRootView

  • onRemoveRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

Protected onRemoveViewManagerObserver

Protected onReorient

  • onReorient(orientation: OrientationType): void
  • Parameters

    • orientation: OrientationType

    Returns void

Protected onSetViewIdiom

  • Parameters

    Returns void

removeRootView

  • removeRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

removeViewManagerObserver

setViewIdiom

  • setViewIdiom(newViewIdiom: ViewIdiom): void
  • Parameters

    Returns void

Protected throttleReorientation

  • throttleReorientation(): void
  • Returns void

throttleResize

  • throttleResize(): void
  • Returns void

throttleScroll

  • throttleScroll(): void
  • Returns void

Protected throttleViewportResize

  • throttleViewportResize(): void
  • Returns void

updateViewIdiom

  • updateViewIdiom(viewport: Viewport): void
  • Parameters

    Returns void

Protected willAddViewManagerObserver

Protected willAttach

  • willAttach(): void
  • Returns void

Protected willDetach

  • willDetach(): void
  • Returns void

Protected willInsertRootView

  • willInsertRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

Protected willObserve

Protected willRemoveRootView

  • willRemoveRootView(rootView: V): void
  • Parameters

    • rootView: V

    Returns void

Protected willRemoveViewManagerObserver

Protected willReorient

  • willReorient(orientation: OrientationType): void
  • Parameters

    • orientation: OrientationType

    Returns void

Protected willSetViewIdiom

  • Parameters

    Returns void

Static global

  • Type parameters

    Returns ViewportManager<V>

Generated using TypeDoc