public final class

SendResponse

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

Class Overview

The result of an individual send operation that was executed as part of a batch. See BatchResponse for more details.

Summary

Public Methods
FirebaseMessagingException getException()
Returns an exception if the send operation failed.
String getMessageId()
Returns a message ID string if the send operation was successful.
boolean isSuccessful()
Returns whether the send operation was successful or not.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public FirebaseMessagingException getException ()

Returns an exception if the send operation failed. Otherwise returns null.

Returns

public String getMessageId ()

Returns a message ID string if the send operation was successful. Otherwise returns null.

Returns
  • A message ID string or null.

public boolean isSuccessful ()

Returns whether the send operation was successful or not. When this method returns true, getMessageId() is guaranteed to return a non-null value. When this method returns false getException() is guaranteed to return a non-null value.

Returns
  • A boolean indicating success of the operation.