public void NewObjectWithString() { var obj = new UIActivityViewController("WOOT"); Assert.AreNotEqual(IntPtr.Zero, obj.ClassHandle); Assert.AreNotEqual(IntPtr.Zero, obj.Handle); }
public void NewObjectWithTextAndImage() { var obj = new UIActivityViewController("WOOT", UIImage.FromFile("chuck.jpg")); Assert.AreNotEqual(IntPtr.Zero, obj.ClassHandle); Assert.AreNotEqual(IntPtr.Zero, obj.Handle); }
public void ShareChuck() { var image = UIImage.FromFile("chuck.jpg"); var activityController = new UIActivityViewController(image); var controller = UIApplication.SharedApplication.KeyWindow.RootViewController; controller.PresentViewController(activityController); }
public void NewObjectDispose() { var obj = new UIActivityViewController("WOOT"); obj.Dispose(); }