mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at verify-code 41 lines 1.5 kB view raw
1export type ExpoBackgroundNotificationHandlerModule = { 2 getAllPrefsAsync: () => Promise<BackgroundNotificationHandlerPreferences> 3 getBoolAsync: (forKey: string) => Promise<boolean> 4 getStringAsync: (forKey: string) => Promise<string> 5 getStringArrayAsync: (forKey: string) => Promise<string[]> 6 setBoolAsync: ( 7 forKey: keyof BackgroundNotificationHandlerPreferences, 8 value: boolean, 9 ) => Promise<void> 10 setStringAsync: ( 11 forKey: keyof BackgroundNotificationHandlerPreferences, 12 value: string, 13 ) => Promise<void> 14 setStringArrayAsync: ( 15 forKey: keyof BackgroundNotificationHandlerPreferences, 16 value: string[], 17 ) => Promise<void> 18 addToStringArrayAsync: ( 19 forKey: keyof BackgroundNotificationHandlerPreferences, 20 value: string, 21 ) => Promise<void> 22 removeFromStringArrayAsync: ( 23 forKey: keyof BackgroundNotificationHandlerPreferences, 24 value: string, 25 ) => Promise<void> 26 addManyToStringArrayAsync: ( 27 forKey: keyof BackgroundNotificationHandlerPreferences, 28 value: string[], 29 ) => Promise<void> 30 removeManyFromStringArrayAsync: ( 31 forKey: keyof BackgroundNotificationHandlerPreferences, 32 value: string[], 33 ) => Promise<void> 34 setBadgeCountAsync: (count: number) => Promise<void> 35} 36 37// TODO there are more preferences in the native code, however they have not been added here yet. 38// Don't add them until the native logic also handles the notifications for those preference types. 39export type BackgroundNotificationHandlerPreferences = { 40 playSoundChat: boolean 41}