Speedify SDK for Android  10.7.0
Static Public Member Functions | List of all members
com.speedify.speedifysdk.NotificationHelper Class Reference

Detailed Description

Helper class for displaying notifications.

Since
6.1

Static Public Member Functions

static void setVibePattern (long[] pattern)
 Set vibration pattern to be used. More...
 
static void setLauncherClass (Class activityToLaunch)
 Set activity class to launch when clicking on notifications. More...
 
static void setDefaultIcon (int iconId)
 Set defalt icon used in notifications from this class. More...
 
static void createNotification (Context context, String notificationChannel, int notificationId, String title)
 Create a notification. More...
 
static void createNotification (Context context, String notificationChannel, int notificationId, String title, String message)
 Create a notification. More...
 
static void createNotification (Context context, String notificationChannel, int notificationId, String title, String message, String subtext)
 Create a notification. More...
 
static void createBackgroundActivityNotification (Context context, String notificationChannel, int notificationId, String title, String message, PendingIntent pendingIntent)
 Create a fullscreen notification from the background. More...
 
static void clear (Context context, int notificationId)
 Clear a notification. More...
 

Member Function Documentation

◆ clear()

static void com.speedify.speedifysdk.NotificationHelper.clear ( Context  context,
int  notificationId 
)
static

Clear a notification.

Parameters
contextcontext used to launch notification
notificationIdunique identifier for the notification to clear
Since
9.3

◆ createBackgroundActivityNotification()

static void com.speedify.speedifysdk.NotificationHelper.createBackgroundActivityNotification ( Context  context,
String  notificationChannel,
int  notificationId,
String  title,
String  message,
PendingIntent  pendingIntent 
)
static

Create a fullscreen notification from the background.

Parameters
contextcontext used to launch notification
notificationChannelchannel group for this notification
notificationIdunique identifier for this notification
titlenotification title
messagenotification message
pendingIntentintent this fullscreen notification should launch
Since
8.1

◆ createNotification() [1/3]

static void com.speedify.speedifysdk.NotificationHelper.createNotification ( Context  context,
String  notificationChannel,
int  notificationId,
String  title 
)
static

Create a notification.

Parameters
contextcontext used to launch notification
notificationChannelchannel group for this notification
notificationIdunique identifier for this notification
titlenotification title
Since
6.1

◆ createNotification() [2/3]

static void com.speedify.speedifysdk.NotificationHelper.createNotification ( Context  context,
String  notificationChannel,
int  notificationId,
String  title,
String  message 
)
static

Create a notification.

Parameters
contextcontext used to launch notification
notificationChannelchannel group for this notification
notificationIdunique identifier for this notification
titlenotification title
messagenotification message
Since
6.1

◆ createNotification() [3/3]

static void com.speedify.speedifysdk.NotificationHelper.createNotification ( Context  context,
String  notificationChannel,
int  notificationId,
String  title,
String  message,
String  subtext 
)
static

Create a notification.

Parameters
contextcontext used to launch notification
notificationChannelchannel group for this notification
notificationIdunique identifier for this notification
titlenotification title
messagenotification message
subtextnotification subtext
Since
6.1

◆ setDefaultIcon()

static void com.speedify.speedifysdk.NotificationHelper.setDefaultIcon ( int  iconId)
static

Set defalt icon used in notifications from this class.

Parameters
iconIdresource id of icon to use
Since
9.3.1

◆ setLauncherClass()

static void com.speedify.speedifysdk.NotificationHelper.setLauncherClass ( Class  activityToLaunch)
static

Set activity class to launch when clicking on notifications.

Null to disable.

Parameters
activityToLaunchactvity class to launch
Since
6.1

◆ setVibePattern()

static void com.speedify.speedifysdk.NotificationHelper.setVibePattern ( long []  pattern)
static

Set vibration pattern to be used.

A null or empty array disabled vibration.

Parameters
patternvibration pattern
Since
6.1

The documentation for this class was generated from the following file: