NotificationCenter
The NotificationCenter model represents an interface that is responsible for providing the VideoCapturer on demand for the Media Engine. Implements are responsible for tracking the capturers that are sent to the engine. The SDK does not manage the switch when a switchable capturer is provided. The switch needs to be managed by the provider.
Available in the package com.voxeet.sdk.push.center.NotificationCenter.
Methods
setEnforcedNotificationMode
▸ setEnforcedNotificationMode(@NonNull enforcedNotificationMode
: EnforcedNotificationMode): NotificationCenter
Changes the notification management mode into the enforcedNotificationMode.
Parameters
Name | Type | Description |
---|---|---|
enforcedNotificationMode | EnforcedNotificationMode | non null a new mode |
Returns: NotificationCenter - the current instance.
register
▸ register(@NonNull notificationMode
: NotificationMode, @Nullable invitationProvider
: IIncomingInvitationListener): NotificationCenter
Registers the IIncomingInvitationListener model dedicated to the NotificationMode and replaces the prevoiusly used model if the NotificationMode has already an attached listener.
Parameters
Name | Type | Description |
---|---|---|
notificationMode | NotificationMode | non null valid NotificationMode that receives the provider |
invitationProvider | IIncomingInvitationListener | nullable instance to register |
Returns: NotificationCenter - the current instance.
register
▸ register(@NonNull notificationMode
: NotificationMode, @NonNull filter
: VersionFilter): NotificationCenter
Registers the VersionFilter model for the specified NotificationMode.
Parameters
Name | Type | Description |
---|---|---|
notificationMode | NotificationMode | non null valid NotificationMode that receives the filter |
filter | VersionFilter | non null filter to apply |
Returns: NotificationCenter - the current instance.
onInvitationReceived
▸ onInvitationReceived(@NonNull context
: Context, @NonNull invitationBundle
: InvitationBundle): void
Method called by the SDK when a WebSocket or a plugin receives a push notification concerning an invitation.
It is possible to use this method when the SDK works in a system that is not Firebase compatible or different library is used. If external push notifications are managed elsewhere, then transform the Bundle or data to a valid InvitationBundle model.
Parameters
Name | Type | Description |
---|---|---|
context | Context | non null valid context to use |
invitationBundle | InvitationBundle | non null InvitationBundle instance |
onInvitationCanceledReceived
▸ onInvitationCanceledReceived(@NonNull context
: Context, @NonNull conferenceId
: String): String
Method called by the SDK when WebSocket or a plugin receives a push notification concerning a cancelled invitation.
It is possible to use this method when the SDK works on a system that is not Firebase compatible or different library is used. If external push notifications are managed elsewhere, then transform the Bundle or data to a valid InvitationBundle model.
Parameters
Name | Type | Description |
---|---|---|
context | Context | non null valid context to use |
conferenceId | String | non null |
Returns: @NonNull String - the corresponding conference ID
Updated about 1 year ago