UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

27 lines (26 loc) 970 B
import { CallNotificationResult } from "./CallNotificationResult"; /** * The NotificationResult is used to indicate the result of a relayed push notification {@link SinchClient.relayRemotePushNotification}. */ export interface NotificationResult { /** * Indicates whether the push notification is valid. * * @returns true if the push notification is valid, otherwise false. */ isValid(): boolean; /** * The display name of the user calling or sending the message, if available. * Only available when the complete <code>Intent</code> was forwarded to {@link SinchClient.relayRemotePushNotification} * and if the display name was set on the sender side. * * @returns String if available, otherwise undefined */ displayName?: string; /** * This method returns a CallNotificationResult. * * @returns a CallNotificationResult */ callNotificationResult: CallNotificationResult; }