Skip to content

Messages iOS xcode9 beta3

Vincent Dondain edited this page Jul 17, 2017 · 3 revisions

#Messages.framework https://github.com/xamarin/xamarin-macios/pull/2332

diff -ruN /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Messages.framework/Headers/MSMessagesAppViewController.h /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Messages.framework/Headers/MSMessagesAppViewController.h
--- /Applications/Xcode9-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Messages.framework/Headers/MSMessagesAppViewController.h	2017-06-12 19:04:20.000000000 -0400
+++ /Applications/Xcode9-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Messages.framework/Headers/MSMessagesAppViewController.h	2017-06-29 04:03:38.000000000 -0400
@@ -37,15 +37,68 @@
 @end
 
 
-NS_AVAILABLE_IOS(11_0)
-@protocol MSMessagesAppCompactOrExpandedPresentation
+NS_CLASS_AVAILABLE_IOS(10_0)
+@interface MSMessagesAppViewController : UIViewController <MSMessagesAppTranscriptPresentation>
+
+/*!
+ @property   activeConversation
+ @abstract   Current active conversation.
+ */
+@property (nonatomic, strong, readonly, nullable) MSConversation *activeConversation;
+
+/*!
+ @property   presentationStyle
+ @abstract   Get the presentation extension's current presentation style.
+ */
+@property (nonatomic, assign, readonly) MSMessagesAppPresentationStyle presentationStyle;
+
+/*!
+ @method     requestPresentationStyle:
+ @abstract   Requests that Messages transition the extension to the specified presentation style.
+ @discussion When the current `presentationStyle` is `MSMessagesAppPresentationStyleTranscript`, a new instance of `MSMessagesAppViewController` will be instantiated with the requested presentation style if needed.
+ @param      presentationStyle   The presentation style to transition to. `MSMessagesAppPresentationStyleTranscript` is not a valid presentation style to request.
+ */
+- (void)requestPresentationStyle:(MSMessagesAppPresentationStyle)presentationStyle;
+
+/*!
+ @method     willBecomeActiveWithConversation:
+ @abstract   Called when the extension is about to become active.
+ @param      conversation   The current conversation.
+ */
+- (void)willBecomeActiveWithConversation:(MSConversation *)conversation;
+
+/*!
+ @method     didBecomeActiveWithConversation:
+ @abstract   Called when the extension has become active active.
+ @param      conversation   The current conversation.
+ */
+- (void)didBecomeActiveWithConversation:(MSConversation *)conversation;
+
+/*!
+ @method     willResignActiveWithConversation:
+ @abstract   Called when the extension will resign active.
+ @param      conversation   The current conversation.
+ */
+- (void)willResignActiveWithConversation:(MSConversation *)conversation;
+
+/*!
+ @method     didResignActiveWithConversation:
+ @abstract   Called when the extension has resigned active.
+ @param      conversation   The current conversation.
+ */
+- (void)didResignActiveWithConversation:(MSConversation *)conversation;
+
+@end
+
+
+@interface MSMessagesAppViewController (CompactOrExpandedPresentation)
 
 /*!
  @method     dismiss
  @abstract   Tells Messages to dismiss the extension and present the keyboard.
  @discussion Calling this method does nothing when the `presentationStyle` is `MSMessagesAppPresentationStyleTranscript`.
  */
-- (void)dismiss;
+- (void)dismiss NS_AVAILABLE_IOS(10_0);
 
 /*!
  @method     willSelectMessage:conversation:
@@ -54,7 +107,7 @@
  @param      message    The message selected.
  @param      conversation    The conversation.
  */
-- (void)willSelectMessage:(MSMessage *)message conversation:(MSConversation *)conversation;
+- (void)willSelectMessage:(MSMessage *)message conversation:(MSConversation *)conversation NS_AVAILABLE_IOS(10_0);
 
 /*!
  @method     didSelectMessage:conversation:
@@ -63,7 +116,7 @@
  @param      message    The message selected.
  @param      conversation    The conversation.
  */
-- (void)didSelectMessage:(MSMessage *)message conversation:(MSConversation *)conversation;
+- (void)didSelectMessage:(MSMessage *)message conversation:(MSConversation *)conversation NS_AVAILABLE_IOS(10_0);
 
 /*!
  @method     didReceiveMessage:conversation:
@@ -72,7 +125,7 @@
  @param      message    The message received.
  @param      conversation    The conversation.
  */
