@@ -25,13 +25,14 @@ import androidx.xr.runtime.Session
2525import androidx.xr.runtime.SessionConfigureConfigurationNotSupported
2626import androidx.xr.runtime.SessionConfigurePermissionsNotGranted
2727import androidx.xr.runtime.SessionConfigureSuccess
28- import androidx.xr.runtime.internal.GltfEntity
2928import androidx.xr.runtime.math.Pose
3029import androidx.xr.runtime.math.Quaternion
3130import androidx.xr.runtime.math.Vector3
31+ import androidx.xr.scenecore.GltfModelEntity
3232import androidx.xr.scenecore.scene
3333import kotlinx.coroutines.launch
3434
35+ @Suppress(" RestrictedApi" ) // b/416288516 - session.config and session.configure() are incorrectly restricted
3536fun ComponentActivity.configureSession (session : Session ) {
3637 // [START androidxr_arcore_hand_configure]
3738 val newConfig = session.config.copy(
@@ -66,7 +67,7 @@ fun ComponentActivity.collectHands(session: Session) {
6667
6768fun ComponentActivity.renderPlanetAtHandPalm (leftHandState : Hand .State ) {
6869 val session: Session = null !!
69- val palmEntity: GltfEntity = null !!
70+ val palmEntity: GltfModelEntity = null !!
7071 // [START androidxr_arcore_hand_entityAtHandPalm]
7172 val palmPose = leftHandState.handJoints[HandJointType .PALM ] ? : return
7273
@@ -86,7 +87,7 @@ fun ComponentActivity.renderPlanetAtHandPalm(leftHandState: Hand.State) {
8687
8788fun ComponentActivity.renderPlanetAtFingerTip (rightHandState : Hand .State ) {
8889 val session: Session = null !!
89- val indexFingerEntity: GltfEntity = null !!
90+ val indexFingerEntity: GltfModelEntity = null !!
9091
9192 // [START androidxr_arcore_hand_entityAtIndexFingerTip]
9293 val tipPose = rightHandState.handJoints[HandJointType .INDEX_TIP ] ? : return
0 commit comments