VpnEnabledNotificationContentPlugin
interface VpnEnabledNotificationContentPlugin
Types
Link copied to clipboard
Link copied to clipboard
data class VpnEnabledNotificationContent(val title: String?, val text: SpannableStringBuilder, val onNotificationPressIntent: PendingIntent?, val notificationActions: VpnEnabledNotificationContentPlugin.NotificationActions, val deleteIntent: PendingIntent?)
Link copied to clipboard
Functions
Link copied to clipboard
abstract fun getInitialContent(): VpnEnabledNotificationContentPlugin.VpnEnabledNotificationContent?
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
abstract fun getUpdatedContent(): Flow<VpnEnabledNotificationContentPlugin.VpnEnabledNotificationContent?>
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.