onesignal-cordova-plugin
Version:
OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, and automate notifications that you send.
42 lines (41 loc) • 1.06 kB
TypeScript
export declare class OSNotification {
body: string;
sound?: string;
title?: string;
launchURL?: string;
rawPayload: string;
actionButtons?: object[];
additionalData: object;
notificationId: string;
groupKey?: string;
groupMessage?: string;
groupedNotifications?: object[];
ledColor?: string;
priority?: number;
smallIcon?: string;
largeIcon?: string;
bigPicture?: string;
collapseId?: string;
fromProjectNumber?: string;
smallIconAccentColor?: string;
lockScreenVisibility?: string;
androidNotificationId?: number;
badge?: string;
badgeIncrement?: string;
category?: string;
threadId?: string;
subtitle?: string;
templateId?: string;
templateName?: string;
attachments?: object;
mutableContent?: boolean;
contentAvailable?: string;
relevanceScore?: number;
interruptionLevel?: string;
constructor(receivedEvent: OSNotification);
/**
* Display the notification.
* @returns void
*/
display(): void;
}