public abstract class BaseViewManager<T extends android.view.View,C extends LayoutShadowNode> extends ViewManager<T,C>
ViewManager.
It provides support for base view properties such as backgroundColor, opacity, etc.NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_NATIVE_ID |
static java.lang.String |
PROP_TEST_ID
Used to locate views in end-to-end (UI) tests.
|
static java.util.HashMap<java.lang.String,java.lang.Integer> |
sStateDescription |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
BaseViewManager() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getExportedCustomDirectEventTypeConstants()
Returns a map of config data passed to JS that defines eligible events that can be placed on
native views.
|
protected void |
onAfterUpdateTransaction(T view)
Callback that will be triggered after all properties are updated in current update transaction
(all @ReactProp handlers for properties updated in current transaction have been called).
|
void |
setAccessibilityActions(T view,
ReadableArray accessibilityActions) |
void |
setAccessibilityHint(T view,
java.lang.String accessibilityHint) |
void |
setAccessibilityLabel(T view,
java.lang.String accessibilityLabel) |
void |
setAccessibilityLiveRegion(T view,
java.lang.String liveRegion) |
void |
setAccessibilityNodeInfo(T view,
ReadableMap map) |
void |
setAccessibilityRole(T view,
java.lang.String accessibilityRole) |
void |
setAccessible(T view,
boolean accessible) |
void |
setBackgroundColor(T view,
int backgroundColor) |
void |
setElevation(T view,
float elevation) |
void |
setImportantForAccessibility(T view,
java.lang.String importantForAccessibility) |
void |
setNativeId(T view,
java.lang.String nativeId) |
void |
setOpacity(T view,
float opacity) |
void |
setRenderToHardwareTexture(T view,
boolean useHWTexture) |
void |
setRotation(T view,
float rotation)
Deprecated.
|
void |
setScaleX(T view,
float scaleX)
Deprecated.
|
void |
setScaleY(T view,
float scaleY)
Deprecated.
|
void |
setTestId(T view,
java.lang.String testId) |
void |
setTransform(T view,
ReadableArray matrix) |
void |
setTranslateX(T view,
float translateX)
Deprecated.
|
void |
setTranslateY(T view,
float translateY)
Deprecated.
|
void |
setViewStates(T view,
ReadableArray accessibilityStates) |
void |
setZIndex(T view,
float zIndex) |
addEventEmitters, createShadowNodeInstance, createShadowNodeInstance, createViewInstance, createViewInstanceWithProps, createViewWithProps, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getName, getNativeProps, getShadowNodeClass, measure, onDropViewInstance, receiveCommand, updateExtraData, updateLocalData, updateProperties, updateStatecanOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroypublic static final java.lang.String PROP_TEST_ID
public static final java.lang.String PROP_NATIVE_ID
public static final java.util.HashMap<java.lang.String,java.lang.Integer> sStateDescription
public void setBackgroundColor(T view, int backgroundColor)
public void setTransform(T view, ReadableArray matrix)
public void setOpacity(T view, float opacity)
public void setElevation(T view, float elevation)
public void setZIndex(T view, float zIndex)
public void setRenderToHardwareTexture(T view, boolean useHWTexture)
public void setTestId(T view, java.lang.String testId)
public void setNativeId(T view, java.lang.String nativeId)
public void setAccessible(T view, boolean accessible)
public void setAccessibilityLabel(T view, java.lang.String accessibilityLabel)
public void setAccessibilityHint(T view, java.lang.String accessibilityHint)
public void setAccessibilityRole(T view, java.lang.String accessibilityRole)
public void setViewStates(T view, ReadableArray accessibilityStates)
public void setAccessibilityActions(T view, ReadableArray accessibilityActions)
public void setImportantForAccessibility(T view, java.lang.String importantForAccessibility)
public void setAccessibilityNodeInfo(T view, ReadableMap map)
@Deprecated public void setRotation(T view, float rotation)
@Deprecated public void setScaleX(T view, float scaleX)
@Deprecated public void setScaleY(T view, float scaleY)
@Deprecated public void setTranslateX(T view, float translateX)
@Deprecated public void setTranslateY(T view, float translateY)
public void setAccessibilityLiveRegion(T view, java.lang.String liveRegion)
protected void onAfterUpdateTransaction(T view)
ViewManageronAfterUpdateTransaction in class ViewManager<T extends android.view.View,C extends LayoutShadowNode>public java.util.Map<java.lang.String,java.lang.Object> getExportedCustomDirectEventTypeConstants()
ViewManagergetExportedCustomDirectEventTypeConstants in class ViewManager<T extends android.view.View,C extends LayoutShadowNode>