return String.valueOf(map.getBoolean(key)); case String: return map.getString(key);
return String.valueOf(map.getBoolean(key)); case String: return map.getString(key);
switch (type) { case Boolean: return map.getBoolean(key); case String: { String value = map.getString(key);
switch (type) { case Boolean: return map.getBoolean(key); case String: { String value = map.getString(key);
switch(type){ case Boolean: value = map.getBoolean(key); break; case Number:
switch(type){ case Boolean: value = map.getBoolean(key); break; case Number:
protected void openIntentChooser() throws ActivityNotFoundException { if(this.options.hasKey("forceDialog") && this.options.getBoolean("forceDialog")){ Intent chooser = Intent.createChooser(this.getIntent(), this.chooserTitle); chooser.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); this.reactContext.startActivity(chooser); }else{ this.getIntent().setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); this.reactContext.startActivity(this.getIntent()); } } }
getBluredImages = options.getBoolean("blured"); getArtistFromSong = options.getBoolean("artist"); getDurationFromSong = options.getBoolean("duration"); getTitleFromSong = options.getBoolean("title"); getIDFromSong = options.getBoolean("id"); getCoverFromSong = options.getBoolean("cover"); getGenreFromSong = options.getBoolean("genre"); getAlbumFromSong = options.getBoolean("album");
break; case Boolean: deconstructedMap.put(key, readableMap.getBoolean(key)); break; case Number:
static HashMap<String, Object> toHashMap(ReadableMap map) { HashMap<String, Object> hashMap = new HashMap<>(); ReadableMapKeySetIterator iterator = map.keySetIterator(); while (iterator.hasNextKey()) { String key = iterator.nextKey(); switch (map.getType(key)) { case Null: hashMap.put(key, null); break; case Boolean: hashMap.put(key, map.getBoolean(key)); break; case Number: hashMap.put(key, map.getDouble(key)); break; case String: hashMap.put(key, map.getString(key)); break; case Map: hashMap.put(key,toHashMap(map.getMap(key))); break; case Array: hashMap.put(key, toArrayList(map.getArray(key))); break; default: throw new IllegalArgumentException("Could not convert object with key: " + key + "."); } } return hashMap; }
break; case "content": if(options.hasKey("contentIsHtml") && options.getBoolean("contentIsHtml")) { break; case "autoDismiss": builder.autoDismiss(options.getBoolean("autoDismiss")); break; case "forceStacking": builder.forceStacking(options.getBoolean("forceStacking")); break; case "alwaysCallSingleChoiceCallback": if (options.getBoolean("alwaysCallSingleChoiceCallback")) { builder.alwaysCallSingleChoiceCallback(); if (options.getBoolean("alwaysCallMultiChoiceCallback")) { builder.alwaysCallMultiChoiceCallback(); if (options.getBoolean("alwaysCallInputCallback")) { builder.alwaysCallInputCallback(); builder.cancelable(options.getBoolean("cancelable")); break; case "progressIndeterminateStyle": // true for horizontal, DO NOT USE builder.progressIndeterminateStyle(options.getBoolean("progressIndeterminateStyle")); break; case "buttonsGravity":
if (options.hasKey("multiChoiceClearButton") && options.getBoolean("multiChoiceClearButton")) { mBuilder.onNeutral(new MaterialDialog.SingleButtonCallback() { @Override boolean allowEmptyInput = !input.hasKey("allowEmptyInput") || input.getBoolean("allowEmptyInput");