private void LoadArExperience() { ArExperienceAuthorizationController.AuthorizeRestricedAPIAccess(authorizationRequestManager, WTFeatures.Geo, () => { NSUrl fullArExperienceURL = NSBundle.MainBundle.GetUrlForResource("index", "html", "Milan"); loadingArExperienceNavigation = architectView.LoadArchitectWorldFromURL(fullArExperienceURL); }, (UIAlertController alertController) => { PresentViewController(alertController, true, null); }); }
private void getWikitudePermissions() { WTFeatures requiredFeatures = WTFeatures.Geo | WTFeatures.WTFeature_InstantTracking; ArExperienceAuthorizationController.AuthorizeRestricedAPIAccess(m_AuthorizationRequestManager, requiredFeatures, () => { autoConnect(); }, (UIAlertController alertController) => { Alert.Display("Permissions Denied", "You cannot proceed without granting permissions", this, (r) => Environment.Exit(0)); }); }
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { ArExperience selectedArExperience = arExperienceGroup.ArExperiences[indexPath.Row]; WTFeatures requiredFeatures = iOSArExperienceConverter.ConvertFeatures(selectedArExperience.FeaturesMask); ArExperienceAuthorizationController.AuthorizeRestricedAPIAccess(authorizationRequestManager, requiredFeatures, () => { ArExperienceViewController arExperienceViewController = new ArExperienceViewController(selectedArExperience); NavigationController.PushViewController(arExperienceViewController, true); }, (UIAlertController alertController) => { tableView.DeselectRow(indexPath, true); PresentViewController(alertController, true, null); }); }