public class MFMailComposeViewController extends UINavigationController
| Constructor and Description | 
|---|
MFMailComposeViewController()
The default constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addAttachmentData(NSData attachment,
                 String mimeType,
                 String filename)
Adds the specified data as an attachment to the message. 
 | 
static boolean | 
canSendMail()
Returns a Boolean that shows whether the device supports email message
 sending. 
 | 
MFMailComposeViewControllerDelegate | 
mailComposeDelegate()
Returns the delegate of this MFMailComposeViewController. 
 | 
void | 
setBccRecipients(List<String> bccRecipients)
Sets the Bcc recipients of the email message. 
 | 
void | 
setCcRecipients(List<String> ccRecipients)
Sets the Cc recipients of the email message. 
 | 
void | 
setMailComposeDelegate(MFMailComposeViewControllerDelegate mailComposeDelegate)
Sets the delegate for this MFMailComposeViewController. 
 | 
void | 
setMessageBody(String body,
              boolean isHTML)
Sets the text-body of the email message. 
 | 
void | 
setSubject(String subject)
Sets the subject of the email message. 
 | 
void | 
setToRecipients(List<String> toRecipients)
Sets a list with the recipients of the email message. 
 | 
void | 
viewWillAppear(boolean animated)
Called before the view is added to the view controller's hierarchy with
 animation or not according to the Boolean parameter. 
 | 
delegate, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, isNavigationBarHidden, isToolbarHidden, loadView, navigationBar, popToRootViewControllerAnimated, popToViewController, popViewControllerAnimated, pushViewController, setDelegate, setNavigationBarHidden, setNavigationBarHidden, setToolbarHidden, setToolbarHidden, setViewControllers, setViewControllers, showViewController, tabBarItem, toolbar, topViewController, viewControllers, viewDidAppear, viewDidDisappear, viewWillDisappear, visibleViewController, willAnimateRotationToInterfaceOrientation, willRotateToInterfaceOrientationaddChildViewController, additionalSafeAreaInsets, allowedChildViewControllersForUnwindingFromSource, attemptRotationToDeviceOrientation, automaticallyAdjustsScrollViewInsets, beginAppearanceTransition, bottomLayoutGuide, childViewControllerContainingSegueSource, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, contentSizeForViewInPopover, definesPresentationContext, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissViewControllerAnimated, edgesForExtendedLayout, editButtonItem, endAppearanceTransition, extensionContext, hidesBottomBarWhenPushed, interfaceOrientation, isEditing, isModalInPopover, isViewLoaded, loadViewIfNeeded, modalPresentationStyle, modalTransitionStyle, navigationController, navigationItem, nextResponder, nibName, parentViewController, performSegueWithIdentifier, preferredInterfaceOrientationForPresentation, preferredStatusBarStyle, prefersStatusBarHidden, prepareForSegue, presentedViewController, presentingViewController, presentModalViewController, presentViewController, providesPresentationContextTransitionStyle, removeFromParentViewController, restorationIdentifier, rotatingFooterView, rotatingHeaderView, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setHidesBottomBarWhenPushed, setModalInPopover, setModalPresentationStyle, setModalTransitionStyle, setNeedsStatusBarAppearanceUpdate, setProvidesPresentationContextTransitionStyle, setRestorationIdentifier, setTabBarItem, setTitle, setToolbarItems, setToolbarItems, setView, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifier, showDetailViewController, splitViewController, storyboard, supportedInterfaceOrientations, tabBarController, title, toolbarItems, topLayoutGuide, transitionFromViewController, view, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewSafeAreaInsetsDidChange, viewWillLayoutSubviews, wantsFullScreenLayoutbecomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMovedaddObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeypublic MFMailComposeViewController()
public static boolean canSendMail()
public MFMailComposeViewControllerDelegate mailComposeDelegate()
public void setMailComposeDelegate(MFMailComposeViewControllerDelegate mailComposeDelegate)
mailComposeDelegate - The delegate for this
                            MFMailComposeViewController.public void addAttachmentData(NSData attachment, String mimeType, String filename)
attachment - The data to attach. Typically, this is the contents of
                   a file that you want to include. This parameter must not be nil.mimeType - The MIME type of the specified data. (For example, the
                   MIME type for a JPEG image is image/jpeg.) For a list of valid MIME
                   types, see http://www.iana.org/assignments/media-types/. This parameter
                   must not be nil.filename - The preferred filename to associate with the data.public void setBccRecipients(List<String> bccRecipients)
bccRecipients - The Bcc recipients of the email message.public void setCcRecipients(List<String> ccRecipients)
ccRecipients - The Cc recipients of the email message.public void setMessageBody(String body, boolean isHTML)
body - The text-body of the email message.isHTML - TRUE the content is HTML.public void setSubject(String subject)
subject - The subject of the email message.public void setToRecipients(List<String> toRecipients)
toRecipients - A list with the recipients of the email message.public void viewWillAppear(boolean animated)
UIViewControllerviewWillAppear in class UINavigationControlleranimated - If set TRUE the view is added with animation.Copyright © 2020. All rights reserved.