Function

NSAccessibilityPostNotificationWithUserInfo

Sends a notification and an optional userInfo dictionary to any observing assistive applications.

Declaration

void NSAccessibilityPostNotificationWithUserInfo(id element, NSAccessibilityNotificationName notification, NSDictionary<NSAccessibilityNotificationUserInfoKey, id> *userInfo);

Discussion

Sends notification and userInfo to any assistive applications that have registered to receive the notification from the UI object element in your app. The userInfo dictionary values are restricted to the same values to which accessibility attributes are restricted (for a list of these values, see Attributes). The userInfo dictionary can also be nil (most accessibility notifications don’t require it).

See Also

Convenience Functions

NSAccessibilityActionDescription

Returns a standard description for an action.

NSAccessibilityPostNotification

Sends a notification to any observing assistive applications.

NSAccessibilityRaiseBadArgumentException

Raises an error if the parameter is the wrong type or has an illegal value

Deprecated
NSAccessibilityRoleDescription

Returns a standard description for a role and subrole.

NSAccessibilityRoleDescriptionForUIElement

Returns a standard role description for a user interface element.

NSAccessibilitySetMayContainProtectedContent

Sets whether the app may have protected content.

NSAccessibilityUnignoredChildren

Returns a list of unignored accessibility objects, descending the hierarchy if necessary.

NSAccessibilityUnignoredChildrenForOnlyChild

Returns a list of unignored accessibility objects, descending the hierarchy if necessary.

NSAccessibilityUnignoredDescendant

Returns an unignored accessibility object, descending the hierarchy if necessary.

NSAccessibilityUnignoredAncestor

Returns an unignored accessibility object, ascending the hierarchy if necessary.

NSAccessibilityFrameInView

Returns the frame in screen coordinates.

NSAccessibilityPointInView

Returns the point in screen coordinates.