Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
witchsky modules expo-background-notification-handler src ExpoBackgroundNotificationHandler.types.ts
1.5 kB · 41 lines
TypeScript
at commit 5efae600
123456789101112131415161718192021222324252627282930313233343536373839404142export type ExpoBackgroundNotificationHandlerModule = { getAllPrefsAsync: () => Promise<BackgroundNotificationHandlerPreferences> getBoolAsync: (forKey: string) => Promise<boolean> getStringAsync: (forKey: string) => Promise<string> getStringArrayAsync: (forKey: string) => Promise<string[]> setBoolAsync: ( forKey: keyof BackgroundNotificationHandlerPreferences, value: boolean, ) => Promise<void> setStringAsync: ( forKey: keyof BackgroundNotificationHandlerPreferences, value: string, ) => Promise<void> setStringArrayAsync: ( forKey: keyof BackgroundNotificationHandlerPreferences, value: string[], ) => Promise<void> addToStringArrayAsync: ( forKey: keyof BackgroundNotificationHandlerPreferences, value: string, ) => Promise<void> removeFromStringArrayAsync: ( forKey: keyof BackgroundNotificationHandlerPreferences, value: string, ) => Promise<void> addManyToStringArrayAsync: ( forKey: keyof BackgroundNotificationHandlerPreferences, value: string[], ) => Promise<void> removeManyFromStringArrayAsync: ( forKey: keyof BackgroundNotificationHandlerPreferences, value: string[], ) => Promise<void> setBadgeCountAsync: (count: number) => Promise<void>}
// TODO there are more preferences in the native code, however they have not been added here yet.// Don't add them until the native logic also handles the notifications for those preference types.export type BackgroundNotificationHandlerPreferences = { playSoundChat: boolean}