public static class FCM.FCMStyle.Builder extends Object
FCM.FCMStyle.| Modifier and Type | Class and Description |
|---|---|
static class |
FCM.FCMStyle.Builder.FCMStyleTypes
The available style type of the
FCM notification message. |
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FCM.FCMStyle |
build() |
FCM.FCMStyle.Builder |
lines(String[] lines) |
FCM.FCMStyle.Builder |
text(String text) |
FCM.FCMStyle.Builder |
title(String title) |
FCM.FCMStyle.Builder |
type(FCM.FCMStyle.Builder.FCMStyleTypes type) |
FCM.FCMStyle.Builder |
url(String url) |
public final FCM.FCMStyle.Builder type(FCM.FCMStyle.Builder.FCMStyleTypes type)
type - Specifies the type of expandable notifications. The
possible values are bigtext_notification,
picture_notification, inbox_notification.public final FCM.FCMStyle.Builder url(String url)
url - An URL from which the picture has to be obtained for
the notification. Must be specified for
picture_notification.public final FCM.FCMStyle.Builder title(String title)
title - Specifies the title of the notification. The title is
displayed when the notification is expanded. Title
must be specified for all three expandable
notification.public final FCM.FCMStyle.Builder text(String text)
text - The big text that needs to be displayed on expanding a
bigtext_notification. Must be specified for
bigtext_notification.public final FCM.FCMStyle.Builder lines(String[] lines)
lines - An array of strings that is to be displayed in inbox
style for inbox_notification. Must be specified for
inbox_notification.public FCM.FCMStyle build()
FCM.FCMStyle object.Copyright © 2018. All rights reserved.