public static void SaveToPhotosAlbum (string path, SaveStatus status) { if (path == null) throw new ArgumentNullException ("path"); if (status == null) throw new ArgumentNullException ("status"); UIApplication.EnsureUIThread (); var dis = new UIVideoStatusDispatcher (status); using (var ns = new NSString (path)) UISaveVideoAtPathToSavedPhotosAlbum (ns.Handle, dis.Handle, Selector.GetHandle (UIVideoStatusDispatcher.callbackSelector), IntPtr.Zero); }
public void SaveToPhotosAlbum(SaveStatus status) { UIImageStatusDispatcher dis = null; UIApplication.EnsureUIThread(); if (status != null) { dis = new UIImageStatusDispatcher(status); } UIImageWriteToSavedPhotosAlbum(Handle, dis != null ? dis.Handle : IntPtr.Zero, dis != null ? Selector.GetHandle(UIImageStatusDispatcher.callbackSelector) : IntPtr.Zero, IntPtr.Zero); }
public static bool IsCompatibleWithSavedPhotosAlbum (string path) { UIApplication.EnsureUIThread (); using (var ns = new NSString (path)) return UIVideoAtPathIsCompatibleWithSavedPhotosAlbum (ns.Handle); }