Instance Method

requestPresentationStyle:

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

Declaration

- (void)requestPresentationStyle:(MSMessagesAppPresentationStyle)presentationStyle;

Parameters

presentationStyle

The desired presentation style. For a list of possible styles, see MSMessagesAppPresentationStyle.

Discussion

Use this method when you need to change the extension’s presentation style. Keep in mind that the user should have ultimate control over the extension’s presentation style. If the user chooses to change the presentation style, you want to respect that choice.

If you call this method on a view controller with a MSMessagesAppPresentationStyleTranscript presentation style (which is a controller that’s presenting an interactive view in the transcript), the system creates a new instance of the view controller and displays it using the provided presentation style.

See Also

Working with Presentation Styles and Contexts

presentationStyle

The extension’s current presentation 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.