File tree Expand file tree Collapse file tree 5 files changed +5
-22
lines changed
xr/src/main/java/com/example/xr Expand file tree Collapse file tree 5 files changed +5
-22
lines changed Original file line number Diff line number Diff line change 1
- val snapshotVersion : String? = " 13623196 "
1
+ val snapshotVersion : String? = " 13663278 "
2
2
3
3
pluginManagement {
4
4
repositories {
Original file line number Diff line number Diff line change @@ -33,6 +33,6 @@ fun modeTransitionCompose() {
33
33
@Suppress(" RestrictedApi" ) // b/416066566
34
34
fun modeTransitionScenecore (xrSession : Session ) {
35
35
// [START androidxr_misc_modeTransitionScenecore]
36
- xrSession.scene.spatialEnvironment. requestHomeSpaceMode()
36
+ xrSession.scene.requestHomeSpaceMode()
37
37
// [END androidxr_misc_modeTransitionScenecore]
38
38
}
Original file line number Diff line number Diff line change @@ -22,8 +22,6 @@ import androidx.xr.compose.platform.LocalSession
22
22
import androidx.xr.runtime.Session
23
23
import androidx.xr.runtime.SessionCreatePermissionsNotGranted
24
24
import androidx.xr.runtime.SessionCreateSuccess
25
- import androidx.xr.runtime.SessionResumePermissionsNotGranted
26
- import androidx.xr.runtime.SessionResumeSuccess
27
25
28
26
// [START androidxr_localsession]
29
27
@Composable
@@ -45,19 +43,4 @@ fun Activity.createSession() {
45
43
TODO (/* A different unhandled exception was thrown. */ )
46
44
}
47
45
// [END androidxr_session_create]
48
- }
49
-
50
- fun sessionResume (session : Session ) {
51
- // [START androidxr_session_resume]
52
- when (val result = session.resume()) {
53
- is SessionResumeSuccess -> {
54
- // Session has been created successfully.
55
- // Attach any successful handlers here.
56
- }
57
-
58
- is SessionResumePermissionsNotGranted -> {
59
- // Request permissions in `result.permissions`.
60
- }
61
- }
62
- // [END androidxr_session_resume]
63
- }
46
+ }
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ import androidx.xr.scenecore.ExrImage
22
22
import androidx.xr.scenecore.GltfModel
23
23
import androidx.xr.scenecore.SpatialEnvironment
24
24
import androidx.xr.scenecore.scene
25
- import java.nio.file.Paths
26
25
import kotlinx.coroutines.guava.await
26
+ import java.nio.file.Paths
27
27
28
28
private class Environments (val session : Session ) {
29
29
suspend fun loadEnvironmentGeometry (context : Context ) {
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ import androidx.xr.scenecore.GltfModel
25
25
import androidx.xr.scenecore.GltfModelEntity
26
26
import androidx.xr.scenecore.SpatialCapabilities
27
27
import androidx.xr.scenecore.scene
28
- import java.nio.file.Paths
29
28
import kotlinx.coroutines.guava.await
29
+ import java.nio.file.Paths
30
30
31
31
private suspend fun loadGltfFile (session : Session ) {
32
32
// [START androidxr_scenecore_gltfmodel_create]
You can’t perform that action at this time.
0 commit comments