react-native-bugbattle-sdk
Version:
In-App Bug Reporting and Testing for Apps. Learn more at https://www.bugbattle.io
32 lines (31 loc) • 1.31 kB
TypeScript
declare type BugbattleSdkType = {
NONE: 'NONE';
SHAKE: 'SHAKE';
SCREENSHOT: 'SCREENSHOT';
initialize(key: string, activationMethod: 'NONE' | 'SHAKE' | 'SCREENSHOT'): void;
initializeMany(key: string, activationMethods: ('NONE' | 'SHAKE' | 'SCREENSHOT')[]): void;
autoConfigure(token: string): void;
startBugReporting(): void;
setCustomerEmail(email: string): void;
setCustomerName(name: string): void;
attachCustomData(customData: any): void;
setCustomData(key: string, value: string): void;
removeCustomData(key: string): void;
clearCustomData(): void;
enablePrivacyPolicy(enable: boolean): void;
enableReplays(enable: boolean): void;
sendSilentBugReport(senderEmail: string, description: string, priority: 'LOW' | 'MEDIUM' | 'HIGH'): void;
setPrivacyPolicyUrl(privacyUrl: string): void;
setApiUrl(apiUrl: string): void;
setLanguage(language: string): void;
startNetworkLogging(): void;
setColor(hexColor: string): void;
enablePoweredByBugbattle(enable: boolean): void;
setLogoUrl(logoUrl: string): void;
registerCustomAction(customActionCallback: (data: {
name: string;
}) => void): void;
logEvent(name: string, data: any): void;
};
declare const _default: BugbattleSdkType;
export default _default;