VpnEnabledNotificationContentPlugin

Types

Link copied to clipboard
sealed class NotificationActions
Link copied to clipboard
data class VpnEnabledNotificationContent(val title: String?, val text: SpannableStringBuilder, val onNotificationPressIntent: PendingIntent?, val notificationActions: VpnEnabledNotificationContentPlugin.NotificationActions, val deleteIntent: PendingIntent?)

Properties

Link copied to clipboard
abstract val uuid: String

Functions

Link copied to clipboard

This method will be called to show the first notification when the VPN is enabled. The method will be called from the main thread.

Link copied to clipboard

The VPN will call this method to select what plugin will be displayed in the notification. To select a proper priority:

Link copied to clipboard

The VPN will subscribe to this flow, after it's being enabled, to get notification content updates. The method will NOT be called from the main thread.

Link copied to clipboard
abstract fun isActive(): Boolean

The VPN will call this method to know whether this plugin is active or not.