---
title: "shouldStorePreferenceForCurrentUser(to:completion:)"
framework: tvservices
role: symbol
role_heading: Instance Method
path: "tvservices/tvusermanager/shouldstorepreferenceforcurrentuser(to:completion:)"
---

# shouldStorePreferenceForCurrentUser(to:completion:)

Prompts the user to save the specified profile as the preferred profile for the current user.

## Declaration

```swift
func shouldStorePreferenceForCurrentUser(to profile: TVAppProfileDescriptor, completion: @escaping @Sendable (Bool) -> Void)
```

```swift
func shouldStorePreferenceForCurrentUser(to profile: TVAppProfileDescriptor) async -> Bool
```

## Parameters

- `profile`: The profile to associate with the current user.
- `completion`: The completion handler to call with the results. This handler has no return value and takes the following parameter:

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func shouldStorePreferenceForCurrentUser(to profile: TVAppProfileDescriptor) async -> Bool For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously. Use this method to confirm that the profile chosen by the user should become their new preferred profile. The method prompts the user to confirm the profile change and calls the completion handler with the results. Call this method only once for each user.

## See Also

### Deprecated symbols

- [currentUserIdentifier](tvservices/tvusermanager/currentuseridentifier.md)
- [currentUserIdentifierDidChangeNotification](tvservices/tvusermanager/currentuseridentifierdidchangenotification.md)
- [presentProfilePreferencePanel(currentSettings:availableProfiles:completion:)](tvservices/tvusermanager/presentprofilepreferencepanel(currentsettings:availableprofiles:completion:).md)
- [TVAppProfileDescriptor](tvservices/tvappprofiledescriptor.md)
- [TVUserIdentifier](tvservices/tvuseridentifier.md)
- [userIdentifiersForCurrentProfile](tvservices/tvusermanager/useridentifiersforcurrentprofile.md)
