RCTDisplayLink.h 537 B

123456789101112131415161718192021
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <Foundation/Foundation.h>
  8. @protocol RCTBridgeModule;
  9. @class RCTModuleData;
  10. @interface RCTDisplayLink : NSObject
  11. - (instancetype)init;
  12. - (void)invalidate;
  13. - (void)registerModuleForFrameUpdates:(id<RCTBridgeModule>)module
  14. withModuleData:(RCTModuleData *)moduleData;
  15. - (void)addToRunLoop:(NSRunLoop *)runLoop;
  16. @end