Ejemplo n.º 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);
		}
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
		public static bool IsCompatibleWithSavedPhotosAlbum (string path)
		{
			UIApplication.EnsureUIThread ();
			using (var ns = new NSString (path))
				return UIVideoAtPathIsCompatibleWithSavedPhotosAlbum (ns.Handle);
		}