configure

fun Session.configure(config: (Config) -> Unit)

Define the session config used by ARCore

Prefer calling this method before the global (Activity or Fragment) onResume() cause the session base configuration in made there. Any later calls (after onSessionResumed()) to this function are not completely sure be taken in account by ARCore (even if most of them will work)

Please check that all your Session Config parameters are taken in account by ARCore at runtime.

Parameters

config

the apply block for the new config