UNPKG

react-native-wonderpush

Version:

Mobile push notification delivery with the WonderPush service. The WonderPush ReactNative SDK is compatible with iOS and Android.

76 lines 3.55 kB
import { type TurboModule, type CodegenTypes } from 'react-native'; export interface Spec extends TurboModule { readonly onNotificationReceived: CodegenTypes.EventEmitter<{ notification: Object; }>; readonly onNotificationOpened: CodegenTypes.EventEmitter<{ notification: Object; buttonIndex: number; }>; readonly onUrlForDeeplink: CodegenTypes.EventEmitter<{ url: string; callbackId: string; }>; setLogging(enable: boolean): Promise<void>; initialize(clientId: string, clientSecret: string): Promise<void>; initializeAndRememberCredentials(clientId: string, clientSecret: string): Promise<void>; getRememberedClientId(): Promise<string>; isInitialized(): Promise<boolean>; subscribeToNotifications(fallbackToSettings: boolean): Promise<void>; unsubscribeFromNotifications(): Promise<void>; isSubscribedToNotifications(): Promise<boolean>; trackEvent(type: string, attributes: Object): Promise<void>; addTag(tags: Array<string>): Promise<void>; removeTag(tags: Array<string>): Promise<void>; removeAllTags(): Promise<void>; hasTag(tag: string): Promise<boolean>; getTags(): Promise<Array<string>>; getPropertyValue(property: string): Promise<any>; getPropertyValues(property: string): Promise<Array<any>>; addProperty(str: string, property: Array<any>): Promise<void>; removeProperty(str: string, property: Array<any>): Promise<void>; setProperty(str: string, property: Array<any>): Promise<void>; unsetProperty(property: string): Promise<void>; putProperties(properties: Object): Promise<void>; getProperties(): Promise<Object>; getCountry(): Promise<string>; setCountry(country: string | null): Promise<void>; getCurrency(): Promise<string>; setCurrency(currency: string | null): Promise<void>; getLocale(): Promise<string>; setLocale(locale: string | null): Promise<void>; getTimeZone(): Promise<string>; setTimeZone(timeZone: string | null): Promise<void>; getUserId(): Promise<string>; setUserId(userId: string): Promise<void>; getDeviceId(): Promise<string>; getInstallationId(): Promise<string>; getPushToken(): Promise<string>; getAccessToken(): Promise<string>; setRequiresUserConsent(isConsent: boolean): Promise<void>; getUserConsent(): Promise<boolean>; setUserConsent(isConsent: boolean): Promise<void>; disableGeolocation(): Promise<void>; enableGeolocation(): Promise<void>; setGeolocation(lat: number, lon: number): Promise<void>; clearEventsHistory(): Promise<void>; clearPreferences(): Promise<void>; clearAllData(): Promise<void>; downloadAllData(): Promise<string | null>; flushDelegateEvents(): Promise<void>; getInitialURL(): Promise<string>; urlForDeeplinkCallback(callbackId: string, url: string | null): void; getDefaultChannelId(): Promise<string>; setDefaultChannelId(id: string): Promise<void>; getChannelGroup(groupId: string): Promise<Object | null>; getChannel(channelId: string): Promise<Object | null>; setChannelGroups(channelGroups: Array<Object>): Promise<void>; setChannels(channels: Array<Object>): Promise<void>; putChannelGroup(channelGroup: Object): Promise<void>; putChannel(channel: Object): Promise<void>; removeChannelGroup(groupId: string): Promise<void>; removeChannel(channelId: string): Promise<void>; } declare const _default: Spec; export default _default; //# sourceMappingURL=NativeWonderPush.d.ts.map