iOS SDK Version

FBSDKAppEventsFlushBehavior

enumFBSDKAppEventsFlushBehavior{}
NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior)
Specifies when FBSDKAppEvents sends log events to the server.
  • Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation.

    Declaration

    Objective-C
    FBSDKAppEventsFlushBehaviorAuto=0
    Swift
    caseauto=0
  • Only flush when the flush method is called. When an app is moved to background/terminated, the events are persisted and re-established at activation, but they will only be written with an explicit call to flush.

    Declaration

    Objective-C
    FBSDKAppEventsFlushBehaviorExplicitOnly
    Swift
    caseexplicitOnly=1