Class CommonCallAgent
- Object
-
- CommonCallAgent
-
- Direct Known Subclasses:
CallAgent
,TeamsCallAgent
public abstract class CommonCallAgent extends Object
Common call agent base class to represent extended call agent classes created by the CallClient factory method createCallAgent It bears the responsibility of managing calls on behalf of the authenticated user
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Releases all the resources held by Base CallAgent.protected void
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.CommunicationCallType
getType()
Informs how video frames will be available for encoding or decoding.CompletableFuture<Void>
handlePushNotification(PushNotificationInfo notification)
Handle the push notification.CompletableFuture<Void>
registerPushNotification(String deviceRegistrationToken)
Register the current device for receiving Incoming Calls Push notification alerts.CompletableFuture<Void>
unregisterPushNotification()
Unregister all previously registered devices from receiving incoming calls push notifications.
-
-
-
Method Detail
-
finalize
protected void finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.- Overrides:
finalize
in classObject
-
getType
public CommunicationCallType getType()
Informs how video frames will be available for encoding or decoding.
-
handlePushNotification
public CompletableFuture<Void> handlePushNotification(PushNotificationInfo notification)
Handle the push notification. If successful, will raise appropriate incoming call event.
-
unregisterPushNotification
public CompletableFuture<Void> unregisterPushNotification()
Unregister all previously registered devices from receiving incoming calls push notifications.
-
dispose
public void dispose()
Releases all the resources held by Base CallAgent. Base CallAgent should be destroyed/nullified after dispose.
-
registerPushNotification
public CompletableFuture<Void> registerPushNotification(String deviceRegistrationToken)
Register the current device for receiving Incoming Calls Push notification alerts.- Parameters:
deviceRegistrationToken
- Device registration token obtained from the FCM/GCM SDK.
-
-