Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change param name from image to imageUrl
  • Loading branch information
chong-shao committed Aug 14, 2019
commit 3ee631eb22c0dcb808c86d4e0fc01eb9b7093ea0
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,13 @@ public Builder setChannelId(String channelId) {

/**
* Sets the URL of the image that is going to be displayed in the notification. When provided,
* overrides the image set via {@link Notification}.
* overrides the imageUrl set via {@link Notification}.
*
* @param image URL of the image that is going to be displayed in the notification.
* @param imageUrl URL of the image that is going to be displayed in the notification.
* @return This builder.
*/
public Builder setImage(String image) {
this.image = image;
public Builder setImage(String imageUrl) {
this.image = imageUrl;
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public Builder setAnalyticsLabel(String analyticsLabel) {
}

/**
* @param image URL of the image that is going to be displayed in the notification.
* @param imageUrl URL of the image that is going to be displayed in the notification.
* @return This builder
*/
public Builder setImage(String image) {
this.image = image;
public Builder setImage(String imageUrl) {
this.image = imageUrl;
return this;
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/google/firebase/messaging/Notification.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ public Notification(String title, String body) {
*
* @param title Title of the notification.
* @param body Body of the notification.
* @param image URL of the image that is going to be displayed in the notification.
* @param imageUrl URL of the image that is going to be displayed in the notification.
*/
public Notification(String title, String body, String image) {
public Notification(String title, String body, String imageUrl) {
this.title = title;
this.body = body;
this.image = image;
this.image = imageUrl;
}

}