summaryrefslogtreecommitdiff
path: root/platform/android/src/com/artifex/mupdfdemo/FilePicker.java
blob: 65e2e9011133bdb557be888d6509ca4c1b62fcaa (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;

interface FilePickerSupport {
	void performPickFor(FilePicker picker);
}

public abstract class FilePicker {
	private final FilePickerSupport support;

	FilePicker(FilePickerSupport _support) {
		support = _support;
	}

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

	abstract void onPick(Uri uri);
}