Loading...
Searching...
No Matches
com.navigine.idl.java.Notification Class Referenceabstract

Class is used for working with the notifications and storing its data. More...

Public Member Functions

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.
 

Detailed Description

Class is used for working with the notifications and storing its data.

Referenced from: NotificationListener.

Definition at line 18 of file Notification.java.

Member Function Documentation

◆ getContent()

abstract String com.navigine.idl.java.Notification.getContent ( )
abstract

notification's content.

Returns

Java code snippet:

// Get notification content
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:

// Get notification ID
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:

// Get notification image URL
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:

// Get notification title
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: