Instance Property

presentationStyle

The extension’s current presentation style.

Declaration

@property(nonatomic, assign, readonly) MSMessagesAppPresentationStyle presentationStyle;

Discussion

The presentation style defines how the extension appears in the Messages app. The property’s value is set by the following actions:

  • The user selects the extension in the app drawer: The Messages app launches the extension using the MSMessagesAppPresentationStyleCompact style.

  • The user selects a message in the transcript that represents one of the extension’s MSMessage objects: The Messages app launches the extension using the MSMessagesAppPresentationStyleExpanded style.

  • The user taps the collapse and expand buttons while the extension is running: The Messages app changes the current presentation style.

  • You programmatically set the presentation style by calling the requestPresentationStyle: method.

See Also

Working with Presentation Styles and Contexts

- requestPresentationStyle:

Asks the extension’s user interface to transition to the provided style.

- willTransitionToPresentationStyle:

Tells the view controller that the extension is about to transition to a new presentation style.

- didTransitionToPresentationStyle:

Tells the view controller that the extension has transitioned to a new presentation style.

MSMessagesAppPresentationStyle

Presentation styles that describe your iMessage app’s appearance.

presentationContext

The context describing where your iMessage app is presented.

MSMessagesAppPresentationContext

Presentation contexts describing where your iMessage app appears.