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