One Logo Pool Ball
StoreKit · IOS API REFERENCE

Message

struct · iOS 16.0+ · SDK 27.1

struct Message

A message to be displayed.

Members (3)

get · iOS 16.0+

reason

TypeScript
get reason(): Message_Reason
Swift declaration
let reason: Message.Reason

The reason for the message.

method · iOS 16.0+

display

TypeScript
display(scene: _UIKit_UIWindowScene): Promise<void>
Swift declaration
@MainActor func display(in scene: UIWindowScene) throws

Asks the system to display the message. - Throws: A `StoreKitError`

get · iOS 16.0+

messages

TypeScript
static get messages(): Message_Messages
Swift declaration
static var messages: Message.Messages { get }

Use `messages` to listen for pending messages. You may want to delay showing the message if it would interrupt your user's interaction with your app. By default, the system will display pending messages at app launch.

Skipped declarations

No declarations were skipped in this snapshot.

All StoreKit types →