List of usage examples for com.facebook.react.common MapBuilder of
public static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
From source file:com.blockablewebview.BlockableWebViewManager.java
License:Open Source License
@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); }
From source file:com.shahenlibrary.VideoPlayer.VideoPlayerViewManager.java
License:Open Source License
@Nullable @Override//from w w w. ja va 2s. c o m public Map<String, Integer> getCommandsMap() { Log.d(VideoPlayerViewManager.REACT_PACKAGE, "getCommandsMap"); return MapBuilder.of(Events.COMPRESS_MEDIA, COMMAND_COMPRESS_MEDIA, Events.GET_MEDIA_INFO, COMMAND_GET_INFO, Events.TRIM_MEDIA, COMMAND_TRIM_MEDIA, Events.GET_PREVIEW_IMAGE, COMMAND_GET_PREVIEW_IMAGE); }
From source file:com.shahenlibrary.VideoPlayer.VideoPlayerViewManager.java
License:Open Source License
@Nullable @Override/*from www .j a va 2 s . co m*/ 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())); }