Example #1
0
        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);
        }
Example #2
0
        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);
        }