protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); arSceneView = (ArSceneView)FindViewById(Resource.Id.ar_scene_view); exampleLayout = ViewRenderable.InvokeBuilder().SetView(this, Resource.Layout.example_layout).Build(); CompletableFuture.AllOf(exampleLayout).Handle(this); arSceneView.Scene.AddOnUpdateListener(this); ARLocationPermissionHelper.RequestPermission(this); }
public Java.Lang.Object Apply(Java.Lang.Object t, Java.Lang.Object u) { if (u != null) { return(null); } try { exampleLayoutRenderable = (ViewRenderable)exampleLayout.Get(); hasFinishedLoading = true; } catch (System.Exception) { } return(null); }