本文整理匯總了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);
}