FavoriteTemplate

class FavoriteTemplate(id: String, @StringRes() nameId: Int, @DrawableRes() resourceId: Int) : Parcelable

Template for favorite object. Used to add predefined favorites object, such as Home or Work, that user can only edit but can not delete.

Constructors

FavoriteTemplate
Link copied to clipboard
fun FavoriteTemplate(id: String, @StringRes() nameId: Int, @DrawableRes() resourceId: Int)

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

id
Link copied to clipboard
val id: String
Unique template id.
nameId
Link copied to clipboard
val nameId: Int
String resource id for template name.
resourceId
Link copied to clipboard
val resourceId: Int
Drawable resource id for template icon.