blob: a6a8d9d8e1dda50b45710432bdb20c7322334473 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package se.leap.leapclient;
import android.os.Bundle;
import android.os.Handler;
import android.os.ResultReceiver;
public class ProviderAPIResultReceiver extends ResultReceiver {
private Receiver mReceiver;
public ProviderAPIResultReceiver(Handler handler) {
super(handler);
// TODO Auto-generated constructor stub
}
public void setReceiver(Receiver receiver) {
mReceiver = receiver;
}
public interface Receiver {
public void onReceiveResult(int resultCode, Bundle resultData);
}
@Override
protected void onReceiveResult(int resultCode, Bundle resultData) {
if (mReceiver != null) {
mReceiver.onReceiveResult(resultCode, resultData);
}
}
}
|