One Logo Pool Ball
Messages · IOS API REFERENCE

MSRecipient

struct · iOS 18.2+ · SDK 27.1

struct MSRecipient

MSRecipient A simple struct with relevant properties for passing into the critical messaging and UPI APIs.

Members (3)

init · iOS 18.2+

init

TypeScript
static init(phoneNumber: string): MSRecipient
Swift declaration
init(phoneNumber: String)

Initializer

get · iOS 18.2+

phoneNumber

TypeScript
get phoneNumber(): string
Swift declaration
var phoneNumber: String

A phone number; when calling requestAuthorization for critical messaging, this phone number will be shown to the user along with the displayName.

set · iOS 18.2+

phoneNumber

TypeScript
set phoneNumber(value: string)
Swift declaration
var phoneNumber: String

A phone number; when calling requestAuthorization for critical messaging, this phone number will be shown to the user along with the displayName.

Skipped declarations

No declarations were skipped in this snapshot.

All Messages types →