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.
- ClMSMessagesAppViewControlleriOS 10.0+The principal view controller you subclass to present your iMessage app extension.
- PrMSMessagesAppTranscriptPresentationiOS 11.0+A protocol that defines how your extension presents content directly within the message transcript.
- EnMSMessagesAppPresentationStyleiOS 10.0+@enum MSMessagesAppPresentationStyle
- EnMSMessagesAppPresentationContextiOS 12.0+@enum MSMessagesAppPresentationContext
Conversations 2
Types for reading and modifying the active conversation and tracking interactive message sessions.
- ClMSConversationiOS 10.0+An object that represents the conversation currently visible in the Messages transcript.
- ClMSSessioniOS 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.
- ClMSMessageiOS 10.0+@class MSMessage
- ClMSMessageLayoutiOS 10.0+@class MSMessageLayout
- ClMSMessageTemplateLayoutiOS 10.0+@class MSMessageTemplateLayout
- ClMSMessageLiveLayoutiOS 11.0+@class MSMessageLiveLayout
Stickers 6
Types for vending, browsing, and displaying stickers in a sticker pack or app extension.
- ClMSStickeriOS 10.0+An object that represents a single sticker image that can be added to a conversation.
- ClMSStickerViewiOS 10.0+@class MSStickerView
- ClMSStickerBrowserViewiOS 10.0+@class MSStickerBrowserView
- ClMSStickerBrowserViewControlleriOS 10.0+@abstract The MSStickerBrowserViewController class creates a controller object that manages a MSStickerBrowserView.
- PrMSStickerBrowserViewDataSourceiOS 10.0+@abstract The MSStickerBrowserViewDataSource protocol declares the methods that the Sticker Browser View uses to access the contents of its data source object.
- EnMSStickerSizeiOS 10.0+@enum MSStickerSize
Critical Messaging 3
Types for sending and authorizing high-priority critical messages.
- StMSCriticalMessageiOS 18.2+MSCriticalMessage
- EnMSCriticalMessagingAuthorizationStatusiOS 18.2+MSCriticalMessagingAuthorizationStatus
- EnMSCriticalMessagingErroriOS 18.2+MSCriticalMessagingError
Recipients and Requests 2
Supporting types that identify message recipients and represent payment requests.
- StMSRecipientiOS 18.2+MSRecipient
- ClMSUPIRequestAn object that represents a Unified Payments Interface request sent through a message.
Errors 1
Error codes reported by the framework.
- EnMSMessageErrorCodeiOS 10.0+Constants that identify errors reported by the Messages framework.
Classes 1
- ClMSCriticalSMSMessengeriOS 18.2+MSCriticalMessenger