Structure

UIFocusSoundIdentifier

An identifier for a focus-related sound.

Declaration

struct UIFocusSoundIdentifier

Overview

To assign an identifier to a custom sound file, call the register(_:forSoundIdentifier:) method of UIFocusSystem.,

Topics

Type Properties

static let `default`: UIFocusSoundIdentifier

The identifier for the default system sound to play during focus updates.

static let none: UIFocusSoundIdentifier

The identifier for disabling sound during a focus update.

Relationships

See Also

Getting the Sound to Play During Updates

Using Custom Sounds for Focus Movement

Customize the sounds users hear when focus moves.

func soundIdentifierForFocusUpdate(in: UIFocusUpdateContext) -> UIFocusSoundIdentifier?

Asks the delegate for the identifier of the sound to play when the object gains focus.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software