forked from LineageOS/android_device_oneplus_sm8250-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OplusAppSwitchManager.java
37 lines (25 loc) · 1.04 KB
/
OplusAppSwitchManager.java
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
31
32
33
34
35
36
37
package com.oplus.app;
import android.content.Context;
public class OplusAppSwitchManager {
private static OplusAppSwitchManager sOplusAppSwitchManager = null;
public static int APP_SWITCH_VERSION = 1;
public static OplusAppSwitchManager getInstance() {
if (sOplusAppSwitchManager == null) {
sOplusAppSwitchManager = new OplusAppSwitchManager();
}
return sOplusAppSwitchManager;
}
public boolean registerAppSwitchObserver(Context context,
OnAppSwitchObserver observer, OplusAppSwitchConfig config) {
return true;
}
public boolean unregisterAppSwitchObserver(Context context, OnAppSwitchObserver observer) {
return true;
}
public interface OnAppSwitchObserver {
void onActivityEnter(OplusAppEnterInfo oplusAppEnterInfo);
void onActivityExit(OplusAppExitInfo oplusAppExitInfo);
void onAppEnter(OplusAppEnterInfo oplusAppEnterInfo);
void onAppExit(OplusAppExitInfo oplusAppExitInfo);
}
}