PushNotificationInfo Class

  • java.lang.Object
    • com.azure.android.communication.calling.PushNotificationInfo

public class PushNotificationInfo

Describes an incoming call

Method Summary

Modifier and Type Method and Description
void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

PushNotificationInfo fromMap(Map<String, String> payload)

Retrieve IncomingCallInformation from FCM/GCM push notification payload

java.util.UUID getCallId()

Get the UUID representing the call id

PushNotificationEventType getEventType()

Type of Push Notification Event

com.azure.android.communication.common.CommunicationIdentifier getFrom()

Get the CommunicationIdentifier representing the Call initiator

String getFromDisplayName()

Gets the display name of the caller

com.azure.android.communication.common.CommunicationIdentifier getTo()

Get the CommunicationIdentifier representing the Callee

boolean isIncomingWithVideo()

Indicates whether the incoming call has a video or not

Method Details

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.

fromMap

public static PushNotificationInfo fromMap(Map 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

getCallId

public java.util.UUID getCallId()

Get the UUID representing the call id

Returns:

a UUID representing the call id

getEventType

public PushNotificationEventType getEventType()

Type of Push Notification Event

getFrom

public com.azure.android.communication.common.CommunicationIdentifier getFrom()

Get the CommunicationIdentifier representing the Call initiator

Returns:

a CommunicationIdentifier object representing the call initiator.

getFromDisplayName

public String getFromDisplayName()

Gets the display name of the caller

getTo

public com.azure.android.communication.common.CommunicationIdentifier getTo()

Get the CommunicationIdentifier representing the Callee

Returns:

a CommunicationIdentifier object representing the callee.

isIncomingWithVideo

public boolean isIncomingWithVideo()

Indicates whether the incoming call has a video or not

Applies to