Class ServiceStateReceiverBackend
Connector for receiving localization data the holoride service.
Inherited Members
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.StateReceivers.dll
Syntax
[PublicAPI]
public sealed class ServiceStateReceiverBackend : StateReceiverBackend
Properties
AutomaticallyConnectAndSubscribe
Gets or sets a value indicating whether to automatically connect to service when this backend gets enabled.
Declaration
public bool AutomaticallyConnectAndSubscribe { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Changing this at runtime may lead to a re-connect to the service.
InterpolationFrameSize
Gets or sets the interpolation frame size controls the delay data is presented at, where this delay window is used to interpolate underlying data, to ensure it is played back at the same rate the underlying records represent. Disabling interpolation by setting it to zero may result in rubber-banding.
The window size is specified in seconds.
Declaration
public float InterpolationFrameSize { get; set; }
Property Value
Type | Description |
---|---|
float |
TravelInformationState
Declaration
public override TravelInformationState TravelInformationState { get; }
Property Value
Type | Description |
---|---|
TravelInformationState |
Overrides
VehicleSensorState
Declaration
public override VehicleSensorState VehicleSensorState { get; protected set; }
Property Value
Type | Description |
---|---|
VehicleSensorState |
Overrides
VoyagerManager
Gets the underlying manager used to communicate with the service. Regular applications should use this property, but rely on the methods and events provided by this class. This property is only exposed for internal use and will be removed in the future.
Declaration
[Obsolete("Obtain from Unity Subsystem API instead.")]
public IHolorideServiceManagerSubsystem VoyagerManager { get; }
Property Value
Type | Description |
---|---|
Holoride.Service.SDK.IHolorideServiceManagerSubsystem |
Methods
Disable()
Declaration
public override void Disable()
Overrides
Enable()
Declaration
public override void Enable()
Overrides
OnApplicationResume()
Declaration
public override void OnApplicationResume()
Overrides
OnDestroy()
Declaration
protected override void OnDestroy()
Overrides
ResetLocalization()
Requests a localization reset from the service.
Will trigger the OnVehicleLocalizationReset() event when complete.
Requires an active connection to the service, i.e. State has to be Available. To wait for the connection if it has not been established, use the OnConnect() event.
Declaration
public void ResetLocalization()
Update()
Declaration
public override void Update()