Changeset View
Changeset View
Standalone View
Standalone View
native/push/android.js
Show All 12 Lines | +createChannel: ( | ||||
importance: number, | importance: number, | ||||
description: ?string, | description: ?string, | ||||
) => void, | ) => void, | ||||
+getConstants: () => { +NOTIFICATIONS_IMPORTANCE_HIGH: number, ... }, | +getConstants: () => { +NOTIFICATIONS_IMPORTANCE_HIGH: number, ... }, | ||||
+setBadge: (count: number) => void, | +setBadge: (count: number) => void, | ||||
+removeAllDeliveredNotifications: () => void, | +removeAllDeliveredNotifications: () => void, | ||||
+hasPermission: () => Promise<boolean>, | +hasPermission: () => Promise<boolean>, | ||||
+getToken: () => Promise<string>, | +getToken: () => Promise<string>, | ||||
+requestNotificationsPermission: () => Promise<boolean>, | |||||
+canRequestNotificationsPermissionFromUser: () => Promise<boolean>, | |||||
+NOTIFICATIONS_IMPORTANCE_HIGH: string, | +NOTIFICATIONS_IMPORTANCE_HIGH: string, | ||||
}; | }; | ||||
export type AndroidForegroundMessage = { | export type AndroidForegroundMessage = { | ||||
+body: string, | +body: string, | ||||
+title: string, | +title: string, | ||||
+threadID: string, | +threadID: string, | ||||
+prefix?: string, | +prefix?: string, | ||||
+messageInfos: ?string, | +messageInfos: ?string, | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |