当前位置: 首页>>代码示例>>Java>>正文


Java MapBuilder.of方法代码示例

本文整理汇总了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())
    );
}
 
开发者ID:12d,项目名称:react-native-videoplayer,代码行数:11,代码来源:ReactVideoViewManager.java

示例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"));
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:13,代码来源:ReactImageManager.java

示例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)
  );
}
 
开发者ID:shahen94,项目名称:react-native-extendable-image,代码行数:13,代码来源:ExtendableImageManager.java

示例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);
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:8,代码来源:ReactScrollViewCommandHelper.java

示例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"));
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:8,代码来源:ReactViewPagerManager.java

示例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()
      ));
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:10,代码来源:RedBoxDialog.java

示例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"));
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:10,代码来源:ReactDrawerLayoutManager.java

示例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
    );
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:12,代码来源:ReactWebViewManager.java

示例11: getExportedCustomDirectEventTypeConstants

import com.facebook.react.common.MapBuilder; //导入方法依赖的package包/类
@Override
public Map getExportedCustomDirectEventTypeConstants() {
  return MapBuilder.of(
      ReactSlidingCompleteEvent.EVENT_NAME,
      MapBuilder.of("registrationName", "onSlidingComplete"));
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:7,代码来源:ReactSliderManager.java

示例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);
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:4,代码来源:RCTViewManager.java

示例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"));
}
 
开发者ID:madhu314,项目名称:react-native-tabbed-view-pager-android,代码行数:7,代码来源:TabbedViewPagerManager.java

示例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);
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactTextInputManager.java

示例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);
}
 
开发者ID:qq565999484,项目名称:RNLearn_Project1,代码行数:5,代码来源:ReactDrawerLayoutManager.java


注:本文中的com.facebook.react.common.MapBuilder.of方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。