mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9e7d918365
Summary: This diff introduces the concept of EventBeatManager, this is a class that acts as a proxy between the list of EventBeats registered in C++ and the Android side. Reviewed By: shergin Differential Revision: D10127857 fbshipit-source-id: a1956ca42d4c470fbc11cc9f30336a182fe7910c
32 lines
1.0 KiB
Java
32 lines
1.0 KiB
Java
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
|
|
* directory of this source tree.
|
|
*/
|
|
package com.facebook.react.fabric;
|
|
|
|
import com.facebook.react.bridge.JavaScriptContextHolder;
|
|
import com.facebook.react.bridge.NativeMap;
|
|
|
|
public interface FabricBinding {
|
|
|
|
// TODO: T31905686 change types of UIManager and EventBeatManager when moving to OSS
|
|
void installFabric(
|
|
JavaScriptContextHolder jsContext, FabricBinder fabricBinder, Object eventBeatManager);
|
|
|
|
void releaseEventTarget(long jsContextNativePointer, long eventTargetPointer);
|
|
|
|
void releaseEventHandler(long jsContextNativePointer, long eventHandlerPointer);
|
|
|
|
void dispatchEventToEmptyTarget(
|
|
long jsContextNativePointer, long eventHandlerPointer, String type, NativeMap payload);
|
|
|
|
void dispatchEventToTarget(
|
|
long jsContextNativePointer,
|
|
long eventHandlerPointer,
|
|
long eventTargetPointer,
|
|
String type,
|
|
NativeMap payload);
|
|
}
|