FBScreenRecordingPromise.m 712 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. *
  3. * Copyright (c) 2015-present, Facebook, Inc.
  4. * All rights reserved.
  5. *
  6. * This source code is licensed under the BSD-style license found in the
  7. * LICENSE file in the root directory of this source tree. An additional grant
  8. * of patent rights can be found in the PATENTS file in the same directory.
  9. */
  10. #import "FBScreenRecordingPromise.h"
  11. @interface FBScreenRecordingPromise ()
  12. @property (readwrite) id nativePromise;
  13. @end
  14. @implementation FBScreenRecordingPromise
  15. - (instancetype)initWithNativePromise:(id)promise
  16. {
  17. if ((self = [super init])) {
  18. self.nativePromise = promise;
  19. }
  20. return self;
  21. }
  22. - (NSUUID *)identifier
  23. {
  24. return (NSUUID *)[self.nativePromise valueForKey:@"_UUID"];
  25. }
  26. @end