API reference
API reference
Select your platform
No SDKs available
No versions available

SpatialContext Class

Modifiers: final
Android Context wrapper that provides access to the Spatial SDK runtime via SpatialInterface. Extends ContextWrapper so that standard Android getSystemService() calls can resolve the SpatialInterface by class name, enabling Spatial SDK integration within Android components (Activities, Services) that rely on context-based service discovery.

Constructors

SpatialContext ( ctx , spatial )
Signature
constructor(ctx: Context, spatial: SpatialInterface)
Parameters
ctx: Context

Properties

[Get]
Signature
val spatial: SpatialInterface

Methods

getSystemService ( name )
Signature
open fun getSystemService(name: String): Any?
Parameters
name: String
Returns
Any?
getSystemServiceName ( serviceClass )
Signature
open fun getSystemServiceName(serviceClass: Class<*>): String?
Parameters
serviceClass: Class
Returns
String?