Package com.batch.android.push.formats
Class SystemFormat
- java.lang.Object
-
- com.batch.android.push.formats.BaseFormat
-
- com.batch.android.push.formats.SystemFormat
-
- All Implemented Interfaces:
NotificationFormat
public class SystemFormat extends BaseFormat implements NotificationFormat
Format that uses BigPictureStyle or BigTextStyle according to the notification content
-
-
Field Summary
-
Fields inherited from class com.batch.android.push.formats.BaseFormat
body, icon, picture, title
-
-
Constructor Summary
Constructors Constructor Description SystemFormat(java.lang.String title, java.lang.String body, android.graphics.Bitmap icon, android.graphics.Bitmap picture, boolean useLegacyBigPictureIconBehaviour)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyArguments(JSONObject arguments)voidapplyExtraBuilderConfiguration(androidx.core.app.NotificationCompat.Builder builder)android.widget.RemoteViewsgenerateCollapsedView(java.lang.String packageName)android.widget.RemoteViewsgenerateExpandedView(java.lang.String packageName)androidx.core.app.NotificationCompat.StylegetSupportNotificationStyle()
-
-
-
Method Detail
-
generateCollapsedView
@Nullable public android.widget.RemoteViews generateCollapsedView(@NonNull java.lang.String packageName)- Specified by:
generateCollapsedViewin interfaceNotificationFormat
-
generateExpandedView
@Nullable public android.widget.RemoteViews generateExpandedView(@NonNull java.lang.String packageName)- Specified by:
generateExpandedViewin interfaceNotificationFormat
-
getSupportNotificationStyle
@Nullable public androidx.core.app.NotificationCompat.Style getSupportNotificationStyle()
- Specified by:
getSupportNotificationStylein interfaceNotificationFormat
-
applyArguments
public void applyArguments(@Nullable JSONObject arguments)- Specified by:
applyArgumentsin interfaceNotificationFormat
-
applyExtraBuilderConfiguration
public void applyExtraBuilderConfiguration(@NonNull androidx.core.app.NotificationCompat.Builder builder)- Specified by:
applyExtraBuilderConfigurationin interfaceNotificationFormat
-
-