Package com.sinch.android.rtc
Interface NotificationResult
-
public interface NotificationResult
The NotificationResult is used to indicate the result of a relayed push notification (SinchClient.relayRemotePushNotificationPayload(java.lang.String)
).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CallNotificationResult
getCallResult()
If the push notification is call related (isCall()
is true), this method returns a CallNotificationResult.java.lang.String
getDisplayName()
The display name of the user calling or sending the message, if available.boolean
isCall()
Indicates whether the push notification is call related.boolean
isValid()
Indicates whether the push notification is valid.
-
-
-
Method Detail
-
isValid
boolean isValid()
Indicates whether the push notification is valid.- Returns:
- true if the push notification is valid, otherwise false.
-
isCall
boolean isCall()
Indicates whether the push notification is call related.- Returns:
- true if the push notification is call related, otherwise false.
-
getDisplayName
java.lang.String getDisplayName()
The display name of the user calling or sending the message, if available. Only available when the completeIntent
was forwarded toSinchClient.relayRemotePushNotificationPayload(Intent)
and if the display name was set on the sender side.- Returns:
- String if available, otherwise null
-
getCallResult
CallNotificationResult getCallResult()
If the push notification is call related (isCall()
is true), this method returns a CallNotificationResult.- Returns:
- a CallNotificationResult if the push notification is call related, otherwise null.
-
-