Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeviceServiceProvider

Hierarchy

Index

Constructors

constructor

Properties

Private Optional _currentGeolocationOptions

_currentGeolocationOptions: GeolocationOptions

Private Optional _geolocationWatchId

_geolocationWatchId: number

Private _getEntityOrientationInReferenceFrame

_getEntityOrientationInReferenceFrame: getEntityOrientationInReferenceFrame = getEntityOrientationInReferenceFrame

Private _getEntityPositionInReferenceFrame

_getEntityPositionInReferenceFrame: getEntityPositionInReferenceFrame = getEntityPositionInReferenceFrame

Private _getSerializedEntityState

_getSerializedEntityState: getSerializedEntityState = getSerializedEntityState

Private _isPresentingHMD

_isPresentingHMD: boolean = false

Private _scratchCartesianLocalOrigin

_scratchCartesianLocalOrigin: Cartesian3 = new Cartesian3

Private _scratchCartesianUpdate

_scratchCartesianUpdate: Cartesian3 = new Cartesian3

Private _scratchFrustum

_scratchFrustum: PerspectiveFrustum = new PerspectiveFrustum()

Private _scratchQuaternionLocalOrigin

_scratchQuaternionLocalOrigin: Quaternion = new Quaternion

Private _scratchQuaternionUpdate

_scratchQuaternionUpdate: Quaternion = new Quaternion

Private _scratchStagePosition

_scratchStagePosition: Cartesian3 = new Cartesian3

Private _sessionGeolocationOptions

_sessionGeolocationOptions: Map<SessionPort, GeolocationOptions> = new Map<SessionPort, GeolocationOptions|undefined>()

Private _suggestedFrameState

_suggestedFrameState: SuggestedFrameState = new SuggestedFrameState

Private _targetGeolocationOptions

_targetGeolocationOptions: GeolocationOptions

Protected contextService

contextService: ContextService

Protected contextServiceProvider

contextServiceProvider: ContextServiceProvider

defaultUserHeightHMD

defaultUserHeightHMD: number = AVERAGE_EYE_HEIGHT

defaultUserHeightHandheld

defaultUserHeightHandheld: number = AVERAGE_EYE_HEIGHT / 2

Protected deviceService

deviceService: DeviceService

Protected sessionService

sessionService: SessionService

Protected viewService

viewService: ViewService

Accessors

defaultUserHeight

  • get defaultUserHeight(): number

Methods

Private _checkDeviceGeolocationSubscribers

  • _checkDeviceGeolocationSubscribers(): void

Private _handleSetGeolocationOptions

Private _updateTargetGeolocationOptions

  • _updateTargetGeolocationOptions(): void

Protected configureLocalOrigin

  • configureLocalOrigin(longitude?: number, latitude?: number, altitude?: number, geoHorizontalAccuracy?: number, geoVerticalAccuracy?: number): void
  • Parameters

    • Optional longitude: number
    • Optional latitude: number
    • Optional altitude: number
    • Optional geoHorizontalAccuracy: number
    • Optional geoVerticalAccuracy: number

    Returns void

onExitPresentHMD

  • onExitPresentHMD(session: SessionPort): Promise<void>

Protected onRequestFrameState

Protected onRequestPresentHMD

  • onRequestPresentHMD(session: SessionPort): Promise<void>

Protected onStartGeolocationUpdates

Protected onStopGeolocationUpdates

  • onStopGeolocationUpdates(): void

Protected onUpdate

Protected setPresentingHMD

  • setPresentingHMD(state: boolean): void

update

Protected updateStageDefault

  • updateStageDefault(): void

Generated using TypeDoc