32 lines
938 B
Kotlin
32 lines
938 B
Kotlin
|
package io.heckel.ntfy.msg
|
||
|
|
||
|
import android.app.NotificationChannel
|
||
|
import android.app.NotificationManager
|
||
|
import android.app.PendingIntent
|
||
|
import android.app.TaskStackBuilder
|
||
|
import android.content.Context
|
||
|
import android.content.Intent
|
||
|
import android.media.RingtoneManager
|
||
|
import android.os.Build
|
||
|
import android.util.Log
|
||
|
import androidx.annotation.RequiresApi
|
||
|
import androidx.core.app.NotificationCompat
|
||
|
import androidx.core.content.ContextCompat
|
||
|
import io.heckel.ntfy.R
|
||
|
import io.heckel.ntfy.data.Notification
|
||
|
import io.heckel.ntfy.data.Subscription
|
||
|
import io.heckel.ntfy.ui.DetailActivity
|
||
|
import io.heckel.ntfy.ui.MainActivity
|
||
|
import io.heckel.ntfy.util.formatMessage
|
||
|
import io.heckel.ntfy.util.formatTitle
|
||
|
|
||
|
class NotificationDispatcher(val context: Context) {
|
||
|
fun dispatch(subscription: Subscription, notification: Notification) {
|
||
|
|
||
|
}
|
||
|
|
||
|
companion object {
|
||
|
private const val TAG = "NtfyNotificationDispatcher"
|
||
|
}
|
||
|
}
|