Property

session

The XR Session for the current AndroidComposeTestRule.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public var AndroidComposeTestRule<*, *>.session: Session?

The XR Session for the current AndroidComposeTestRule.

This will be null until the value is set or LocalSession.current is accessed in compose, after which the value will be non-null and return the current Session. Setting this value after calling setContent will not change the Session that is used for that content block. Setting the value to null will indicate that the default test Session should be used.