UNPKG

@nativescript/firebase-crashlytics

Version:
25 lines (24 loc) 883 B
import { FirebaseApp } from '@nativescript/firebase-core'; import { ICrashlytics } from './common'; export declare class Crashlytics implements ICrashlytics { _native: FIRCrashlytics; constructor(); get native(): FIRCrashlytics; get ios(): FIRCrashlytics; _app: FirebaseApp; get app(): FirebaseApp; get isCrashlyticsCollectionEnabled(): boolean; checkForUnsentReports(): Promise<boolean>; crash(): void; deleteUnsentReports(): void; didCrashOnPreviousExecution(): boolean; log(message: string): void; recordError(error: any): void; sendUnsentReports(): void; setAttribute(name: string, value: string | number | boolean): void; setAttributes(attributes: { [key: string]: string | number | boolean; }): void; setCrashlyticsCollectionEnabled(enabled: boolean): void; setUserId(userId: string): void; }