private static int FilterUnsupportedArExperiences(Context context, List <ArExperienceGroup> experienceGroups) { Features supportedFeaturesForDevice = (Features)ArchitectView.GetSupportedFeaturesForDevice(context); int removedExperiences = 0; foreach (var group in experienceGroups) { removedExperiences += group.ArExperiences.RemoveAll(experience => (experience.FeaturesMask & supportedFeaturesForDevice) != experience.FeaturesMask); } experienceGroups.RemoveAll(group => group.ArExperiences.Count == 0); return(removedExperiences); }