Files
device_oplus_camera/oplus-fwk/src/com/oplus/app/OplusAppSwitchManager.java
chandu078 d0ffbb8aa8 Add OPLUS Camera support
[pjgowtham] : Add missing classes for oneplus 12 camera app

Co-authored-by: cjh1249131356 <cjh1249131356@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
2024-03-14 08:15:01 +05:30

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);
}
}