正在查看: Firecracker Simulator v4.8 应用的 AdUnitActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Firecracker Simulator v4.8 应用的 AdUnitActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.unity3d.services.ads.adunit;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.KeyEvent;
import com.unity3d.services.core.webview.bridge.SharedInstances;
import java.util.ArrayList;
import java.util.Map;
public class AdUnitActivity extends Activity implements IAdUnitActivity {
public static final String EXTRA_ACTIVITY_ID = "activityId";
public static final String EXTRA_DISPLAY_CUTOUT_MODE = "displayCutoutMode";
public static final String EXTRA_KEEP_SCREEN_ON = "keepScreenOn";
public static final String EXTRA_KEY_EVENT_LIST = "keyEvents";
public static final String EXTRA_ORIENTATION = "orientation";
public static final String EXTRA_SYSTEM_UI_VISIBILITY = "systemUiVisibility";
public static final String EXTRA_VIEWS = "views";
protected AdUnitActivityController _controller;
@Override
public Activity getActivity() {
return this;
}
@Override
public Context getContext() {
return this;
}
protected AdUnitActivityController createController() {
return new AdUnitActivityController(this, SharedInstances.INSTANCE.getWebViewEventSender(), new AdUnitViewHandlerFactory());
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
AdUnitActivityController createController = createController();
this._controller = createController;
createController.onCreate(bundle);
}
@Override
public AdUnitRelativeLayout getLayout() {
return this._controller.getLayout();
}
@Override
protected void onStart() {
super.onStart();
this._controller.onStart();
}
@Override
protected void onStop() {
super.onStop();
this._controller.onStop();
}
@Override
protected void onResume() {
super.onResume();
this._controller.onResume();
}
@Override
protected void onPause() {
super.onPause();
this._controller.onPause();
}
@Override
public void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
this._controller.onSaveInstanceState(bundle);
}
@Override
protected void onDestroy() {
AdUnitActivityController adUnitActivityController = this._controller;
if (adUnitActivityController != null) {
adUnitActivityController.onDestroy();
}
super.onDestroy();
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
return this._controller.onKeyDown(i, keyEvent);
}
@Override
public void onWindowFocusChanged(boolean z) {
this._controller.onWindowFocusChanged(z);
super.onWindowFocusChanged(z);
}
@Override
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
this._controller.onRequestPermissionsResult(i, strArr, iArr);
}
@Override
public void setViewFrame(String str, int i, int i2, int i3, int i4) {
this._controller.setViewFrame(str, i, i2, i3, i4);
}
@Override
public Map<String, Integer> getViewFrame(String str) {
return this._controller.getViewFrame(str);
}
@Override
public void setViews(String[] strArr) {
this._controller.setViews(strArr);
}
@Override
public String[] getViews() {
return this._controller.getViews();
}
@Override
public void setOrientation(int i) {
this._controller.setOrientation(i);
}
@Override
public boolean setKeepScreenOn(boolean z) {
return this._controller.setKeepScreenOn(z);
}
@Override
public boolean setSystemUiVisibility(int i) {
return this._controller.setSystemUiVisibility(i);
}
@Override
public void setKeyEventList(ArrayList<Integer> arrayList) {
this._controller.setKeyEventList(arrayList);
}
public IAdUnitViewHandler getViewHandler(String str) {
return this._controller.getViewHandler(str);
}
@Override
public void setLayoutInDisplayCutoutMode(int i) {
this._controller.setLayoutInDisplayCutoutMode(i);
}
}