TechnologiesCommunication, Contacts & Messaging

Messages

iOSmacOStvOSwatchOSvisionOS

Messages lets you build iMessage app extensions and sticker packs that interact with conversations on iOS. You subclass MSMessagesAppViewController to present your extension, then read and modify the active MSConversation, compose MSMessage objects, and lay out their content with MSMessageTemplateLayout or MSMessageLiveLayout. To deliver stickers, you provide MSSticker objects through an MSStickerBrowserViewController and MSStickerBrowserViewDataSource, or display individual stickers with MSStickerView. The framework also includes critical messaging APIs, such as MSCriticalMessage and MSCriticalMessagingAuthorizationStatus, for sending high-priority messages.

Essentials 4

The principal view controller and presentation contexts your iMessage app extension uses to appear in Messages.

  • Cl
    MSMessagesAppViewControlleriOS 10.0+
    The principal view controller you subclass to present your iMessage app extension.
  • Pr
    MSMessagesAppTranscriptPresentationiOS 11.0+
    A protocol that defines how your extension presents content directly within the message transcript.
  • En
    MSMessagesAppPresentationStyleiOS 10.0+
    @enum MSMessagesAppPresentationStyle
  • En
    MSMessagesAppPresentationContextiOS 12.0+
    @enum MSMessagesAppPresentationContext

Conversations 2

Types for reading and modifying the active conversation and tracking interactive message sessions.

  • Cl
    MSConversationiOS 10.0+
    An object that represents the conversation currently visible in the Messages transcript.
  • Cl
    MSSessioniOS 10.0+
    @class MSSession

Messages and Layouts 4

The message object and the layout types that describe how its content is presented in the transcript.

  • Cl
    MSMessageiOS 10.0+
    @class MSMessage
  • Cl
    MSMessageLayoutiOS 10.0+
    @class MSMessageLayout
  • Cl
    MSMessageTemplateLayoutiOS 10.0+
    @class MSMessageTemplateLayout
  • Cl
    MSMessageLiveLayoutiOS 11.0+
    @class MSMessageLiveLayout

Stickers 6

Types for vending, browsing, and displaying stickers in a sticker pack or app extension.

  • Cl
    MSStickeriOS 10.0+
    An object that represents a single sticker image that can be added to a conversation.
  • Cl
    MSStickerViewiOS 10.0+
    @class MSStickerView
  • Cl
    MSStickerBrowserViewiOS 10.0+
    @class MSStickerBrowserView
  • Cl
    MSStickerBrowserViewControlleriOS 10.0+
    @abstract The MSStickerBrowserViewController class creates a controller object that manages a MSStickerBrowserView.
  • Pr
    MSStickerBrowserViewDataSourceiOS 10.0+
    @abstract The MSStickerBrowserViewDataSource protocol declares the methods that the Sticker Browser View uses to access the contents of its data source object.
  • En
    MSStickerSizeiOS 10.0+
    @enum MSStickerSize

Critical Messaging 3

Types for sending and authorizing high-priority critical messages.

  • St
    MSCriticalMessageiOS 18.2+
    MSCriticalMessage
  • En
    MSCriticalMessagingAuthorizationStatusiOS 18.2+
    MSCriticalMessagingAuthorizationStatus
  • En
    MSCriticalMessagingErroriOS 18.2+
    MSCriticalMessagingError

Recipients and Requests 2

Supporting types that identify message recipients and represent payment requests.

  • St
    MSRecipientiOS 18.2+
    MSRecipient
  • Cl
    MSUPIRequest
    An object that represents a Unified Payments Interface request sent through a message.

Errors 1

Error codes reported by the framework.

  • En
    MSMessageErrorCodeiOS 10.0+
    Constants that identify errors reported by the Messages framework.

Classes 1

  • Cl
    MSCriticalSMSMessengeriOS 18.2+
    MSCriticalMessenger
← Communication, Contacts & Messaging