diff options
Diffstat (limited to 'platform/android/src/com/artifex/mupdfdemo/SearchTaskResult.java')
-rw-r--r-- | platform/android/src/com/artifex/mupdfdemo/SearchTaskResult.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/SearchTaskResult.java b/platform/android/src/com/artifex/mupdfdemo/SearchTaskResult.java new file mode 100644 index 00000000..8fa3c3a2 --- /dev/null +++ b/platform/android/src/com/artifex/mupdfdemo/SearchTaskResult.java @@ -0,0 +1,24 @@ +package com.artifex.mupdfdemo; + +import android.graphics.RectF; + +public class SearchTaskResult { + public final String txt; + public final int pageNumber; + public final RectF searchBoxes[]; + static private SearchTaskResult singleton; + + SearchTaskResult(String _txt, int _pageNumber, RectF _searchBoxes[]) { + txt = _txt; + pageNumber = _pageNumber; + searchBoxes = _searchBoxes; + } + + static public SearchTaskResult get() { + return singleton; + } + + static public void set(SearchTaskResult r) { + singleton = r; + } +} |