package com.hdl.photovoltaic.services;
|
|
import android.app.Service;
|
import android.content.Intent;
|
import android.os.IBinder;
|
|
import com.hdl.photovoltaic.IUniappAidlInterface;
|
import com.hdl.sdk.link.common.utils.LogUtils;
|
|
|
/**
|
* Created by hxb on 2024/12/27.
|
*/
|
public class UniappService extends Service {
|
|
private static final String TAG = "UniappService";
|
|
public UniappService() {
|
|
}
|
|
IUniappAidlInterface.Stub mIBinder=new IUniappAidlInterface.Stub() {
|
|
@Override
|
public void sendMsg(String mes) {
|
LogUtils.i(TAG,"收到请求数据:" + mes);
|
}
|
};
|
|
@Override
|
|
public IBinder onBind(Intent intent) {
|
LogUtils.i(TAG,"onBind: intent = "+intent.toString());
|
return mIBinder;
|
}
|
|
@Override
|
|
public boolean onUnbind(Intent intent) {
|
LogUtils.i(TAG,"onUnbind");
|
return super.onUnbind(intent);
|
}
|
|
@Override
|
public void onDestroy() {
|
LogUtils.i(TAG,"onDestroy");
|
super.onDestroy();
|
}
|
}
|