setNotificationDurationAlarm

fun setNotificationDurationAlarm(context: Context, thisClass: Class<*>?, notificationId: Int, durationInMillis: Int)

Creates an alarm which will issue a broadcast to cancel the notification specified by the given notificationId after the given duration.