mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Differential Revision: D34518929 (https://github.com/facebook/react-native/commit/dd6325bafe1a539d348f3710e717a6344576b859) Original commit changeset: 410a05263a56 Original Phabricator Diff: D34518929 (https://github.com/facebook/react-native/commit/dd6325bafe1a539d348f3710e717a6344576b859) fbshipit-source-id: 114d0910970c5f5caefb98c378722faba283f2a1
75 lines
2.2 KiB
Java
75 lines
2.2 KiB
Java
/*
|
|
* 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.
|
|
*/
|
|
|
|
package com.facebook.react.uimanager;
|
|
|
|
import android.view.View;
|
|
import androidx.annotation.Nullable;
|
|
import com.facebook.react.bridge.Dynamic;
|
|
import com.facebook.react.bridge.ReadableArray;
|
|
import com.facebook.react.bridge.ReadableMap;
|
|
|
|
/**
|
|
* This is an interface that should be implemented by view managers supporting the base view
|
|
* properties such as backgroundColor, opacity, etc.
|
|
*/
|
|
public interface BaseViewManagerInterface<T extends View> {
|
|
void setAccessibilityActions(T view, @Nullable ReadableArray accessibilityActions);
|
|
|
|
void setAccessibilityHint(T view, @Nullable String accessibilityHint);
|
|
|
|
void setAccessibilityLabel(T view, @Nullable String accessibilityLabel);
|
|
|
|
void setAccessibilityLiveRegion(T view, @Nullable String liveRegion);
|
|
|
|
void setAccessibilityRole(T view, @Nullable String accessibilityRole);
|
|
|
|
void setViewState(T view, @Nullable ReadableMap accessibilityState);
|
|
|
|
void setBackgroundColor(T view, int backgroundColor);
|
|
|
|
void setBorderRadius(T view, float borderRadius);
|
|
|
|
void setBorderBottomLeftRadius(T view, float borderRadius);
|
|
|
|
void setBorderBottomRightRadius(T view, float borderRadius);
|
|
|
|
void setBorderTopLeftRadius(T view, float borderRadius);
|
|
|
|
void setBorderTopRightRadius(T view, float borderRadius);
|
|
|
|
void setElevation(T view, float elevation);
|
|
|
|
void setShadowColor(T view, int shadowColor);
|
|
|
|
void setImportantForAccessibility(T view, @Nullable String importantForAccessibility);
|
|
|
|
void setNativeId(T view, @Nullable String nativeId);
|
|
|
|
void setAccessibilityLabelledBy(T view, @Nullable Dynamic nativeId);
|
|
|
|
void setOpacity(T view, float opacity);
|
|
|
|
void setRenderToHardwareTexture(T view, boolean useHWTexture);
|
|
|
|
void setRotation(T view, float rotation);
|
|
|
|
void setScaleX(T view, float scaleX);
|
|
|
|
void setScaleY(T view, float scaleY);
|
|
|
|
void setTestId(T view, String testId);
|
|
|
|
void setTransform(T view, @Nullable ReadableArray matrix);
|
|
|
|
void setTranslateX(T view, float translateX);
|
|
|
|
void setTranslateY(T view, float translateY);
|
|
|
|
void setZIndex(T view, float zIndex);
|
|
}
|