UNPKG

cordova-plugin-appcenter-crashes

Version:
48 lines (39 loc) 1.36 kB
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. interface Attachments { addTextAttachment(title: string, filename: string); addBinaryAttachment(base64string: string, filename: string, mimeType: string); } declare namespace AppCenter { let Crashes: { generateTestCrash(error: (error: any) => void); hasCrashedInLastSession( success: (result: boolean) => void, error: (error: any) => void ): void; hasReceivedMemoryWarningInLastSession( success: (result: boolean) => void, error: (error: any) => void ): void; lastSessionCrashReport( success: (report: {}) => void, error: (error: any) => void ): void; isEnabled( success: (isEnabled: boolean) => void, error: (error: any) => void ): void; setEnabled( shouldEnable: boolean, success: () => void, error: (error: any) => void ): void; process( processorFunction: ( attachments: Attachments, sendCallback: (response: any) => void ) => void, errorCallback: (error: any) => void ): void; }; }