RCTDisplayLink.h 513 B

1234567891011121314151617181920
  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 withModuleData:(RCTModuleData *)moduleData;
  14. - (void)addToRunLoop:(NSRunLoop *)runLoop;
  15. @end