API reference

VwmError Enum

Named platform error codes reported when a window fails to place. Surfaced through the code field of WindowLifecycle.Failure when observing a window's lifecycle. Use VwmError.Companion.fromCode to convert a raw integer code into a typed VwmError; unrecognized codes map to VwmError.Unknown.
The SDK applies retry behavior according to the error. The cap rejection arrives as VwmError.PolicyViolation because the platform enforces the child-window limit as a system policy; the SDK retries it only after scene capacity becomes available.

Signature

enum VwmError : Enum<VwmError> 

Enumeration Constants

MemberDescription
NonHostedManager
A non-hosted volumetric window manager is in use (e.g. a non-spatial device).
InvalidParent
The parent volumetric window is invalid or expired.
SurfacePackagePlacementFailure
Placing the SurfaceControlViewHost failed.
ActivityLaunchFailure
The activity associated with the window failed to launch.
WindowPlacementFailure
Generic volumetric-window placement failure.
InvalidParams
The placement parameters were invalid.
PolicyViolation
Placement was rejected by a system policy — the child-window cap is enforced here.
Unknown
An unrecognized error code from the platform.

Properties

code : Int
[Get]
Signature
val code: Int

Companion Object

Methods

fromCode ( code )
Resolves a raw platform code into a typed VwmError, or VwmError.Unknown if unrecognized.
Signature
fun fromCode(code: Int): VwmError
Parameters
code: Int
Returns
VwmError