Android 12 Developer Preview is here! Try it out, and give us your feedback!

ContentRecommendation

class ContentRecommendation
kotlin.Any
   ↳ androidx.recommendation.app.ContentRecommendation

The ContentRecommendation object encapsulates all application provided data for a single content recommendation item.

Summary

Nested classes

Builder class for ContentRecommendation objects.

Object used to encapsulate the data to be used to build the PendingIntent object associated with a given content recommendation, at the time this recommendation gets posted to the home Screen.

Constants
static String

Value to be used with Builder#setMaturityRating to indicate that the content referred by the notification is suitable for all audiences.

static String

Value to be used with Builder#setMaturityRating to indicate that the content referred by the notification is suitable for audiences of high maturity and above.

static String

Value to be used with Builder#setMaturityRating to indicate that the content referred by the notification is suitable for audiences of low maturity and above.

static String

Value to be used with Builder#setMaturityRating to indicate that the content referred by the notification is suitable for audiences of medium maturity and above.

static String

Value to be used with Builder#setPricingInformation to indicate that the content referred by the notification item is free to consume.

static String

Value to be used with Builder#setPricingInformation to indicate that the content referred by the notification item is available currently as a pre-order, and the price value provided is the purchase price for the item.

static String

Value to be used with Builder#setPricingInformation to indicate that the content referred by the notification item is available for purchase, and the price value provided is the purchase price for the item.

static String

Value to be used with Builder#setPricingInformation to indicate that the content referred by the notification item is available as a rental, and the price value provided is the rental price for the item.

static String

Value to be used with Builder#setPricingInformation to indicate that the content referred by the notification item is available as part of a subscription based service, and the price value provided is the subscription price for the service.

static Int

Value to be used with Builder#setStatus to indicate that the content referred by the notification is available, but needs to be first purchased, rented, subscribed or downloaded before it can be consumed.

static Int

Value to be used with Builder#setStatus to indicate that the content referred by the notification is pending, waiting on either a download or purchase operation to complete before it can be consumed.

static Int

Value to be used with Builder#setStatus to indicate that the content referred by the notification is available and ready to be consumed immediately.

static Int

Value to be used with Builder#setStatus to indicate that the content referred by the notification is not available.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is an application.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a book.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a comic book.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a game.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a magazine.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a movie.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a song or album.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a news item.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a podcast.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a radio station.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is serial.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is sports.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a trailer.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a video clip.

static String

Value to be used with Builder#setContentTypes to indicate that the content referred by the notification item is a website.

static Int

Value to be used with Builder#setContentIntentData and Builder#setDismissIntentData to indicate that a