-
public interface INotificationLifecycleCallback
-
-
Method Summary
Modifier and Type Method Description abstract BooleancanReceiveNotification(JSONObject jsonPayload)Called when a OneSignal notification bundle has been received by the SDK. abstract BooleancanOpenNotification(Activity activity, JSONObject jsonData)-
-
Method Detail
-
canReceiveNotification
abstract Boolean canReceiveNotification(JSONObject jsonPayload)
Called when a OneSignal notification bundle has been received by the SDK. This callback has the option to indicate to the bundle processor whether it should continue processing the bundle, or allow the callback itself to handle the bundle. The first callback to "claim" the bundle gets it.
- Parameters:
jsonPayload- The bundle that has been received.
-
canOpenNotification
abstract Boolean canOpenNotification(Activity activity, JSONObject jsonData)
-
-
-
-