From af541b9642ba6409f8955b68b8ec46e16f2fe3b2 Mon Sep 17 00:00:00 2001
From: Daniel Yu
Date: Mon, 25 Jan 2016 14:34:54 -0800
Subject: [PATCH] docs: Updating Android TV recommendations docs
Adding information about additional types of recommendations and
using recommendation grouping to best practices section.
Updated with fixes from Andrew.
Bug: 22797867
Bug: 19519975
Change-Id: I418447294d8022befa642efef81e4a2e776404d6
---
.../training/tv/discovery/recommendations.jd | 28 +++++++++++++++++--
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/docs/html/training/tv/discovery/recommendations.jd b/docs/html/training/tv/discovery/recommendations.jd
index ffe33f28bb000..0b0b270448175 100644
--- a/docs/html/training/tv/discovery/recommendations.jd
+++ b/docs/html/training/tv/discovery/recommendations.jd
@@ -63,10 +63,13 @@ recommendations you should consider:
- Continuation content recommendations for the next episode for users to resume
-watching a series.
+watching a series. Or, use continuation recommendations for paused movies, TV shows, or podcasts
+so users can get back to watching paused content in just a few clicks.
- New content recommendations, such as for a new first-run episode, if the user
-finished watching another series.
-
- Related content recommendations based on the users historic viewing behavior.
+finished watching another series. Also, if your app lets users subscribe to, follow, or track
+content, use new content recommendations for unwatched items in their list of tracked content.
+- Related content recommendations based on the users' historic viewing behavior.
+
For more information on how to design recommendation cards for the best user experience, see
@@ -88,6 +91,25 @@ To learn more, see
Recommendation Row in the Android TV Design Spec.
+Grouping Recommendations
+
+
+You can optionally group recommendations based on recommendation source. For example, your app
+might provide two groups of recommendations: recommendations for content the user is subscribed to,
+and recommendations for new trending content the user might not be aware of.
+
+
+The system ranks and orders recommendations for each group separately when creating or updating
+the recommendation row. By providing group information for your recommendations, you can ensure
+that your recommendations don’t get ordered below unrelated recommendations.
+
+
+Use
+{@link android.support.v4.app.NotificationCompat.Builder#setGroup
+NotificationCompat.Builder.setGroup()} to set the group key string of a recommendation. For
+example, to mark a recommendation as belonging to a group that contains new trending content,
+you might call setGroup("trending").
+
Create a Recommendations Service