|
1 | 1 | /*
|
2 |
| - * Copyright © 2019-2024 PSPDFKit GmbH. All rights reserved. |
| 2 | + * Copyright © 2019-2025 PSPDFKit GmbH. All rights reserved. |
3 | 3 | *
|
4 | 4 | * The PSPDFKit Sample applications are licensed with a modified BSD license.
|
5 | 5 | * Please see License for details. This notice may not be removed from this file.
|
|
17 | 17 | import androidx.annotation.NonNull;
|
18 | 18 | import androidx.annotation.Nullable;
|
19 | 19 | import androidx.appcompat.app.AppCompatActivity;
|
20 |
| -import com.pspdfkit.PSPDFKit; |
| 20 | +import com.pspdfkit.Nutrient; |
21 | 21 | import com.pspdfkit.configuration.activity.PdfActivityConfiguration;
|
22 | 22 | import com.pspdfkit.configuration.page.PageFitMode;
|
23 | 23 | import com.pspdfkit.configuration.page.PageScrollDirection;
|
@@ -77,13 +77,13 @@ protected void onDestroy() {
|
77 | 77 | * using {@link #launchPdfActivity(Uri)}.
|
78 | 78 | */
|
79 | 79 | private void prepareAndShowDocument(@NonNull final Uri uri) {
|
80 |
| - // PSPDFKit supports direct opening of documents from various URI locations (including |
| 80 | + // Nutrient supports direct opening of documents from various URI locations (including |
81 | 81 | // assets,
|
82 | 82 | // local file URIs, content provider URIs, etc.).
|
83 |
| - if (PSPDFKit.isOpenableUri(this, uri)) { |
| 83 | + if (Nutrient.isOpenableUri(this, uri)) { |
84 | 84 | launchPdfActivity(uri);
|
85 | 85 | } else {
|
86 |
| - // Only document accessible as files are openable directly with PSPDFKit so we have to |
| 86 | + // Only document accessible as files are openable directly with Nutrient so we have to |
87 | 87 | // transfer other documents to application cache
|
88 | 88 | final DownloadRequest request =
|
89 | 89 | new DownloadRequest.Builder(this).uri(uri).build();
|
@@ -113,7 +113,7 @@ private void prepareAndShowDemoDocument() {
|
113 | 113 | }
|
114 | 114 | /**
|
115 | 115 | * Launches the {@link com.pspdfkit.ui.PdfActivity} for showing the document located at the
|
116 |
| - * given URI. The URI must be openable (i.e. {@link PSPDFKit#isOpenableUri(Context, Uri)} has to |
| 116 | + * given URI. The URI must be openable (i.e. {@link Nutrient#isOpenableUri(Context, Uri)} has to |
117 | 117 | * return {@code true} for the URI).
|
118 | 118 | */
|
119 | 119 | private void launchPdfActivity(@NonNull final Uri uri) {
|
|
0 commit comments