@ua/react-native-airship
Version:
Airship plugin for React Native apps.
35 lines • 1.06 kB
TypeScript
import { CustomEvent } from "./types";
/**
* Airship analytics.
*/
export declare class AirshipAnalytics {
private readonly module;
constructor(module: any);
/**
* Associates an identifier.
*
* @param key The key.
* @param identifier The identifier. `null` to remove.
* @returns A promise.
*/
associateIdentifier(key: string, identifier?: string): Promise<void>;
/**
* Tracks a screen.
* @param screen The screen. `null` to stop tracking.
* @returns A promise.
*/
trackScreen(screen?: string): Promise<void>;
/**
* Adds a custom event.
* @param event The custom event.
* @return A promise that returns null if resolved, or an Error if the
* custom event is rejected.
*/
addCustomEvent(event: CustomEvent): Promise<void>;
/**
* Gets the Airship session ID. The session ID is a UUID that updates on foreground and background.
* @returns A promise.
*/
getSessionId(): Promise<string>;
}
//# sourceMappingURL=AirshipAnalytics.d.ts.map