PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/react-native/ReactAndroid/src/main/jni/react/fabric
Просмотр файла: SurfaceHandlerBinding.h
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <shared_mutex>
#include <fbjni/fbjni.h>
#include <react/jni/ReadableNativeMap.h>
#include <react/renderer/scheduler/SurfaceHandler.h>
namespace facebook::react {
class SurfaceHandlerBinding : public jni::HybridClass<SurfaceHandlerBinding> {
public:
constexpr static const char* const kJavaDescriptor =
"Lcom/facebook/react/fabric/SurfaceHandlerBinding;";
static void registerNatives();
SurfaceHandlerBinding(SurfaceId surfaceId, const std::string& moduleName);
void setDisplayMode(jint mode);
jint getSurfaceId();
jni::local_ref<jstring> getModuleName();
jboolean isRunning();
void setLayoutConstraints(
jfloat minWidth,
jfloat maxWidth,
jfloat minHeight,
jfloat maxHeight,
jfloat offsetX,
jfloat offsetY,
jboolean doLeftAndRightSwapInRTL,
jboolean isRTL,
jfloat pixelDensity,
jfloat fontScale);
void setProps(NativeMap* props);
const SurfaceHandler& getSurfaceHandler();
private:
const SurfaceHandler surfaceHandler_;
static void initHybrid(
jni::alias_ref<jhybridobject> jobj,
jint surfaceId,
jni::alias_ref<jstring> moduleName);
};
} // namespace facebook::react
Выполнить команду
Для локальной разработки. Не используйте в интернете!