-
- All Implemented Interfaces:
-
com.batch.android.push.formats.NotificationFormat
public class APENFormat extends BaseFormat implements NotificationFormat
The News format is a notification format that works very similarly to BigPictureStyle, but allows multiple lines when expanded.
It also automatically manages falling back on a reduced version of the large picture when collapsed, if a large icon has not been specified
-
-
Constructor Summary
Constructors Constructor Description APENFormat(String title, String body, Bitmap collapsedIcon, Bitmap picture)
-
Method Summary
Modifier and Type Method Description RemoteViewsgenerateCollapsedView(@NonNull() String packageName)RemoteViewsgenerateExpandedView(@NonNull() String packageName)NotificationCompat.StylegetSupportNotificationStyle()voidapplyArguments(@Nullable() JSONObject arguments)voidapplyExtraBuilderConfiguration(@NonNull() NotificationCompat.Builder builder)static booleanisSupported()-
-
Method Detail
-
generateCollapsedView
RemoteViews generateCollapsedView(@NonNull() String packageName)
-
generateExpandedView
RemoteViews generateExpandedView(@NonNull() String packageName)
-
getSupportNotificationStyle
NotificationCompat.Style getSupportNotificationStyle()
-
applyArguments
void applyArguments(@Nullable() JSONObject arguments)
-
applyExtraBuilderConfiguration
void applyExtraBuilderConfiguration(@NonNull() NotificationCompat.Builder builder)
-
isSupported
static boolean isSupported()
-
-
-
-