Instance Method

shouldStorePreferenceForCurrentUser(to:completion:)

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

Declaration

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

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:

shouldCreateMapping

A Boolean value indicating whether your app should associate the specified profile with the current user. If this parameter is true, save the association in your app's data structures.

Discussion

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