summaryrefslogtreecommitdiff
path: root/platform/android/src/com/artifex/mupdfdemo/FilePicker.java
blob: d19535317803f9fec7fb5eb68297fc4fd169ad65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.artifex.mupdfdemo;

import android.net.Uri;

public abstract class FilePicker {
	public interface FilePickerSupport {
		void performPickFor(FilePicker picker);
	}

	private final FilePickerSupport support;

	FilePicker(FilePickerSupport _support) {
		support = _support;
	}

	void pick() {
		support.performPickFor(this);
	}

	abstract void onPick(Uri uri);
}