本文整理汇总了Java中com.facebook.react.common.MapBuilder.of方法的典型用法代码示例。如果您正苦于以下问题:Java MapBuilder.of方法的具体用法?Java MapBuilder.of怎么用?Java MapBuilder.of使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.facebook.react.common.MapBuilder
的用法示例。
在下文中一共展示了MapBuilder.of方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExportedViewConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
@Nullable
public Map getExportedViewConstants() {
return MapBuilder.of(
"ScaleNone", Integer.toString(ScalableType.LEFT_TOP.ordinal()),
"ScaleToFill", Integer.toString(ScalableType.FIT_XY.ordinal()),
"ScaleAspectFit", Integer.toString(ScalableType.FIT_CENTER.ordinal()),
"ScaleAspectFill", Integer.toString(ScalableType.CENTER_CROP.ordinal())
);
}
示例2: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public @Nullable Map getExportedCustomDirectEventTypeConstants() {
return MapBuilder.of(
ImageLoadEvent.eventNameForType(ImageLoadEvent.ON_LOAD_START),
MapBuilder.of("registrationName", "onLoadStart"),
ImageLoadEvent.eventNameForType(ImageLoadEvent.ON_LOAD),
MapBuilder.of("registrationName", "onLoad"),
ImageLoadEvent.eventNameForType(ImageLoadEvent.ON_ERROR),
MapBuilder.of("registrationName", "onError"),
ImageLoadEvent.eventNameForType(ImageLoadEvent.ON_LOAD_END),
MapBuilder.of("registrationName", "onLoadEnd"));
}
示例3: getExportedViewConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Nullable
@Override
public Map getExportedViewConstants() {
return MapBuilder.of(
"PanCenter", Integer.toString(ExtendableImage.PAN_LIMIT_CENTER),
"PanInside", Integer.toString(ExtendableImage.PAN_LIMIT_INSIDE),
"PanOutside", Integer.toString(ExtendableImage.PAN_LIMIT_OUTSIDE),
"ScaleCenterCrop", Integer.toString(ExtendableImage.SCALE_TYPE_CENTER_CROP),
"ScaleCenterInside", Integer.toString(ExtendableImage.SCALE_TYPE_CENTER_INSIDE),
"ScaleCustom", Integer.toString(ExtendableImage.SCALE_TYPE_CUSTOM)
);
}
示例4: getCommandsMap
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
public static Map<String,Integer> getCommandsMap() {
return MapBuilder.of(
"scrollTo",
COMMAND_SCROLL_TO,
"scrollToEnd",
COMMAND_SCROLL_TO_END);
}
示例5: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public Map getExportedCustomDirectEventTypeConstants() {
return MapBuilder.of(
PageScrollEvent.EVENT_NAME, MapBuilder.of("registrationName", "onPageScroll"),
PageScrollStateChangedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onPageScrollStateChanged"),
PageSelectedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onPageSelected"));
}
示例6: stackFrameToJson
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
private static JSONObject stackFrameToJson(StackFrame frame) {
return new JSONObject(
MapBuilder.of(
"file", frame.getFile(),
"methodName", frame.getMethod(),
"lineNumber", frame.getLine(),
"column", frame.getColumn()
));
}
示例7: getCommandsMap
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public
@Nullable
Map<String, Integer> getCommandsMap () {
return MapBuilder.of(
"goBack", GO_BACK,
"goForward", GO_FORWARD,
"reload", RELOAD,
"postMessage", POST_MESSAGE
);
}
开发者ID:KingBarbarian,项目名称:react-native-android-new-crosswalk,代码行数:12,代码来源:CrosswalkWebViewGroupManager.java
示例8: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public Map getExportedCustomDirectEventTypeConstants () {
return MapBuilder.of(
NavigationStateChangeEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onCrosswalkWebViewNavigationStateChange"),
ErrorEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onCrosswalkWebViewError"),
ProgressEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onCrosswalkWebViewProgress"),
TopMessageEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onMessage")
);
}
开发者ID:KingBarbarian,项目名称:react-native-android-new-crosswalk,代码行数:14,代码来源:CrosswalkWebViewGroupManager.java
示例9: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public @Nullable Map getExportedCustomDirectEventTypeConstants() {
return MapBuilder.of(
DrawerSlideEvent.EVENT_NAME, MapBuilder.of("registrationName", "onDrawerSlide"),
DrawerOpenedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onDrawerOpen"),
DrawerClosedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onDrawerClose"),
DrawerStateChangedEvent.EVENT_NAME, MapBuilder.of(
"registrationName", "onDrawerStateChanged"));
}
示例10: getCommandsMap
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public @Nullable Map<String, Integer> getCommandsMap() {
return MapBuilder.of(
"goBack", COMMAND_GO_BACK,
"goForward", COMMAND_GO_FORWARD,
"reload", COMMAND_RELOAD,
"stopLoading", COMMAND_STOP_LOADING,
"postMessage", COMMAND_POST_MESSAGE,
"injectJavaScript", COMMAND_INJECT_JAVASCRIPT
);
}
示例11: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public Map getExportedCustomDirectEventTypeConstants() {
return MapBuilder.of(
ReactSlidingCompleteEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onSlidingComplete"));
}
示例12: getCommandsMap
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
public Map<String, Integer> getCommandsMap() {
return MapBuilder.of("hotspotUpdate", CMD_HOTSPOT_UPDATE, "setPressed", CMD_SET_PRESSED);
}
示例13: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override public Map getExportedCustomDirectEventTypeConstants() {
return MapBuilder.of(PageScrollEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onPageScroll"), PageScrollStateChangedEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onPageScrollStateChanged"), PageSelectedEvent.EVENT_NAME,
MapBuilder.of("registrationName", "onPageSelected"));
}
示例14: getCommandsMap
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public @Nullable Map<String, Integer> getCommandsMap() {
return MapBuilder.of("focusTextInput", FOCUS_TEXT_INPUT, "blurTextInput", BLUR_TEXT_INPUT);
}
示例15: getCommandsMap
import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public @Nullable Map<String, Integer> getCommandsMap() {
return MapBuilder.of("openDrawer", OPEN_DRAWER, "closeDrawer", CLOSE_DRAWER);
}