FBSDKAppEventsStateManager.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. #import <FBSDKCoreKit/FBSDKAppEventsStatePersisting.h>
  9. #import <Foundation/Foundation.h>
  10. @class FBSDKAppEventsState;
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. Internal type exposed to facilitate transition to Swift.
  14. API Subject to change or removal without warning. Do not use.
  15. @warning INTERNAL - DO NOT USE
  16. */
  17. NS_SWIFT_NAME(_AppEventsStateManager)
  18. @interface FBSDKAppEventsStateManager : NSObject <FBSDKAppEventsStatePersisting>
  19. @property (class, nonatomic, readonly) FBSDKAppEventsStateManager *shared;
  20. - (void)clearPersistedAppEventsStates;
  21. // reads all saved event states, appends the param, and writes them all.
  22. - (void)persistAppEventsData:(FBSDKAppEventsState *)appEventsState;
  23. // returns the array of saved app event states and deletes them.
  24. - (NSArray<FBSDKAppEventsState *> *)retrievePersistedAppEventsStates;
  25. @end
  26. NS_ASSUME_NONNULL_END