Class RuntimeParameters
RuntimeParameters provide access to runtime specific information.
Calling getter methods will always return the most recent data available.
Inheritance
Namespace: wikitude.sdk.uwp
Assembly: wikitude.sdk.dll
Syntax
public sealed class RuntimeParameters : IDisposable
Methods
Dispose()
Declaration
public void Dispose()
getCameraToSurfaceAngle()
This method returns the most recent angle between the camera and the render surface that is available.
The camera to surface angle can be used to rotate augmentations or other digital content that is rendered on screen.
Declaration
public float getCameraToSurfaceAngle()
Returns
Type | Description |
---|---|
System.Single | The most recent angle between the camera and the rendering surface in degree. |
getCameraToSurfaceScaling()
This method returns the most recent scaling information between the last known surface size and camera frame size.
This information is usefull to render the camera frame 'aspect fill' into the rendering UI component.
Declaration
public Scale2f getCameraToSurfaceScaling()
Returns
Type | Description |
---|---|
Scale2f | The most recent scaling value in pixel. |
getSurfaceSize()
This method returns the most recent surface size that is available.
Surface size is considered to be the size of a rendering UI component that renders the camera image and/or augmentations.
Declaration
public Size2i getSurfaceSize()
Returns
Type | Description |
---|---|
Size2i | The last know surface size in pixel. |
Events
CameraToSurfaceAngleChanged
This event is fired when the camera to surface angle value changes.
Declaration
public event CameraToSurfaceAngleChangedHandler CameraToSurfaceAngleChanged
Event Type
Type | Description |
---|---|
CameraToSurfaceAngleChangedHandler |
CameraToSurfaceScalingChanged
This event is fired when the surface to scaling ratio changes.
Declaration
public event CameraToSurfaceScalingChangedHandler CameraToSurfaceScalingChanged
Event Type
Type | Description |
---|---|
CameraToSurfaceScalingChangedHandler |
SurfaceSizeChanged
This event is fired when the surface size changes.
Declaration
public event SurfaceSizeChangedHandler SurfaceSizeChanged
Event Type
Type | Description |
---|---|
SurfaceSizeChangedHandler |