public class MFMessageComposeViewController extends UINavigationController
The MFMessageComposeViewController class provides an interface for editing and sending a message.
The MFMessageComposeViewController class manages all user interaction. The client needs to set the recipient or recipients. The client may also set the body of the message. 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 messages via +[MFMessageComposeViewController canSendText].
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 |
MFMessageComposeViewController(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
boolean |
addAttachmentDataTypeIdentifierFilename(NSData attachmentData,
java.lang.String uti,
java.lang.String filename)
addAttachmentData:typeIdentifier:filename:
|
boolean |
addAttachmentURLWithAlternateFilename(NSURL attachmentURL,
java.lang.String alternateFilename)
addAttachmentURL:withAlternateFilename:
|
static MFMessageComposeViewController |
alloc() |
static MFMessageComposeViewController |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSArray<? extends NSDictionary<?,?>> |
attachments()
[@property] attachments
|
static void |
attemptRotationToDeviceOrientation() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
java.lang.String |
body()
[@property] body
|
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 |
canSendAttachments()
canSendAttachments
|
static boolean |
canSendSubject()
canSendSubject
|
static boolean |
canSendText()
canSendText
|
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() |
void |
disableUserAttachments()
disableUserAttachments;
|
static long |
hash_static() |
MFMessageComposeViewController |
init() |
MFMessageComposeViewController |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
MFMessageComposeViewController |
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.
|
MFMessageComposeViewController |
initWithNibNameBundle(java.lang.String nibNameOrNil,
NSBundle nibBundleOrNil)
Initializes the navigation controller with an empty stack
|
MFMessageComposeViewController |
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 boolean |
isSupportedAttachmentUTI(java.lang.String uti)
isSupportedAttachmentUTI:
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
MSMessage |
message()
[@property] message
|
MFMessageComposeViewControllerDelegate |
messageComposeDelegate()
[@property] messageComposeDelegate
|
static MFMessageComposeViewController |
new_objc() |
NSArray<java.lang.String> |
recipients()
[@property] recipients
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setBody(java.lang.String value)
[@property] body
|
void |
setMessage(MSMessage value)
[@property] message
|
void |
setMessageComposeDelegate_unsafe(MFMessageComposeViewControllerDelegate value)
[@property] messageComposeDelegate
|
void |
setMessageComposeDelegate(MFMessageComposeViewControllerDelegate value)
[@property] messageComposeDelegate
|
void |
setRecipients(NSArray<java.lang.String> value)
[@property] recipients
|
void |
setSubject(java.lang.String value)
[@property] subject
|
static void |
setVersion_static(long aVersion) |
java.lang.String |
subject()
[@property] subject
|
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 MFMessageComposeViewController(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MFMessageComposeViewController alloc()
public static MFMessageComposeViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void attemptRotationToDeviceOrientation()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static boolean canSendAttachments()
Returns YES if the user has set up the device for including attachments in messages..
public static boolean canSendSubject()
Returns YES if the user has set up the device for including subjects in messages..
public static boolean canSendText()
Returns YES if the user has set up the device for sending text only messages.
If the return value is YES, the client can set the recipients and body of the message. If the return value is NO, the client may notify the user of the failure, or the client may open an SMS 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 boolean isSupportedAttachmentUTI(java.lang.String uti)
Returns YESif the attachment at the specified URL could be accepted by the current composition.
If the return value is YES, the UTI is acceptable for attachment to a message, a return value of NO indicates that the given UTI is unsupported.
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static MFMessageComposeViewController 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 boolean addAttachmentDataTypeIdentifierFilename(NSData attachmentData, java.lang.String uti, java.lang.String filename)
Returns YESif the attachment was added to the composition successfully.
If the return value is YES, the attachment was added to the composition. If the return value is NO, the attachment was not added to the composition. The data and typeIdentifer must be non-nil. typeIdentifier should be a valid Uniform Type Identifier.
public boolean addAttachmentURLWithAlternateFilename(NSURL attachmentURL, java.lang.String alternateFilename)
Returns YESif the attachment at the specified URL was added to the composition successfully.
If the return value is YES, the attachment was added to the composition. If the return value is NO, the attachment was not added to the composition. All attachment URLs must be file urls. The file URL must not be NIL. The alternate filename will be display to the user in leiu of the attachments URL. The alternate filename may be NIL.
public NSArray<? extends NSDictionary<?,?>> attachments()
This property returns an NSArray of NSDictionaries describing the properties of the current attachments.
This property returns an NSArray of NSDictionaries describing the properties of the current attachments. See MFMessageComposeViewControllerAttachmentURL, MFMessageComposeViewControllerAttachmentAlternateFilename.
public java.lang.String body()
This property sets the initial value of the body of the message to the specified content.
This property will set the initial value of the body of the message. This should be called prior to display.
After the view has been presented to the user, this property will no longer change the value.public void disableUserAttachments()
Calling this method will disable the camera/attachment button in the view controller. After the controller has been presented, this call will have no effect. The camera / attachment button is visible by default.
public MFMessageComposeViewController init()
init in class UINavigationControllerpublic MFMessageComposeViewController initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class UINavigationControllerpublic MFMessageComposeViewController initWithNavigationBarClassToolbarClass(org.moe.natj.objc.Class navigationBarClass, org.moe.natj.objc.Class toolbarClass)
UINavigationControllerinitWithNavigationBarClassToolbarClass in class UINavigationControllerpublic MFMessageComposeViewController initWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
UINavigationControllerinitWithNibNameBundle in class UINavigationControllerpublic MFMessageComposeViewController initWithRootViewController(UIViewController rootViewController)
UINavigationControllerinitWithRootViewController in class UINavigationControllerpublic MSMessage message()
This property sets the initial interactive message.
public MFMessageComposeViewControllerDelegate messageComposeDelegate()
This property is the delegate for the MFMessageComposeViewController method callbacks.
public NSArray<java.lang.String> recipients()
This property sets the initial value of the To field for the message to the specified addresses.
This property will set the initial value of the To field for the message from an NSArray of NSString instances specifying the message addresses of recipients. This should be called prior to display.
After the view has been presented to the user, this property will no longer change the value.public void setBody(java.lang.String value)
This property sets the initial value of the body of the message to the specified content.
This property will set the initial value of the body of the message. This should be called prior to display.
After the view has been presented to the user, this property will no longer change the value.public void setMessage(MSMessage value)
This property sets the initial interactive message.
public void setMessageComposeDelegate_unsafe(MFMessageComposeViewControllerDelegate value)
This property is the delegate for the MFMessageComposeViewController method callbacks.
public void setMessageComposeDelegate(MFMessageComposeViewControllerDelegate value)
This property is the delegate for the MFMessageComposeViewController method callbacks.
public void setRecipients(NSArray<java.lang.String> value)
This property sets the initial value of the To field for the message to the specified addresses.
This property will set the initial value of the To field for the message from an NSArray of NSString instances specifying the message addresses of recipients. This should be called prior to display.
After the view has been presented to the user, this property will no longer change the value.public void setSubject(java.lang.String value)
This property sets the initial value of the subject of the message to the specified content.
This property will set the initial value of the subject of the message. This should be called prior to display.
After the view has been presented to the user, this property will no longer change the value.public java.lang.String subject()
This property sets the initial value of the subject of the message to the specified content.
This property will set the initial value of the subject of the message. This should be called prior to display.
After the view has been presented to the user, this property will no longer change the value.