One Logo Pool Ball
Intents · IOS API REFERENCE

INMessage

class · iOS 10.0+ · SDK 27.1

class INMessage

Members (27)

init · iOS 10.0+

init

TypeScript
static initIdentifierContentDateSentSenderRecipients(identifier: string, content?: (string) | null, dateSent?: (globalThis.Date) | null, sender?: (INPerson) | null, recipients?: (Array<INPerson>) | null): INMessage
Swift declaration
convenience init(identifier: String, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?)
init · iOS 10.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameMessageType(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, groupName: (INSpeakableString) | null, messageType: INMessageType): INMessage
Swift declaration
convenience init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, messageType: INMessageType)
init · iOS 13.2+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameMessageTypeServiceName(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, groupName: (INSpeakableString) | null, messageType: INMessageType, serviceName?: (string) | null): INMessage
Swift declaration
init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, messageType: INMessageType, serviceName: String?)
init · iOS 17.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameMessageTypeServiceNameAttachmentFiles(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, groupName: (INSpeakableString) | null, messageType: INMessageType, serviceName?: (string) | null, attachmentFiles?: (Array<INFile>) | null): INMessage
Swift declaration
convenience init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, messageType: INMessageType, serviceName: String?, attachmentFiles: [INFile]?)
init · iOS 10.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameMessageTypeServiceNameAudioMessageFile(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, groupName: (INSpeakableString) | null, messageType: INMessageType, serviceName?: (string) | null, audioMessageFile?: (INFile) | null): INMessage
Swift declaration
convenience init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, messageType: INMessageType, serviceName: String?, audioMessageFile: INFile?)
init · iOS 17.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameServiceNameLinkMetadata(identifier: string, conversationIdentifier?: (string) | null, content?: (string) | null, dateSent?: (globalThis.Date) | null, sender?: (INPerson) | null, recipients?: (Array<INPerson>) | null, groupName?: (INSpeakableString) | null, serviceName?: (string) | null, linkMetadata?: (INMessageLinkMetadata) | null): INMessage
Swift declaration
convenience init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, serviceName: String?, linkMetadata: INMessageLinkMetadata?)
init · iOS 17.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameServiceNameMessageTypeNumberOfAttachments(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, groupName: (INSpeakableString) | null, serviceName: (string) | null, messageType: INMessageType, numberOfAttachments?: (_Foundation_NSNumber) | null): INMessage
Swift declaration
convenience init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, serviceName: String?, messageType: INMessageType, numberOfAttachments: NSNumber?)
init · iOS 18.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameServiceNameMessageTypeReferencedMessageReaction(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, groupName: (INSpeakableString) | null, serviceName: (string) | null, messageType: INMessageType, referencedMessage?: (INMessage) | null, reaction?: (INMessageReaction) | null): INMessage
Swift declaration
convenience init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, serviceName: String?, messageType: INMessageType, referencedMessage: INMessage?, reaction: INMessageReaction?)
init · iOS 18.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsGroupNameServiceNameMessageTypeReferencedMessageStickerReaction(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, groupName: (INSpeakableString) | null, serviceName: (string) | null, messageType: INMessageType, referencedMessage?: (INMessage) | null, sticker?: (INSticker) | null, reaction?: (INMessageReaction) | null): INMessage
Swift declaration
init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, groupName: INSpeakableString?, serviceName: String?, messageType: INMessageType, referencedMessage: INMessage?, sticker: INSticker?, reaction: INMessageReaction?)
init · iOS 10.0+

init

TypeScript
static initIdentifierConversationIdentifierContentDateSentSenderRecipientsMessageType(identifier: string, conversationIdentifier: (string) | null, content: (string) | null, dateSent: (globalThis.Date) | null, sender: (INPerson) | null, recipients: (Array<INPerson>) | null, messageType: INMessageType): INMessage
Swift declaration
convenience init(identifier: String, conversationIdentifier: String?, content: String?, dateSent: Date?, sender: INPerson?, recipients: [INPerson]?, messageType: INMessageType)
get · iOS 17.0+

attachmentFiles

TypeScript
get attachmentFiles(): (Array<INFile>) | null
Swift declaration
var attachmentFiles: [INFile]? { get }
get · iOS 16.0+ · Deprecated in iOS 17.0

audioMessageFile

TypeScript
get audioMessageFile(): (INFile) | null
Swift declaration
@NSCopying var audioMessageFile: INFile? { get }
get · iOS 10.0+

content

TypeScript
get content(): (string) | null
Swift declaration
var content: String? { get }
get · iOS 11.0+

conversationIdentifier

TypeScript
get conversationIdentifier(): (string) | null
Swift declaration
var conversationIdentifier: String? { get }
get · iOS 10.0+

dateSent

TypeScript
get dateSent(): (globalThis.Date) | null
Swift declaration
var dateSent: Date? { get }
get · iOS 11.0+

groupName

TypeScript
get groupName(): (INSpeakableString) | null
Swift declaration
@NSCopying var groupName: INSpeakableString? { get }
get · iOS 10.0+

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: String { get }
get · iOS 17.0+

linkMetadata

TypeScript
get linkMetadata(): (INMessageLinkMetadata) | null
Swift declaration
@NSCopying var linkMetadata: INMessageLinkMetadata? { get }
get · iOS 11.0+

messageType

TypeScript
get messageType(): INMessageType
Swift declaration
var messageType: INMessageType { get }
get · iOS 17.0+

numberOfAttachments

TypeScript
get numberOfAttachments(): (_Foundation_NSNumber) | null
Swift declaration
@NSCopying var numberOfAttachments: NSNumber? { get }
get · iOS 18.0+

reaction

TypeScript
get reaction(): (INMessageReaction) | null
Swift declaration
@NSCopying var reaction: INMessageReaction? { get set }
set · iOS 18.0+

reaction

TypeScript
set reaction(value: (INMessageReaction) | null)
Swift declaration
@NSCopying var reaction: INMessageReaction? { get set }
get · iOS 10.0+

recipients

TypeScript
get recipients(): (Array<INPerson>) | null
Swift declaration
var recipients: [INPerson]? { get }
get · iOS 10.0+

sender

TypeScript
get sender(): (INPerson) | null
Swift declaration
@NSCopying var sender: INPerson? { get }
get · iOS 13.2+

serviceName

TypeScript
get serviceName(): (string) | null
Swift declaration
var serviceName: String? { get }
get · iOS 18.0+

sticker

TypeScript
get sticker(): (INSticker) | null
Swift declaration
@NSCopying var sticker: INSticker? { get set }
set · iOS 18.0+

sticker

TypeScript
set sticker(value: (INSticker) | null)
Swift declaration
@NSCopying var sticker: INSticker? { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

INMessage.init()

inherited init: cannot prove legal (class declares 10 custom initializers)

All Intents types →