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

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

+ Inheritance diagram for com.navigine.idl.java.Notification:

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.
 
abstract boolean isValid ()
 

Detailed Description

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

Referenced from: NotificationListener.

Definition at line 16 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")

Reimplemented in com.navigine.idl.java.internal.NotificationBinding.

◆ 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")

Reimplemented in com.navigine.idl.java.internal.NotificationBinding.

◆ 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")
}

Reimplemented in com.navigine.idl.java.internal.NotificationBinding.

◆ 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")

Reimplemented in com.navigine.idl.java.internal.NotificationBinding.

◆ isValid()

abstract boolean com.navigine.idl.java.Notification.isValid ( )
abstract

Tells if this Notification is valid or not. Any other method (except for this one) called on an invalid Notification will throw java.lang.RuntimeException.

Reimplemented in com.navigine.idl.java.internal.NotificationBinding.


The documentation for this class was generated from the following file: