public class

Notification

extends Object
java.lang.Object
   ↳ com.google.firebase.messaging.Notification

Class Overview

Represents the notification parameters that can be included in a Message. Instances of this class are thread-safe and immutable.

Summary

Nested Classes
class Notification.Builder  
Public Constructors
Notification(String title, String body)
This constructor is deprecated. Use #Notification(Builder) instead.
Notification(String title, String body, String imageUrl)
This constructor is deprecated. Use #Notification(Builder) instead.
Public Methods
static Notification.Builder builder()
Creates a new Notification.Builder.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Notification (String title, String body)

This constructor is deprecated.
Use #Notification(Builder) instead.

Creates a new Notification using the given title and body.

Parameters
title Title of the notification.
body Body of the notification.

public Notification (String title, String body, String imageUrl)

This constructor is deprecated.
Use #Notification(Builder) instead.

Creates a new Notification using the given title, body, and image.

Parameters
title Title of the notification.
body Body of the notification.
imageUrl URL of the image that is going to be displayed in the notification.

Public Methods

public static Notification.Builder builder ()

Creates a new Notification.Builder.

Returns