public final class PushNotificationHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static NotificationContainer |
findInIntent(android.content.Intent intent)
Find GetSocial data in push notification intent or throws
ParseException if can not found. |
static NotificationContainer |
getAndRemoveFromIntent(android.content.Intent intent)
Get notification from intent and remove it from extras.
|
static NotificationContainer |
getAndRemoveFromLocalStorage(im.getsocial.sdk.core.LocalStorage localStorage)
Get notification from local storage and remove it from there.
|
static void |
saveToIntent(android.content.Intent intent,
NotificationContainer notification)
Save notification to Android intent object.
|
static void |
saveToLocalStorage(im.getsocial.sdk.core.LocalStorage localStorage,
NotificationContainer notification)
Save notification to the local storage.
|
public static void saveToIntent(android.content.Intent intent, NotificationContainer notification)
intent
- intent to add extra to.notification
- notification to be saved.public static NotificationContainer getAndRemoveFromIntent(android.content.Intent intent)
intent
- intent to grab notification from.public static void saveToLocalStorage(im.getsocial.sdk.core.LocalStorage localStorage, NotificationContainer notification)
localStorage
- instance of the local storage.notification
- notification to be saved.public static NotificationContainer getAndRemoveFromLocalStorage(im.getsocial.sdk.core.LocalStorage localStorage)
localStorage
- local storage instance.public static NotificationContainer findInIntent(android.content.Intent intent) throws im.getsocial.json.simple.parser.ParseException
ParseException
if can not found.intent
- Push Receiver intent.im.getsocial.json.simple.parser.ParseException
- if not found.(c) Copyright GetSocial BV, 2018. All Rights Reserved.