BugReporting class

Constructors

BugReporting()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

platformVersion Future<String?>
no setter

Static Methods

setEnabled(bool isEnabled) Future<void>
Enables and disables manual invocation and prompt options for bug and feedback. boolean isEnabled
setEnabledAttachmentTypes(bool screenshot, bool extraScreenshot, bool galleryImage, bool screenRecording) Future<void>
Sets whether attachments in bug reporting and in-app messaging are enabled or not. screenshot A boolean to enable or disable screenshot attachments. extraScreenshot A boolean to enable or disable extra screenshot attachments. galleryImage A boolean to enable or disable gallery image attachments. In iOS 10+,NSPhotoLibraryUsageDescription should be set in info.plist to enable gallery image attachments. screenRecording A boolean to enable or disable screen recording attachments.
setExtendedBugReportMode(ExtendedBugReportMode extendedBugReportMode) Future<void>
Sets whether the extended bug report mode should be disabled, enabled with required fields or enabled with optional fields. extendedBugReportMode ExtendedBugReportMode enum
setInvocationEvents(List<InvocationEvent>? invocationEvents) Future<void>
Sets the events that invoke the feedback form. Default is set by Instabug.startWithToken. invocationEvents invocationEvent List of events that invokes the
setInvocationOptions(List<InvocationOption>? invocationOptions) Future<void>
Sets the invocation options. Default is set by Instabug.startWithToken. invocationOptions List of invocation options
setOnDismissCallback(Function function) Future<void>
Sets a block of code to be executed just before the SDK's UI is presented. This block is executed on the UI thread. Could be used for performing any UI changes before the SDK's UI is shown. function A callback that gets executed before invoking the SDK
setOnInvokeCallback(Function function) Future<void>
Sets a block of code to be executed just before the SDK's UI is presented. This block is executed on the UI thread. Could be used for performing any UI changes before the SDK's UI is shown. function A callback that gets executed before invoking the SDK
setReportTypes(List<ReportType>? reportTypes) Future<void>
Sets what type of reports, bug or feedback, should be invoked. reportTypes - List of reportTypes
setShakingThresholdForAndroid(int androidThreshold) Future<void>
Sets the threshold value of the shake gesture for android devices. Default for android is an integer value equals 350. you could increase the shaking difficulty level by increasing the 350 value and vice versa androidThreshold iPhoneShakingThreshold int
setShakingThresholdForiPad(double iPadShakingThreshold) Future<void>
Sets the threshold value of the shake gesture for iPad Default for iPhone is 0.6. iPadShakingThreshold iPhoneShakingThreshold double
setShakingThresholdForiPhone(double iPhoneShakingThreshold) Future<void>
Sets the threshold value of the shake gesture for iPhone/iPod Touch Default for iPhone is 2.5. iPhoneShakingThreshold iPhoneShakingThreshold double
show(ReportType reportType, List<InvocationOption>? invocationOptions) Future<void>
Invoke bug reporting with report type and options. reportType type invocationOptions List of invocation options