當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。