@fullstory/react-native
Version:
The official FullStory React Native plugin
28 lines • 1.09 kB
TypeScript
import type { TurboModule } from 'react-native';
import type { EventEmitter } from 'react-native/Libraries/Types/CodegenTypes';
export type FSSessionData = {
replayStartUrl: string;
replayNowUrl: string;
sessionId: string;
};
export interface Spec extends TurboModule {
anonymize(): void;
identify(uid: string, userVars?: Object): void;
setUserVars(userVars: Object): void;
onReady(): Promise<FSSessionData>;
getCurrentSession(): Promise<string>;
getCurrentSessionURL(): Promise<string>;
consent(userConsents: boolean): void;
event(eventName: string, eventProperties: Object): void;
shutdown(): void;
restart(): void;
log(logLevel: number, message: string): void;
resetIdleTimer(): void;
startPage(nonce: string, pageName: string, pageProperties?: Object): void;
endPage(uuid: string): void;
updatePage(uuid: string, pageProperties: Object): void;
readonly onSessionStarted: EventEmitter<FSSessionData>;
}
declare const _default: Spec | null;
export default _default;
//# sourceMappingURL=NativeFullStory.d.ts.map