-- (void)didReceiveMessage:(MSMessage *)message conversation:(MSConversation *)conversation;
+- (void)didReceiveMessage:(MSMessage *)message conversation:(MSConversation *)conversation NS_AVAILABLE_IOS(10_0);
 
 /*!
  @method     didStartSendingMessage:conversation:
@@ -81,7 +134,7 @@
  @param      message    The message being sent.
  @param      conversation    The conversation the message belongs to.
  */
-- (void)didStartSendingMessage:(MSMessage *)message conversation:(MSConversation *)conversation;
+- (void)didStartSendingMessage:(MSMessage *)message conversation:(MSConversation *)conversation NS_AVAILABLE_IOS(10_0);
 
 /*!
  @method     didCancelSendingMessage:conversation:
@@ -90,7 +143,7 @@
  @param      message    The message sent.
  @param      conversation    The conversation.
  */
-- (void)didCancelSendingMessage:(MSMessage *)message conversation:(MSConversation *)conversation;
+- (void)didCancelSendingMessage:(MSMessage *)message conversation:(MSConversation *)conversation NS_AVAILABLE_IOS(10_0);
 
 /*!
  @method     willTransitionToPresentationStyle:
@@ -98,7 +151,7 @@
  @discussion This method will not be called when the `presentationStyle` is `MSMessagesAppPresentationStyleTranscript`.
  @param      presentationStyle   The new presentation style.
  */
-- (void)willTransitionToPresentationStyle:(MSMessagesAppPresentationStyle)presentationStyle;
+- (void)willTransitionToPresentationStyle:(MSMessagesAppPresentationStyle)presentationStyle NS_AVAILABLE_IOS(10_0);
 
 /*!
  @method     didTransitionToPresentationStyle:
@@ -106,63 +159,11 @@
  @discussion This method will not be called when the `presentationStyle` is `MSMessagesAppPresentationStyleTranscript`.
  @param      presentationStyle   The new presentation style.
  */
-- (void)didTransitionToPresentationStyle:(MSMessagesAppPresentationStyle)presentationStyle;
+- (void)didTransitionToPresentationStyle:(MSMessagesAppPresentationStyle)presentationStyle NS_AVAILABLE_IOS(10_0);
 
 @end
 
 
-NS_CLASS_AVAILABLE_IOS(10_0)
-@interface MSMessagesAppViewController : UIViewController <MSMessagesAppCompactOrExpandedPresentation, MSMessagesAppTranscriptPresentation>
-
-/*!
- @property   activeConversation
- @abstract   Current active conversation.
- */
-@property (nonatomic, strong, readonly, nullable) MSConversation *activeConversation;
-
-/*!
- @property   presentationStyle
- @abstract   Get the presentation extension's current presentation style.
- */
-@property (nonatomic, assign, readonly) MSMessagesAppPresentationStyle presentationStyle;
-
-/*!
- @method     requestPresentationStyle:
- @abstract   Requests that Messages transition the extension to the specified presentation style.
- @discussion When the current `presentationStyle` is `MSMessagesAppPresentationStyleTranscript`, a new instance of `MSMessagesAppViewController` will be instantiated with the requested presentation style if needed.
- @param      presentationStyle   The presentation style to transition to. `MSMessagesAppPresentationStyleTranscript` is not a valid presentation style to request.
- */
-- (void)requestPresentationStyle:(MSMessagesAppPresentationStyle)presentationStyle;
-
-/*!
- @method     willBecomeActiveWithConversation:
- @abstract   Called when the extension is about to become active.
- @param      conversation   The current conversation.
- */
-- (void)willBecomeActiveWithConversation:(MSConversation *)conversation;
-
-/*!
- @method     didBecomeActiveWithConversation:
- @abstract   Called when the extension has become active active.
- @param      conversation   The current conversation.
- */
-- (void)didBecomeActiveWithConversation:(MSConversation *)conversation;
-
-/*!
- @method     willResignActiveWithConversation:
- @abstract   Called when the extension will resign active.
- @param      conversation   The current conversation.
- */
-- (void)willResignActiveWithConversation:(MSConversation *)conversation;
-
-/*!
- @method     didResignActiveWithConversation:
- @abstract   Called when the extension has resigned active.
- @param      conversation   The current conversation.
- */
-- (void)didResignActiveWithConversation:(MSConversation *)conversation;
-
-@end
-
 NS_ASSUME_NONNULL_END
 
+
Clone this wiki locally