-
- All Implemented Interfaces:
-
io.getstream.video.android.core.notifications.NotificationIntentBundleResolver
public class DefaultNotificationIntentBundleResolver implements NotificationIntentBundleResolver
-
-
Constructor Summary
Constructors Constructor Description DefaultNotificationIntentBundleResolver()
-
Method Summary
Modifier and Type Method Description BundlegetIncomingCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive incoming calls from Stream Server. BundlegetOutgoingCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that is used for outgoing calls. BundlegetNotificationCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive live calls from Stream Server. BundlegetMissedCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive missed calls from Stream Server. BundlegetDefaultBundle(Map<String, Object> payload)BundlegetLiveCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive live calls from Stream Server. BundlegetAcceptCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can accept call from Stream Server. BundlegetRejectCallBundle(StreamCallId callId, Map<String, Object> payload)Searches for a broadcast receiver that can consume the ACTION_REJECT_CALL intent to reject a call from the Stream Server. BundlegetEndCallPendingBundle(StreamCallId callId, Map<String, Object> payload)Searches for a broadcast receiver that can consume the ACTION_REJECT_CALL intent to reject a call from the Stream Server. BundlegetOngoingCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Searches an activity that will accept the ACTION_ONGOING_CALL intent and jump right back into the call. -
-
Method Detail
-
getIncomingCallBundle
Bundle getIncomingCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
Search for an activity that can receive incoming calls from Stream Server.
- Parameters:
callId- The call id from the incoming call.notificationId- the notification ID.payload- The payload from Push Notification
-
getOutgoingCallBundle
Bundle getOutgoingCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
Search for an activity that is used for outgoing calls. Calls are considered outgoing until the call is accepted.
- Parameters:
callId- the call idnotificationId- the notification ID.payload- The payload from Push Notification
-
getNotificationCallBundle
Bundle getNotificationCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
Search for an activity that can receive live calls from Stream Server.
- Parameters:
callId- The call id from the incoming call.notificationId- the notification ID.payload- The payload from Push Notification
-
getMissedCallBundle
Bundle getMissedCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
Search for an activity that can receive missed calls from Stream Server.
- Parameters:
callId- The call id from the incoming call.notificationId- the notification ID.payload- The payload from Push Notification
-
getDefaultBundle
Bundle getDefaultBundle(Map<String, Object> payload)
-
getLiveCallBundle
Bundle getLiveCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
Search for an activity that can receive live calls from Stream Server.
- Parameters:
callId- The call id from the incoming call.notificationId- the notification ID.payload- The payload from Push Notification
-
getAcceptCallBundle
Bundle getAcceptCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
Search for an activity that can accept call from Stream Server.
- Parameters:
callId- The call id from the incoming call.notificationId- the notification ID.payload- The payload from Push Notification
-
getRejectCallBundle
Bundle getRejectCallBundle(StreamCallId callId, Map<String, Object> payload)
Searches for a broadcast receiver that can consume the ACTION_REJECT_CALL intent to reject a call from the Stream Server.
- Parameters:
callId- The ID of the call.payload- The payload from Push Notification
-
getEndCallPendingBundle
Bundle getEndCallPendingBundle(StreamCallId callId, Map<String, Object> payload)
Searches for a broadcast receiver that can consume the ACTION_REJECT_CALL intent to reject a call from the Stream Server.
- Parameters:
callId- The ID of the call.payload- The payload from Push Notification
-
getOngoingCallBundle
Bundle getOngoingCallBundle(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
Searches an activity that will accept the ACTION_ONGOING_CALL intent and jump right back into the call.
- Parameters:
callId- the call idnotificationId- the notification ID.payload- The payload from Push Notification
-
-
-
-