Protocols

  • The BuglifeDelegate protocol provides a mechanism for your application to configure certain aspects of the Buglife reporter UI.

    See more

    Declaration

    Objective-C

    @protocol BuglifeDelegate <NSObject>

    Swift

    protocol BuglifeDelegate : NSObjectProtocol
  • UIView subclasses that contain potentially sensitive information may adopt this protocol so that their contents are automatically blurred whenever Buglife captures a screenshot.

    For example, a UIView subclass for credit card entry should adopt this protocol so that a user’s credit card is obscured prior to screenshot capturing.

    See more

    Declaration

    Objective-C

    @protocol LIFEBlurrableView <UICoordinateSpace>

    Swift

    protocol LIFEBlurrableView
  • To customize the visual appearance of Buglife views & view controllers, get an instance of an object conforming to this protocol using the Buglife.appearance property, then use any of that object’s corresponding LIFEAppearance properties.

    Example:

      // Objective-C
      [Buglife sharedBuglife].appearance.tintColor = [UIColor redColor];
    
      // Swift
      Buglife.shared().apperance.tintColor = .red
    
    See more

    Declaration

    Objective-C

    @protocol LIFEAppearance <NSObject>

    Swift

    protocol LIFEAppearance