UNPKG

expo-quest-notifications

Version:

A fork of [`expo-notifications`](https://github.com/expo/expo/tree/main/packages/expo-notifications) that provides two implementations: - The default `expo-notifications` for Android and iOS platforms. - A Meta Quest-compatible implementation that uses th

35 lines (30 loc) 1.08 kB
import { ProxyNativeModule } from 'expo-modules-core'; import { NotificationChannel } from './NotificationChannelManager.types'; /** * An object which represents a notification channel group. * @platform android */ export interface NotificationChannelGroup { id: string; name: string | null; description?: string | null; isBlocked?: boolean; channels: NotificationChannel[]; } /** * An object which represents a notification channel group to be set. * @platform android */ export interface NotificationChannelGroupInput { name: string | null; description?: string | null; } export interface NotificationChannelGroupManager extends ProxyNativeModule { getNotificationChannelGroupsAsync?: () => Promise<NotificationChannelGroup[]>; getNotificationChannelGroupAsync?: (groupId: string) => Promise<NotificationChannelGroup | null>; setNotificationChannelGroupAsync?: ( groupId: string, group: NotificationChannelGroupInput ) => Promise<NotificationChannelGroup | null>; deleteNotificationChannelGroupAsync?: (groupId: string) => Promise<void>; }