-
- All Implemented Interfaces:
-
io.getstream.video.android.core.notifications.StreamIncomingCallFullScreenIntentResolver,io.getstream.video.android.core.notifications.StreamIntentResolver,io.getstream.video.android.core.notifications.StreamIntentResolverWithPayload
public final class DefaultStreamIntentResolver implements StreamIntentResolver, StreamIncomingCallFullScreenIntentResolver
-
-
Field Summary
Fields Modifier and Type Field Description private final Contextcontextprivate final NotificationIntentBundleResolvernotificationIntentBundleResolver
-
Constructor Summary
Constructors Constructor Description DefaultStreamIntentResolver(Context context, NotificationIntentBundleResolver notificationIntentBundleResolver)
-
Method Summary
Modifier and Type Method Description final ContextgetContext()final NotificationIntentBundleResolvergetNotificationIntentBundleResolver()PendingIntentsearchIncomingCallPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive incoming calls from Stream Server. PendingIntentsearchOutgoingCallPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that is used for outgoing calls. PendingIntentsearchNotificationCallPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive live calls from Stream Server. PendingIntentsearchMissedCallPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive missed calls from Stream Server. PendingIntentgetDefaultPendingIntent(Map<String, Object> payload)PendingIntentsearchLiveCallPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can receive live calls from Stream Server. PendingIntentsearchAcceptCallPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)Search for an activity that can accept call from Stream Server. PendingIntentsearchRejectCallPendingIntent(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. PendingIntentsearchEndCallPendingIntent(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. PendingIntentsearchOngoingCallPendingIntent(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. PendingIntentsearchIncomingCallFullScreenPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)-
Methods inherited from class io.getstream.video.android.core.notifications.DefaultStreamIntentResolver
getDefaultPendingIntent, searchAcceptCallPendingIntent, searchEndCallPendingIntent, searchIncomingCallPendingIntent, searchLiveCallPendingIntent, searchMissedCallPendingIntent, searchNotificationCallPendingIntent, searchOngoingCallPendingIntent, searchOutgoingCallPendingIntent, searchRejectCallPendingIntent -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DefaultStreamIntentResolver
DefaultStreamIntentResolver(Context context, NotificationIntentBundleResolver notificationIntentBundleResolver)
-
-
Method Detail
-
getContext
final Context getContext()
-
getNotificationIntentBundleResolver
final NotificationIntentBundleResolver getNotificationIntentBundleResolver()
-
searchIncomingCallPendingIntent
PendingIntent searchIncomingCallPendingIntent(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
-
searchOutgoingCallPendingIntent
PendingIntent searchOutgoingCallPendingIntent(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
-
searchNotificationCallPendingIntent
PendingIntent searchNotificationCallPendingIntent(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
-
searchMissedCallPendingIntent
PendingIntent searchMissedCallPendingIntent(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
-
getDefaultPendingIntent
PendingIntent getDefaultPendingIntent(Map<String, Object> payload)
-
searchLiveCallPendingIntent
PendingIntent searchLiveCallPendingIntent(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
-
searchAcceptCallPendingIntent
PendingIntent searchAcceptCallPendingIntent(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
-
searchRejectCallPendingIntent
PendingIntent searchRejectCallPendingIntent(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
-
searchEndCallPendingIntent
PendingIntent searchEndCallPendingIntent(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
-
searchOngoingCallPendingIntent
PendingIntent searchOngoingCallPendingIntent(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
-
searchIncomingCallFullScreenPendingIntent
PendingIntent searchIncomingCallFullScreenPendingIntent(StreamCallId callId, Integer notificationId, Map<String, Object> payload)
-
-
-
-