public class MFMailComposeViewController extends UINavigationController
The MFMailComposeViewController class provides an interface for editing and sending email.
The MFMailComposeViewController class manages all user interaction. The client needs to set the recipient or recipients. The client may also set the subject and the body of the message. Attachments may be added, if so desired. After setup, the client needs to only display the view.
The provided delegate will be informed of the user's composition completion and how they chose to complete the operation.Prior to use, clients should verify the user has set up the device for sending email via +[MFMailComposeViewController canSendMail].
UIViewController.Block_dismissViewControllerAnimatedCompletion, UIViewController.Block_presentViewControllerAnimatedCompletion, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
MFMailComposeViewController(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addAttachmentDataMimeTypeFileName(NSData attachment,
java.lang.String mimeType,
java.lang.String filename)
addAttachmentData:mimeType:fileName:
|
static MFMailComposeViewController |
alloc() |
static MFMailComposeViewController |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static void |
attemptRotationToDeviceOrientation() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static boolean |
canSendMail()
canSendMail
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
MFMailComposeViewController |
init() |
MFMailComposeViewController |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
MFMailComposeViewController |
initWithNavigationBarClassToolbarClass(org.moe.natj.objc.Class navigationBarClass,
org.moe.natj.objc.Class toolbarClass)
Use this initializer to make the navigation controller use your custom bar class.
|
MFMailComposeViewController |
initWithNibNameBundle(java.lang.String nibNameOrNil,
NSBundle nibBundleOrNil)
Initializes the navigation controller with an empty stack
|
MFMailComposeViewController |
initWithRootViewController(UIViewController rootViewController)
Initializer that also pushes the root view controller without animation.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
MFMailComposeViewControllerDelegate |
mailComposeDelegate()
[@property] mailComposeDelegate
|
static MFMailComposeViewController |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setBccRecipients(NSArray<java.lang.String> bccRecipients)
setBccRecipients:
|
void |
setCcRecipients(NSArray<java.lang.String> ccRecipients)
setCcRecipients:
|
void |
setMailComposeDelegate_unsafe(MFMailComposeViewControllerDelegate value)
[@property] mailComposeDelegate
|
void |
setMailComposeDelegate(MFMailComposeViewControllerDelegate value)
[@property] mailComposeDelegate
|
void |
setMessageBodyIsHTML(java.lang.String body,
boolean isHTML)
setMessageBody:isHTML:
|
void |
setPreferredSendingEmailAddress(java.lang.String emailAddress)
setPreferredSendingEmailAddress:
|
void |
setSubject(java.lang.String subject)
setSubject:
|
void |
setToRecipients(NSArray<java.lang.String> toRecipients)
setToRecipients:
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
barHideOnSwipeGestureRecognizer, barHideOnTapGestureRecognizer, delegate, hidesBarsOnSwipe, hidesBarsOnTap, hidesBarsWhenKeyboardAppears, hidesBarsWhenVerticallyCompact, interactivePopGestureRecognizer, isNavigationBarHidden, isToolbarHidden, navigationBar, popToRootViewControllerAnimated, popToViewControllerAnimated, popViewControllerAnimated, pushViewControllerAnimated, setDelegate_unsafe, setDelegate, setHidesBarsOnSwipe, setHidesBarsOnTap, setHidesBarsWhenKeyboardAppears, setHidesBarsWhenVerticallyCompact, setNavigationBarHidden, setNavigationBarHiddenAnimated, setToolbarHidden, setToolbarHiddenAnimated, setViewControllers, setViewControllersAnimated, showViewControllerSender, toolbar, topViewController, viewControllers, visibleViewControlleraddChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentScrollViewForEdge, contentSizeForViewInPopover, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interfaceOrientation, isBeingDismissed, isBeingPresented, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, overrideTraitCollectionForChildViewController, overrideUserInterfaceStyle, parentFocusEnvironment, parentViewController, performsActionsWhilePresentingModally, performSegueWithIdentifierSender, popoverPresentationController, preferredContentSize, preferredContentSizeDidChangeForChildContentContainer, preferredFocusedView, preferredFocusEnvironments, preferredInterfaceOrientationForPresentation, preferredScreenEdgesDeferringSystemGestures, preferredStatusBarStyle, preferredStatusBarUpdateAnimation, prefersHomeIndicatorAutoHidden, prefersPointerLocked, prefersStatusBarHidden, prepareForSegueSender, presentationController, presentedViewController, presentingViewController, presentModalViewControllerAnimated, presentMoviePlayerViewControllerAnimated, presentViewControllerAnimatedCompletion, previewActionItems, providesPresentationContextTransitionStyle, registerForPreviewingWithDelegateSourceView, removeFromParentViewController, removeKeyCommand, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentScrollViewForEdge, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setFocusGroupIdentifier, setHidesBottomBarWhenPushed, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass_unsafe, setRestorationClass, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate_unsafe, setTransitioningDelegate, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, sheetPresentationController, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, shouldUpdateFocusInContext, showDetailViewControllerSender, sizeForChildContentContainerWithParentContainerSize, splitViewController, storyboard, supportedInterfaceOrientations, systemLayoutFittingSizeDidChangeForChildContentContainer, systemMinimumLayoutMargins, tabBarController, tabBarItem, targetViewControllerForActionSender, title, toolbarItems, topLayoutGuide, traitCollection, traitCollectionDidChange, transitionCoordinator, transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion, transitioningDelegate, unregisterForPreviewingWithContext, unwindForSegueTowardsViewController, updateFocusIfNeeded, updateViewConstraints, view, viewControllerForUnwindSegueActionFromViewControllerWithSender, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewLayoutMarginsDidChange, viewRespectsSystemMinimumLayoutMargins, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, viewWillTransitionToSizeWithTransitionCoordinator, viewWillUnload, wantsFullScreenLayout, willAnimateFirstHalfOfRotationToInterfaceOrientationDuration, willAnimateRotationToInterfaceOrientationDuration, willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration, willMoveToParentViewController, willRotateToInterfaceOrientationDuration, willTransitionToTraitCollectionWithTransitionCoordinatoractivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected MFMailComposeViewController(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MFMailComposeViewController alloc()
public static MFMailComposeViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void attemptRotationToDeviceOrientation()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static boolean canSendMail()
Returns YES if the user has set up the device for sending email.
The client may continue to set the recipients and content if the return value was YES. If NO was the result, the client has a couple options. It may choose to simply notify the user of the inability to send mail, or it may issue a "mailto" URL via -[UIApplication openURL:].
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static MFMailComposeViewController new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void addAttachmentDataMimeTypeFileName(NSData attachment, java.lang.String mimeType, java.lang.String filename)
This method adds the specified attachment to the email message.
This method adds the specified attachment to the email message. This should be called prior to display. Attachments will be appended to the end of the message.
attachment - NSData containing the contents of the attachment. Must not be nil.mimeType - NSString specifying the MIME type for the attachment, as specified by the IANA
(http://www.iana.org/assignments/media-types/). Must not be nil.filename - NSString specifying the intended filename for the attachment. This is displayed below
the attachment's icon if the attachment is not decoded when displayed. Must not be nil.public MFMailComposeViewController init()
init in class UINavigationControllerpublic MFMailComposeViewController initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class UINavigationControllerpublic MFMailComposeViewController initWithNavigationBarClassToolbarClass(org.moe.natj.objc.Class navigationBarClass, org.moe.natj.objc.Class toolbarClass)
UINavigationControllerinitWithNavigationBarClassToolbarClass in class UINavigationControllerpublic MFMailComposeViewController initWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
UINavigationControllerinitWithNibNameBundle in class UINavigationControllerpublic MFMailComposeViewController initWithRootViewController(UIViewController rootViewController)
UINavigationControllerinitWithRootViewController in class UINavigationControllerpublic MFMailComposeViewControllerDelegate mailComposeDelegate()
This property is the delegate for the MFMailComposeViewControllerDelegate method callbacks.
public void setBccRecipients(NSArray<java.lang.String> bccRecipients)
This method sets the BCC header for the email message to the specified email addresses.
This method will set the BCC header for the email message. This should be called prior to display.
Recipient addresses should be specified as per RFC5322. After the view has been presented to the user, this method will no longer change the value.bccRecipients - A NSArray of NSString instances specifying the email addresses of recipients.public void setCcRecipients(NSArray<java.lang.String> ccRecipients)
This method sets the CC header for the email message to the specified email addresses.
This method will set the CC header for the email message. This should be called prior to display.
Recipient addresses should be specified as per RFC5322. After the view has been presented to the user, this method will no longer change the value.ccRecipients - A NSArray of NSString instances specifying the email addresses of recipients.public void setMailComposeDelegate_unsafe(MFMailComposeViewControllerDelegate value)
This property is the delegate for the MFMailComposeViewControllerDelegate method callbacks.
public void setMailComposeDelegate(MFMailComposeViewControllerDelegate value)
This property is the delegate for the MFMailComposeViewControllerDelegate method callbacks.
public void setMessageBodyIsHTML(java.lang.String body,
boolean isHTML)
This method sets the body of the email message to the specified content.
This method will set the body of the email message. This should be called prior to display. The user's signature, if specified, will be added after the body content.
body - A NSString containing the body contents of the email message.isHTML - A boolean value indicating if the body argument is to be interpreted as HTML content.public void setSubject(java.lang.String subject)
This method sets the Subject header for the email message.
This method will set the Subject header for the email message. This should be called prior to display. Newlines are removed from the parameter.
After the view has been presented to the user, this method will no longer change the value.subject - A NSString specifying the message's Subject header.public void setToRecipients(NSArray<java.lang.String> toRecipients)
This method sets the To header for the email message to the specified email addresses.
This method will set the To header for the email message. This should be called prior to display.
Recipient addresses should be specified as per RFC5322. After the view has been presented to the user, this method will no longer change the value.toRecipients - A NSArray of NSString instances specifying the email addresses of recipients.public void setPreferredSendingEmailAddress(java.lang.String emailAddress)
This method sets the preferred sending account of the email message.
This method will set the sending account of the message to the specified email address if the user has an account with such an address set up. If there is no account with such an address, the default account will be used instead. The sending email address should be specified as per RFC5322. After the view has been presented to the user, this method will no longer change the value.
emailAddress - A NSString specifying the preferred email address used to send this message.