Class is used for working with the notifications and storing its data.
More...
|
| abstract int | getId () |
| | notification's unique identifier.
|
| |
| abstract String | getTitle () |
| | notification's title.
|
| |
| abstract String | getContent () |
| | notification's content.
|
| |
| abstract String | getImageUrl () |
| | notification's image url if specified.
|
| |
Class is used for working with the notifications and storing its data.
Referenced from: NotificationListener.
Definition at line 18 of file Notification.java.
◆ getContent()
| abstract String com.navigine.idl.java.Notification.getContent |
( |
| ) |
|
|
abstract |
notification's content.
- Returns
Java code snippet:
String content = notification.getContent();
System.out.println("Notification content: " + content);
Kotlin code snippet:
// Get notification content
val content = notification.content
println("Notification content: $content")
◆ getId()
| abstract int com.navigine.idl.java.Notification.getId |
( |
| ) |
|
|
abstract |
notification's unique identifier.
- Returns
Java code snippet:
int id = notification.getId();
System.out.println("Notification ID: " + id);
Kotlin code snippet:
// Get notification ID
val id = notification.id
println("Notification ID: $id")
◆ getImageUrl()
| abstract String com.navigine.idl.java.Notification.getImageUrl |
( |
| ) |
|
|
abstract |
notification's image url if specified.
- Returns
Java code snippet:
String imageUrl = notification.getImageUrl();
if (imageUrl != null && !imageUrl.isEmpty()) {
System.out.println("Notification image URL: " + imageUrl);
} else {
System.out.println("Notification has no image URL");
}
Kotlin code snippet:
// Get notification image URL
val imageUrl = notification.imageUrl
if (imageUrl != null && imageUrl.isNotEmpty()) {
println("Notification image URL: $imageUrl")
} else {
println("Notification has no image URL")
}
◆ getTitle()
| abstract String com.navigine.idl.java.Notification.getTitle |
( |
| ) |
|
|
abstract |
notification's title.
- Returns
Java code snippet:
String title = notification.getTitle();
System.out.println("Notification title: " + title);
Kotlin code snippet:
// Get notification title
val title = notification.title
println("Notification title: $title")
The documentation for this class was generated from the following file: