本文整理匯總了Java中com.facebook.react.common.MapBuilder.Builder方法的典型用法代碼示例。如果您正苦於以下問題:Java MapBuilder.Builder方法的具體用法?Java MapBuilder.Builder怎麽用?Java MapBuilder.Builder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.facebook.react.common.MapBuilder
的用法示例。
在下文中一共展示了MapBuilder.Builder方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //導入方法依賴的package包/類
@Override
public @Nullable Map<String, Object> getExportedCustomDirectEventTypeConstants() {
MapBuilder.Builder<String, Object> builder = MapBuilder.builder();
for (String event : VideoEventEmitter.Events) {
builder.put(event, MapBuilder.of("registrationName", event));
}
return builder.build();
}
示例2: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //導入方法依賴的package包/類
@Override
@Nullable
public Map getExportedCustomDirectEventTypeConstants() {
MapBuilder.Builder builder = MapBuilder.builder();
for (Events event : Events.values()) {
builder.put(event.toString(), MapBuilder.of("registrationName", event.toString()));
}
return builder.build();
}
示例3: getExportedCustomBubblingEventTypeConstants
import com.facebook.react.common.MapBuilder; //導入方法依賴的package包/類
@Nullable
@Override
public Map getExportedCustomBubblingEventTypeConstants() {
MapBuilder.Builder<String, Map> builder = MapBuilder.builder();
for (SendEventTypes evt : SendEventTypes.values()) {
builder.put(evt.toString(), MapBuilder.of("registrationName", evt.toString()));
}
Log.d(TAG, builder.toString());
return builder.build();
}
示例4: getExportedCustomDirectEventTypeConstants
import com.facebook.react.common.MapBuilder; //導入方法依賴的package包/類
@Override
public Map getExportedCustomDirectEventTypeConstants() {
MapBuilder.Builder builder = MapBuilder.builder();
for (Events event : Events.values()) {
builder.put(event.toString(), MapBuilder.of("registrationName", event.toString()));
}
return builder.build();
}