diff --git a/uni_modules/uts-nativepage/utssdk/app-android/index.uts b/uni_modules/uts-nativepage/utssdk/app-android/index.uts index 9912b0bbae4929155bcdfea05b805a4521fafb25..60adad64b1c702c40a5be30a075c15978c311ec3 100644 --- a/uni_modules/uts-nativepage/utssdk/app-android/index.uts +++ b/uni_modules/uts-nativepage/utssdk/app-android/index.uts @@ -26,6 +26,21 @@ import ViewGroup from 'android.view.ViewGroup'; import LayoutInflater from 'android.view.LayoutInflater'; import LinearLayoutManager from 'androidx.recyclerview.widget.LinearLayoutManager'; export {DoAppWidget} from "./DoAppWidget.uts" +import Application from 'android.app.Application'; + + +export class AppHookProxy implements UTSAndroidHookProxy { + override onCreate(application: Application) { + //当前应用是否 取得用户同意隐私协议 + android.util.Log.d("AppHookProxy", "AppHookProxy--onCreate---") + if(UTSAndroid.isPrivacyAgree()) { + //onCreate 初始化三方SDK + android.util.Log.d("AppHookProxy", "AppHookProxy--onCreate---isPrivacyAgree") + } + } +} + + class ForeService extends Service {