android-components / mozilla.components.concept.engine.webnotifications / WebNotification

WebNotification

data class WebNotification (source)

A notification sent by the Web Notifications API.

Constructors

Name Summary
<init> WebNotification(title: String?, tag: String, body: String?, iconUrl: String?, direction: String?, lang: String?, requireInteraction: Boolean, timestamp: Long = System.currentTimeMillis())
A notification sent by the Web Notifications API.

Properties

Name Summary
body val body: String?
Body of the notification to be displayed in the second row.
direction val direction: String?
Preference for text direction.
iconUrl val iconUrl: String?
Large icon url to display in the notification. Corresponds to android.app.Notification.Builder.setLargeIcon.
lang val lang: String?
language of the notification.
requireInteraction val requireInteraction: Boolean
Preference flag that indicates the notification should remain.
tag val tag: String
Tag used to identify the notification.
timestamp val timestamp: Long
Time when the notification was created.
title val title: String?
Title of the notification to be displayed in the first row.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.