One Logo Pool Ball
UIKit · IOS API REFERENCE

UIPasteboard.ChangedMessage

struct · iOS 26.0+ · SDK 27.1

struct ChangedMessage

Members (8)

static · iOS 26.0+

makeMessage

TypeScript
static makeMessage(notification: _Foundation_Notification): Promise<(UIPasteboard_ChangedMessage) | null>
Swift declaration
@MainActor static func makeMessage(_ notification: Notification) -> UIPasteboard.ChangedMessage?

Converts a posted notification into this main actor message type for any observers. To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message. - Parameter notification: The posted ``Notification``. - Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.

init · iOS 26.0+

init

TypeScript
static init(typesAdded: Array<string>, typesRemoved: Array<string>): UIPasteboard_ChangedMessage
Swift declaration
init(typesAdded: [String], typesRemoved: [String])
get · iOS 26.0+

typesAdded

TypeScript
get typesAdded(): Array<string>
Swift declaration
var typesAdded: [String]
set · iOS 26.0+

typesAdded

TypeScript
set typesAdded(value: Array<string>)
Swift declaration
var typesAdded: [String]
get · iOS 26.0+

typesRemoved

TypeScript
get typesRemoved(): Array<string>
Swift declaration
var typesRemoved: [String]
set · iOS 26.0+

typesRemoved

TypeScript
set typesRemoved(value: Array<string>)
Swift declaration
var typesRemoved: [String]
static · iOS 26.0+

makeNotification

TypeScript
static makeNotification(message: UIPasteboard_ChangedMessage): Promise<_Foundation_Notification>
Swift declaration
@MainActor static func makeNotification(_ message: UIPasteboard.ChangedMessage) -> Notification

Converts a posted main actor message into a notification for any observers. To implement this method in your own `MainActorMessage` conformance, use the properties defined by the message to populate the ``Notification``'s ``Notification/userInfo``. - Parameters: - message: The posted `MainActorMessage`. - Returns: The converted ``Notification``.

get · iOS 26.0+

name

TypeScript
static get nameValue(): _Foundation_NSNotification_Name
Swift declaration
static var name: Notification.Name { get }

A optional name corresponding to this type, used to interoperate with notification posters and observers.

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →