ContentRecommendation

public final class ContentRecommendation
extends Object

java.lang.Object
   ↳ androidx.recommendation.app.ContentRecommendation


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

Summary

Nested classes

class ContentRecommendation.Builder

Builder class for ContentRecommendation objects. 

@interface ContentRecommendation.ContentMaturity

 

@interface ContentRecommendation.ContentPricing

 

@interface ContentRecommendation.ContentStatus

 

@interface ContentRecommendation.ContentType

 

class ContentRecommendation.IntentData

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. 

@interface ContentRecommendation.IntentType

 

Constants

String CONTENT_MATURITY_ALL

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

String CONTENT_MATURITY_HIGH

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

String CONTENT_MATURITY_LOW

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

String CONTENT_MATURITY_MEDIUM

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

String CONTENT_PRICING_FREE

Value to be used with ContentRecommendation.Builder.setPricingInformation(String, String) to indicate that the content referred by the notification item is free to consume.

String CONTENT_PRICING_PREORDER

Value to be used with ContentRecommendation.Builder.setPricingInformation(String, String) 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.

String CONTENT_PRICING_PURCHASE

Value to be used with ContentRecommendation.Builder.setPricingInformation(String, String) 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.

String CONTENT_PRICING_RENTAL

Value to be used with ContentRecommendation.Builder.setPricingInformation(String, String) 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.

String CONTENT_PRICING_SUBSCRIPTION

Value to be used with ContentRecommendation.Builder.setPricingInformation(String, String) 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.

int CONTENT_STATUS_AVAILABLE

Value to be used with ContentRecommendation.Builder.setStatus(int) 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.

int CONTENT_STATUS_PENDING

Value to be used with ContentRecommendation.Builder.setStatus(int) 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.

int CONTENT_STATUS_READY

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

int CONTENT_STATUS_UNAVAILABLE

Value to be used with ContentRecommendation.Builder.setStatus(int) to indicate that the content referred by the notification is not available.

String CONTENT_TYPE_APP

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is an application.

String CONTENT_TYPE_BOOK

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is a book.

String CONTENT_TYPE_COMIC

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is a comic book.

String CONTENT_TYPE_GAME

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is a game.

String CONTENT_TYPE_MAGAZINE

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is a magazine.

String CONTENT_TYPE_MOVIE

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is a movie.

String CONTENT_TYPE_MUSIC

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is a song or album.

String CONTENT_TYPE_NEWS

Value to be used with ContentRecommendation.Builder.setContentTypes(String[]) to indicate that the content referred by the notification item is a news item.

String