FIRFirestoreSettings


@interface FIRFirestoreSettings : NSObject <NSCopying>

Settings used to configure a FIRFirestore instance.

  • Creates and returns an empty FIRFirestoreSettings object.

    Declaration

    Swift

    init()

    Objective-C

    - (nonnull instancetype)init;

    Return Value

    The created FIRFirestoreSettings object.

  • The hostname to connect to.

    Declaration

    Swift

    var host: String { get set }

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *_Nonnull host;
  • Whether to use SSL when connecting.

    Declaration

    Swift

    var isSSLEnabled: Bool { get set }

    Objective-C

    @property (getter=isSSLEnabled, assign, readwrite, nonatomic) BOOL sslEnabled;
  • A dispatch queue to be used to execute all completion handlers and event handlers. By default, the main queue is used.

    Declaration

    Swift

    var dispatchQueue: DispatchQueue { get set }

    Objective-C

    @property (readwrite, strong, nonatomic) dispatch_queue_t _Nonnull dispatchQueue;
  • Set to false to disable local persistent storage.

    Declaration

    Swift

    var isPersistenceEnabled: Bool { get set }

    Objective-C

    @property (getter=isPersistenceEnabled, assign, readwrite, nonatomic)
        BOOL persistenceEnabled;