Instance Method

dismiss

Dismisses the extension and marks it for termination.

Declaration

- (void)dismiss;

Discussion

Call this method to dismiss the extension. The system displays the keyboard if there is any content in the Messages app’s input field. If the input field is empty, the system dismisses the keyboard entirely.

This method also marks the extension as eligible for termination, causing the system to call the view controller’s willResignActiveWithConversation: and didResignActiveWithConversation: methods.

See Also

Managing the Extension’s State

activeConversation

The conversation currently displayed in the transcript.

- willBecomeActiveWithConversation:

Invoked just before the Messages extension becomes active.

- didBecomeActiveWithConversation:

Invoked after the Messages extension becomes active.

- willResignActiveWithConversation:

Invoked just before the message resigns its active status.

- didResignActiveWithConversation:

Invoked after the message resigns its active status.