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 |
|
Object used to encapsulate the data to be used to build the |
|
Constants | |
---|---|
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static Int |
Value to be used with |
static Int |
Value to be used with |
static Int |
Value to be used with |
static Int |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static String |
Value to be used with |
static Int |
Value to be used with |
static Int |
Value to be used with |
static Int |
Value to be used with |
Public methods | |
---|---|
Boolean | |
String! |
Returns a Content URI that can be used to retrieve the background image for this recommendation. |
Int |
Returns the resource id for the recommendation badging icon. |
Int |
getColor() Returns the accent color value to be used in the UI when displaying this content recommendation to the user. |
Bitmap! |
Returns the Bitmap containing the recommendation image. |
ContentRecommendation.IntentData! |
Returns the data for the Intent that will be issued when the user clicks on the recommendation. |
Array<String!>! |
Returns an array containing the content types tags that describe the content. |
ContentRecommendation.IntentData! |
Returns the data for the Intent that will be issued when the recommendation gets dismissed from the Home Screen, due to an user action. |
Array<String!>! |
Returns an array containing the genres that describe the content. |
String! |
getGroup() Returns the String group ID tag for this recommendation. |
String! |
getIdTag() Returns the String Id tag which uniquely identifies this recommendation. |
String! |
Returns the maturity level rating for the content. |
Notification! |
getNotificationObject(context: Context!) Returns a |
String! |
Gets the pricing type for the content. |
String! |
Gets the price value (when applicable) for the content. |
String! |
Returns the primary content type tag for the recommendation, or null if no content types have been specified. |
Int |
Returns the maximum value for the progress data of this recommendation. |
Int |
Returns the progress amount for this recommendation. |
Long |
Returns the running time for the content. |
String! |
Returns the String sort key for this recommendation. |
String! |
Returns the source application name for this recommendation. |
Int |
Returns availability status value for the content. |
String! |
getText() Returns the description text for this recommendation. |
String! |
getTitle() Returns the content title for this recommendation. |
Boolean |
Indicates if this recommendation contains valid progress information. |
Int |
hashCode() |
Boolean |
Indicates whether this recommendation should be dismissed automatically. |
Unit |
setAutoDismiss(autoDismiss: Boolean) Sets the flag indicating if this recommendation should be dismissed automatically. |
Unit |
Sets the String group ID tag for this recommendation. |
Unit |
setProgress(max: Int, progress: Int) Sets the progress information for the content pointed to by this recommendation. |
Uni |