createDfuNotificationChannel

open fun createDfuNotificationChannel(@NonNull context: Context, @NonNull dfu_channel_name: String, @NonNull dfu_channel_description: String, showBadge: Boolean)

Creates a notification channel for the DFU service.

This method requires Android 8 or newer.

Parameters

context

application context

dfu_channel_name

the name of the channel

dfu_channel_description

the description of the channel

showBadge

whether the channel should show a badge


Creates a notification channel for the DFU service with default name and description. Badges won't be shown.

This method requires Android 8 or newer.

Parameters

context

application context