MCPcopy Index your code
hub / github.com/wonday/react-native-pdf / getURI

Method getURI

android/src/main/java/org/wonday/pdf/PdfView.java:509–516  ·  view source on GitHub ↗
(final String uri)

Source from the content-addressed store, hash-verified

507 }
508
509 private Uri getURI(final String uri) {
510 Uri parsed = Uri.parse(uri);
511
512 if (parsed.getScheme() == null || parsed.getScheme().isEmpty()) {
513 return Uri.fromFile(new File(uri));
514 }
515 return parsed;
516 }
517
518 private void setTouchesEnabled(final boolean enabled) {
519 setTouchesEnabled(this, enabled);

Callers 1

drawPdfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected