Skip to main content

ARDK for Android/com.nianticlabs.ardk.vps/VPSSession/configure

configure

[androidJvm]
fun configure(config: VPSConfig)

Configures the session with the specified settings.

Attention: This method must be called while the session is stopped, or configuration will fail. In that case, while this function returns without throwing, configuration will still fail asynchronously. Use featureStatus to check that configuration has not failed.

Parameters​

androidJvm

configAn object that defines this session's behavior. Only settings that differ from the defaults will be applied.

See also​

VPSConfig

Throws​

ARDKStatusException with code ARDKStatus.invalidArgument if the configuration is invalid. Check ARDK's C logs for more information.