Fabric

@interface Fabric : NSObject

Fabric Base. Coordinates configuration and starts all provided kits.

  • Initialize Fabric and all provided kits. Call this method within your App Delegate’s application:didFinishLaunchingWithOptions: and provide the kits you wish to use.

    For example, in Objective-C:

      `[Fabric with:@[[Crashlytics class], [Twitter class], [Digits class], [MoPub class]]];`
    

    Swift:

      `Fabric.with([Crashlytics.self(), Twitter.self(), Digits.self(), MoPub.self()])`
    

    Only the first call to this method is honored. Subsequent calls are no-ops.

    Declaration

    Swift

    class func with(_ kitClasses: [Any]) -> Self

    Objective-C

    + (nonnull instancetype)with:(nonnull NSArray *)kitClasses;

    Parameters

    kitClasses

    An array of kit Class objects

    Return Value

    Returns the shared Fabric instance. In most cases this can be ignored.

  • Returns the Fabric singleton object.

    Declaration

    Swift

    class func sharedSDK() -> Self

    Objective-C

    + (nonnull instancetype)sharedSDK;
  • This BOOL enables or disables debug logging, such as kit version information. The default value is NO.

    Declaration

    Swift

    var debug: Bool { get set }

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL debug;
  • Unavailable. Use +sharedSDK to retrieve the shared Fabric instance.

    Declaration

    Objective-C

    - (nonnull id)init;
  • Unavailable. Use +sharedSDK to retrieve the shared Fabric instance.

    Declaration

    Objective-C

    + (nonnull instancetype) new;