FLBugKit Class Reference
| Inherits from | NSObject |
| Conforms to | MFMailComposeViewControllerDelegate |
| Declared in | FLBugKit.h FLBugKit.m |
Overview
FLBugKit is a utility for filing bugs via email from within an
application.
It is required that the UIApplicationDelegate implement the
FLStandardApplicationBugMetadataProtocol.
When an email for a bug is created a screenshot of the window will be
taken, the FLStandardApplicationBugMetadataProtocol methods will be called to
gather the bug’s metadata, and if the active view controller implements
the FLAdditionalViewControllerBugMetadataProtocol its data will be included as well.
FLBugKit will always include a screenshot, version number (CFBundleShortVersionString),
and build number (CFBundleVersion) in addition to the data returned by
FLStandardApplicationBugMetadataProtocol and FLAdditionalViewControllerBugMetadataProtocol.
Tasks
-
+ sharedInstanceCreates and returns the
sharedInstanceofFLBugKit. If it already exists it simply returns it. -
– startMonitoringWindow:Starts monitoring a window for a bug gesture event using the
UIGestureRecognizerinstance provided by the implementation of theFLStandardApplicationBugMetadataProtocolby thesharedApplicationdelegate. -
– stopMonitoringWindow:Removes the
UIGestureRecognizerfrom theUIWindowthat was attached withstartMonitoringWindow:. -
– presentBugMailerForKeyWindowProgramatically present the bug mailer without waiting for a
UIWindowgesture recognizer to be raised. ThekeyWindowfor thesharedApplicationwill be used to retrieve
Class Methods
sharedInstance
Creates and returns the sharedInstance of FLBugKit. If it already
exists it simply returns it.
+ (FLBugKit *)sharedInstanceReturn Value
the application’s shared instance of FLBugKit
Discussion
Creates and returns the sharedInstance of FLBugKit. If it already
exists it simply returns it.
Declared In
FLBugKit.hInstance Methods
presentBugMailerForKeyWindow
Programatically present the bug mailer without waiting for a UIWindow
gesture recognizer to be raised. The keyWindow for the sharedApplication
will be used to retrieve
- (void)presentBugMailerForKeyWindowDiscussion
Programatically present the bug mailer without waiting for a UIWindow
gesture recognizer to be raised. The keyWindow for the sharedApplication
will be used to retrieve
Declared In
FLBugKit.hstartMonitoringWindow:
Starts monitoring a window for a bug gesture event using the
UIGestureRecognizer instance provided by the implementation of
the FLStandardApplicationBugMetadataProtocol by the sharedApplication
delegate.
- (void)startMonitoringWindow:(UIWindow *)windowParameters
- window
The window instance that will be monitored
Discussion
Starts monitoring a window for a bug gesture event using the
UIGestureRecognizer instance provided by the implementation of
the FLStandardApplicationBugMetadataProtocol by the sharedApplication
delegate.
Declared In
FLBugKit.hstopMonitoringWindow:
Removes the UIGestureRecognizer from the UIWindow that was attached
with startMonitoringWindow:.
- (void)stopMonitoringWindow:(UIWindow *)windowParameters
- window
The window that will stopped being monitored
Discussion
Removes the UIGestureRecognizer from the UIWindow that was attached
with startMonitoringWindow:.
Declared In
FLBugKit.h