public void SetUrhoApplicationReference(CameraApplication application) { // Copy reference urhoApplicationReference = application; // Application can now begin streaming StartStreaming(); }
async void StartUrhoApp() { // Create and start cameraPage Urho 3D application application = await urhoSurface.Show <CameraApplication>(new ApplicationOptions(assetsFolder : null) { Orientation = ApplicationOptions.OrientationType.LandscapeAndPortrait }); //Set the orientation of the application to match the rest of the UI application.Orientation = orientation; // Set viewModel's urho application reference viewModel.SetUrhoApplicationReference(application); }