FBXCElementSnapshotWrapper.h 856 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import "FBXCElementSnapshot.h"
  10. #import "FBElement.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface FBXCElementSnapshotWrapper : NSObject<FBXCElementSnapshot>
  13. /*!Wrapped snapshot instance */
  14. @property (nonatomic, readonly) id<FBXCElementSnapshot> snapshot;
  15. /**
  16. Wraps the given snapshot.. If the given snapshot is already wrapped then the result remains unchanged.
  17. @param snapshot snapshot instance to wrap
  18. @returns wrapper instance
  19. */
  20. + (nullable instancetype)ensureWrapped:(nullable id<FBXCElementSnapshot>)snapshot;
  21. @end
  22. NS_ASSUME_NONNULL_END