An object for mapping Apple TV user accounts to app-specific user preferences.
- tvOS 13.0+
TVUser object improves the user experience of apps that manage their own user-specific preferences. At launch time, many apps prompt the user to select an app-specific profile. For example, video content apps use profiles to store information about which shows each user is watching and their current progress for each show. However, requiring the user to select a profile every time your app launches is cumbersome, especially for systems with only one user. The
TVUser object provides a way for your app to select the most appropriate user profile automatically.
TVUser object as follows:
When your app launches, get the
current property of the user manager and use it to select an appropriate app-specific profile. You are responsible for maintaining a mapping between system users and your app's configured profiles. If the current system user doesn't have a preferred profile, display your normal profile selection interface. The first time the user selects a profile, call the
should method to confirm whether the user wants to make that profile their preferred profile.
Apps should provide a way for users to change their preferred profile. When the user wants to make such a change, call the
present method to display the standard configuration panel.