UNPKG

react-native-moengage

Version:

MoEngage is a mobile marketing automation company. This react-native SDK helps you track events, trigger smart notifications and in-apps, provides a drop-in Inbox Controller for notifications.

25 lines (22 loc) 772 B
/** * Config class for Push Notification * Note: This Config is only for Android platform and is a no-operation method for other plaforms. */ export default class MoEPushConfig { shouldDeliverCallbackOnForegroundClick: boolean; /** * Create an instance of {@link MoEPushConfig} * * @param shouldDeliverCallbackOnForegroundClick true to handle the callback in the hybrid side * if notification is clicked in foreground, */ constructor (shouldDeliverCallbackOnForegroundClick: boolean) { this.shouldDeliverCallbackOnForegroundClick = shouldDeliverCallbackOnForegroundClick; } /** * Default Config for {@link MoEPushConfig} */ static defaultConfig() { return new MoEPushConfig(false); } }