Package org.iplass.mtp.pushnotification
Class NotificationPayload
通知ペイロードを表すクラス。
 いくつかの事前定義されたパラメータが存在する。
FCMの場合、
title、body、icon、soundなどを設定可能(詳細はFirebaseのドキュメント参照のこと)。
FCMの場合、
title、body、icon、soundなどを設定可能(詳細はFirebaseのドキュメント参照のこと)。
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionNotificationPayload(String body) 指定のbodyで通知を構築する。NotificationPayload(String title, String body, String icon) 指定のtitle,body,iconで通知を構築する。
- 
Method SummaryMethods inherited from class java.util.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMapequals, hashCode, toString
- 
Field Details- 
TITLE通知のタイトルを設定する際のkey。
 iOS(ウォッチ)、Androidで指定可能。
 Androidの場合必須。- See Also:
 
- 
BODY通知の本文テキストを設定する際のkey。
 iOS、Androidで指定可能。- See Also:
 
- 
ICON通知アイコンを設定する際のkey。
 Androidで指定可能かつ必須。- See Also:
 
 
- 
- 
Constructor Details- 
NotificationPayloadpublic NotificationPayload()
- 
NotificationPayload指定のtitle,body,iconで通知を構築する。- Parameters:
- title-
- body-
- icon-
 
- 
NotificationPayload指定のbodyで通知を構築する。- Parameters:
- body-
 
 
- 
- 
Method Details