NotificationTarget

open fun NotificationTarget(    context: Context,     viewId: Int,     remoteViews: RemoteViews,     notification: Notification,     notificationId: Int)

Constructor using a Notification object and a notificationId to get a handle on the Notification in order to update it that uses SIZE_ORIGINAL as the target width and height.

Parameters

context

Context to use in the AppWidgetManager initialization.

viewId

The id of the ImageView view that will load the image.

remoteViews

RemoteViews object which contains the ImageView that will load the bitmap.

notification

The Notification object that we want to update.

notificationId

The notificationId of the Notification that we want to load the Bitmap.


open fun NotificationTarget(    context: Context,     viewId: Int,     remoteViews: RemoteViews,     notification: Notification,     notificationId: Int,     notificationTag: String)

Constructor using a Notification object, a notificationId, and a notificationTag to get a handle on the Notification in order to update it that uses SIZE_ORIGINAL as the target width and height.

Parameters

context

Context to use in the AppWidgetManager initialization.

viewId

The id of the ImageView view that will load the image.

remoteViews

RemoteViews object which contains the ImageView that will load the bitmap.

notification

The Notification object that we want to update.

notificationId

The notificationId of the Notification that we want to load the Bitmap.

notificationTag

The notificationTag of the Notification that we want to load the Bitmap. May be null.


open fun NotificationTarget(    context: Context,     width: Int,     height: Int,     viewId: Int,     remoteViews: RemoteViews,     notification: Notification,     notificationId: Int,     notificationTag: String)

Constructor using a Notification object, a notificationId, and a notificationTag to get a handle on the Notification in order to update it.

Parameters

context

Context to use in the AppWidgetManager initialization.

width

Desired width of the bitmap that will be loaded.(Need to be manually put because of RemoteViews limitations.)

height

Desired height of the bitmap that will be loaded. (Need to be manually put because of RemoteViews limitations.)

viewId

The id of the ImageView view that will load the image.

remoteViews

RemoteViews object which contains the ImageView that will load the bitmap.

notification

The Notification object that we want to update.

notificationId

The notificationId of the Notification that we want to load the Bitmap.

notificationTag

The notificationTag of the Notification that we want to load the Bitmap. May be null.