Contents

willBecomeActive(with:)

Invoked just before the Messages extension becomes active.

Declaration

func willBecomeActive(with conversation: MSConversation)

Parameters

  • conversation:

    The conversation that the user is currently viewing in the Messages app.

Discussion

Override this method to perform any setup steps necessary before the Messages extension becomes active. The extension becomes active both when the user selects the extension from the app drawer, and when the user selects a message in the transcript that represents an MSMessage object created by a copy of the extension.

See Also

Managing the Extension’s State