[pjgowtham] : Add missing classes for oneplus 12 camera app Co-authored-by: cjh1249131356 <cjh1249131356@gmail.com> Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
38 lines
1.0 KiB
Java
38 lines
1.0 KiB
Java
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);
|
|
}
|
|
}
|