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 Methods

setCommentMinimumCharacterCount(int limit, [List<ReportType>? reportTypes]) Future<void>
Sets a minimum number of characters as a requirement for the comments field in the different report types. limit int number of characters reportTypes Optional list of ReportType. If it's not passed, the limit will apply to all report types.
setDisclaimerText(String text) Future<void>
Adds a disclaimer text within the bug reporting form, which can include hyperlinked text. text String text
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
setFloatingButtonEdge(FloatingButtonEdge floatingButtonEdge, int offsetFromTop) Future<void>
Sets the floating button position. floatingButtonEdge FloatingButtonEdge enum - left or right edge of the screen. offsetFromTop integer offset for the position on the y-axis.
setInvocationEvents(List<InvocationEvent>? invocationEvents) Future<void>
Sets the events that invoke the feedback form. Default is set by Instabug.init. invocationEvents invocationEvent List of events that invokes the
setInvocationOptions(List<InvocationOption>? invocationOptions) Future<void>
Sets the invocation options. Default is set by Instabug.init. invocationOptions List of invocation options
setOnDismissCallback(OnSDKDismissCallback callback) 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. callback A callback that gets executed before invoking the SDK
setOnInvokeCallback(OnSDKInvokeCallback callback) 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. callback 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 threshold) 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 threshold iPhoneShakingThreshold int
setShakingThresholdForiPad(double threshold) Future<void>
Sets the threshold value of the shake gesture for iPad Default for iPhone is 0.6. threshold iPhoneShakingThreshold double
setShakingThresholdForiPhone(double threshold) Future<void>
Sets the threshold value of the shake gesture for iPhone/iPod Touch Default for iPhone is 2.5. threshold iPhoneShakingThreshold double
setVideoRecordingFloatingButtonPosition(Position position) Future<void>
Sets the position of the video recording button when using the screen recording attachment functionality. position Position of the video recording floating button on the screen.
show(ReportType reportType, List<InvocationOption>? invocationOptions) Future<void>
Invoke bug reporting with report type and options. reportType type invocationOptions List of invocation options