public class MSMessage extends NSObject implements NSCopying, NSSecureCoding
The MSMessage encapsulates the data to be transferred to remote devices.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MSMessage(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
java.lang.String |
accessibilityLabel()
[@property] accessibilityLabel
|
static boolean |
accessInstanceVariablesDirectly() |
static MSMessage |
alloc() |
static MSMessage |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
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 NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
NSError |
error()
[@property] error
|
static long |
hash_static() |
MSMessage |
init()
init
|
MSMessage |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
MSMessage |
initWithSession(MSSession session)
initWithSession:
|
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) |
boolean |
isPending()
[@property] pending
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
MSMessageLayout |
layout()
[@property] layout
|
static MSMessage |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSUUID |
senderParticipantIdentifier()
[@property] senderParticipantIdentifier
|
MSSession |
session()
[@property] session
|
void |
setAccessibilityLabel(java.lang.String value)
[@property] accessibilityLabel
|
void |
setError(NSError value)
[@property] error
|
void |
setLayout(MSMessageLayout value)
[@property] layout
|
void |
setShouldExpire(boolean value)
[@property] shouldExpire
|
void |
setSummaryText(java.lang.String value)
[@property] summaryText
|
void |
setURL(NSURL value)
[@property] URL
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldExpire()
[@property] shouldExpire
|
java.lang.String |
summaryText()
[@property] summaryText
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSURL |
URL()
[@property] URL
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, 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, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static MSMessage alloc()
public static MSMessage allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
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 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 MSMessage 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 boolean supportsSecureCoding()
public static long version_static()
public NSURL URL()
A HTTP(S) or data URL used to encode data to be transferred in message.
This URL should encode any data that is to be delivered to the extension running on the recipient's device(s). When no app exists on the receiving device that can consume the message, if this URL is a HTTP(S) url, it will be loaded in a web browser.
public java.lang.String accessibilityLabel()
A localized string describing the message.
This string should provide a succinct description of the message. This will be used by the Accessibility Speech feature when speaking the message for users with disabilities.
accessibilityLabel in class NSObjectpublic java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic NSError error()
An error object that indicates why a message failed to send.
This value is nil if the message is has not yet been sent, is still sending or has been sent successfully.
public MSMessage init()
Initializes a new message that is not part of a session.
public MSMessage initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic MSMessage initWithSession(MSSession session)
Initializes a message with a session.
A message initialized with a session will be updated and moved to the bottom of the conversation transcript when another message created with the same session is sent.
session - The session that new message will join.insertMessage:completionHandler:public MSMessageLayout layout()
A subclass of MSMessageLayout.
The MSMessageLayout subclass will be used to construct UI representing the message in the conversation transcript.
public NSUUID senderParticipantIdentifier()
A NSUUID instance that identifies the participant that sent the message.
This NSUUID identifies the message's sender. This value is scoped to the current device and will be different on all devices that participate in the conversation.
public MSSession session()
An MSSession that identifies the session that message belongs to.
public void setAccessibilityLabel(java.lang.String value)
A localized string describing the message.
This string should provide a succinct description of the message. This will be used by the Accessibility Speech feature when speaking the message for users with disabilities.
setAccessibilityLabel in class NSObjectpublic void setError(NSError value)
An error object that indicates why a message failed to send.
This value is nil if the message is has not yet been sent, is still sending or has been sent successfully.
public void setLayout(MSMessageLayout value)
A subclass of MSMessageLayout.
The MSMessageLayout subclass will be used to construct UI representing the message in the conversation transcript.
public void setShouldExpire(boolean value)
A Boolean value that indicates whether the messages should expire after being read.
YES if the message should expire after it is read. Expired messages will be deleted a short time after being read by the receiver. The user may opt to keep the message. This property defaults to NO.
public void setSummaryText(java.lang.String value)
A localized string describing the message.
This string should provide a succinct description of the message. This will be used to provide a summary of the message in the UI.
public void setURL(NSURL value)
A HTTP(S) or data URL used to encode data to be transferred in message.
This URL should encode any data that is to be delivered to the extension running on the recipient's device(s). When no app exists on the receiving device that can consume the message, if this URL is a HTTP(S) url, it will be loaded in a web browser.
public boolean shouldExpire()
A Boolean value that indicates whether the messages should expire after being read.
YES if the message should expire after it is read. Expired messages will be deleted a short time after being read by the receiver. The user may opt to keep the message. This property defaults to NO.
public java.lang.String summaryText()
A localized string describing the message.
This string should provide a succinct description of the message. This will be used to provide a summary of the message in the UI.
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic boolean isPending()
A BOOL representing whether the message is a pending message or is a message that has been sent/received.
This value starts as `YES` when creating an `MSMessage` for sending. After calling `-[MSConversation insertMessage:completionHandler:]`, `isPending` still returns `YES` until `-[MSMessagesAppViewController didStartSendingMessage:conversation]` is called. This property is useful for knowing if the `selectedMessage` of `-[MSMessagesAppViewController activeConversation]` represents an unsent message.