Class PushNotificationInfo


  • public final class PushNotificationInfo
    extends Object
    Describes an incoming call
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()
      Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
      static PushNotificationInfo fromMap​(Map<String,​String> payload)
      Retrieve IncomingCallInformation from FCM/GCM push notification payload
      UUID getCallId()
      Get the UUID representing the call id
      PushNotificationEventType getEventType()
      Type of Push Notification Event
      CommunicationIdentifier getFrom()
      Get the CommunicationIdentifier representing the Call initiator
      String getFromDisplayName()
      Gets the display name of the caller
      CommunicationIdentifier getTo()
      Get the CommunicationIdentifier representing the Callee
      boolean isIncomingWithVideo()
      Indicates whether the incoming call has a video or not
      • Methods inherited from class Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class Object
      • getFromDisplayName

        public String getFromDisplayName()
        Gets the display name of the caller
      • isIncomingWithVideo

        public boolean isIncomingWithVideo()
        Indicates whether the incoming call has a video or not
      • getFrom

        public CommunicationIdentifier getFrom()
        Get the CommunicationIdentifier representing the Call initiator
        Returns:
        a CommunicationIdentifier object representing the call initiator.
      • getTo

        public CommunicationIdentifier getTo()
        Get the CommunicationIdentifier representing the Callee
        Returns:
        a CommunicationIdentifier object representing the callee.
      • getCallId

        public UUID getCallId()
        Get the UUID representing the call id
        Returns:
        a UUID representing the call id
      • fromMap

        public static PushNotificationInfo fromMap​(Map<String,​String> payload)
        Retrieve IncomingCallInformation from FCM/GCM push notification payload
        Parameters:
        payload - a dictionary representing the push notification payload from FCM/GCM
        Returns:
        IncomingCallInformation an object representing details of the push notification information