private IList <CameraIsoLevel> GetSupportedIsoLevels() { List <CameraIsoLevel> isoLevels = new List <CameraIsoLevel>(); NativeCapabilities.IsoCallback callback = (CameraIsoLevel iso, IntPtr userData) => { isoLevels.Add(iso); return(true); }; CameraErrorFactory.ThrowIfError(NativeCapabilities.SupportedIso(_camera.GetHandle(), callback, IntPtr.Zero), "Failed to get the supported Iso levels."); return(isoLevels.AsReadOnly()); }
private IList <CameraIsoLevel> GetSupportedIsoLevels() { var isoLevels = new List <CameraIsoLevel>(); NativeCapabilities.IsoCallback callback = (iso, _) => { isoLevels.Add(iso); return(true); }; NativeCapabilities.SupportedIso(_camera.GetHandle(), callback). ThrowIfFailed("Failed to get the supported Iso levels."); return(isoLevels.AsReadOnly()); }