UnityPlayerInstantiatorActivity

An invisible Activity that provides a Context for UnityPlayer construction.

For some reason, current Unity versions crash if new UnityPlayer(context) argument is anything other than an Activity (WallpaperService, for example). So we create an Activity, use it to instantiate UnityPlayer, and immediately kill the Activity.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun bindService(p0: Intent, p1: ServiceConnection, p2: Int): Boolean
open override fun bindService(p0: Intent, p1: Int, p2: Executor, p3: ServiceConnection): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun checkCallingOrSelfPermission(p0: String): Int
Link copied to clipboard
open override fun checkCallingOrSelfUriPermission(p0: Uri, p1: Int): Int
Link copied to clipboard
Link copied to clipboard
open override fun checkCallingPermission(p0: String): Int
Link copied to clipboard
open override fun checkCallingUriPermission(p0: Uri, p1: Int): Int
Link copied to clipboard
open override fun checkCallingUriPermissions(p0: MutableList<Uri>, p1: Int): IntArray
Link copied to clipboard
open override fun checkPermission(p0: String, p1: Int, p2: Int): Int
Link copied to clipboard
open override fun checkSelfPermission(p0: String): Int
Link copied to clipboard
open override fun checkUriPermission(p0: Uri, p1: Int, p2: Int, p3: Int): Int
open override fun checkUriPermission(p0: Uri?, p1: String?, p2: String?, p3: Int, p4: Int, p5: Int): Int
Link copied to clipboard
open override fun checkUriPermissions(p0: MutableList<Uri>, p1: Int, p2: Int, p3: Int): IntArray
Link copied to clipboard
open override fun clearWallpaper()
Link copied to clipboard
open fun closeContextMenu()
Link copied to clipboard
open fun closeOptionsMenu()
Link copied to clipboard
open override fun createAttributionContext(p0: String?): Context
Link copied to clipboard
Link copied to clipboard
open override fun createContext(p0: ContextParams): Context
Link copied to clipboard
open override fun createContextForSplit(p0: String): Context
Link copied to clipboard
open override fun createDeviceContext(p0: Int): Context
Link copied to clipboard
open override fun createDisplayContext(p0: Display): Context
Link copied to clipboard
open override fun createPackageContext(p0: String, p1: Int): Context
Link copied to clipboard
Link copied to clipboard
open override fun createWindowContext(p0: Int, p1: Bundle?): Context
open override fun createWindowContext(p0: Display, p1: Int, p2: Bundle?): Context
Link copied to clipboard
open override fun databaseList(): Array<String>
Link copied to clipboard
open override fun deleteDatabase(p0: String): Boolean
Link copied to clipboard
open override fun deleteFile(p0: String): Boolean
Link copied to clipboard
open override fun deleteSharedPreferences(p0: String): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun dispatchKeyEvent(p0: KeyEvent): Boolean
Link copied to clipboard
open override fun dispatchKeyShortcutEvent(p0: KeyEvent): Boolean
Link copied to clipboard
open override fun dispatchTouchEvent(p0: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard
open fun dump(p0: String, p1: FileDescriptor?, p2: PrintWriter, p3: Array<String>?)
Link copied to clipboard
open override fun enforceCallingOrSelfPermission(p0: String, p1: String?)
Link copied to clipboard
open override fun enforceCallingOrSelfUriPermission(p0: Uri, p1: Int, p2: String)
Link copied to clipboard
open override fun enforceCallingPermission(p0: String, p1: String?)
Link copied to clipboard
open override fun enforceCallingUriPermission(p0: Uri, p1: Int, p2: String)
Link copied to clipboard
open override fun enforcePermission(p0: String, p1: Int, p2: Int, p3: String?)
Link copied to clipboard
open override fun enforceUriPermission(p0: Uri, p1: Int, p2: Int, p3: Int, p4: String)
open override fun enforceUriPermission(p0: Uri?, p1: String?, p2: String?, p3: Int, p4: Int, p5: Int, p6: String?)
Link copied to clipboard
open override fun fileList(): Array<String>
Link copied to clipboard
open fun <T : View> findViewById(p0: Int): T
Link copied to clipboard
open fun finish()
Link copied to clipboard
open fun finishActivity(p0: Int)
Link copied to clipboard
Link copied to clipboard
open fun finishAffinity()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getActionBar(): ActionBar?
Link copied to clipboard
Link copied to clipboard
open override fun getApplicationContext(): Context
Link copied to clipboard
open override fun getApplicationInfo(): ApplicationInfo
Link copied to clipboard
open override fun getAssets(): AssetManager
Link copied to clipboard
Link copied to clipboard
open override fun getAttributionTag(): String?
Link copied to clipboard
Link copied to clipboard
open override fun getCacheDir(): File
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getClassLoader(): ClassLoader
Link copied to clipboard
open override fun getCodeCacheDir(): File
Link copied to clipboard
fun getColor(p0: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getContentResolver(): ContentResolver
Link copied to clipboard
Link copied to clipboard
open fun getCurrentFocus(): View?
Link copied to clipboard
open override fun getDatabasePath(p0: String): File
Link copied to clipboard
open override fun getDataDir(): File
Link copied to clipboard
open override fun getDeviceId(): Int
Link copied to clipboard
open override fun getDir(p0: String, p1: Int): File
Link copied to clipboard
open override fun getDisplay(): Display?
Link copied to clipboard
Link copied to clipboard
open override fun getExternalCacheDir(): File?
Link copied to clipboard
open override fun getExternalCacheDirs(): Array<File>
Link copied to clipboard
open override fun getExternalFilesDir(p0: String?): File?
Link copied to clipboard
open override fun getExternalFilesDirs(p0: String): Array<File>
Link copied to clipboard
open override fun getExternalMediaDirs(): Array<File>
Link copied to clipboard
open override fun getFilesDir(): File
Link copied to clipboard
open override fun getFileStreamPath(p0: String): File
Link copied to clipboard
Link copied to clipboard
open fun getIntent(): Intent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getMainExecutor(): Executor
Link copied to clipboard
open override fun getMainLooper(): Looper
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getNoBackupFilesDir(): File
Link copied to clipboard
open override fun getObbDir(): File
Link copied to clipboard
open override fun getObbDirs(): Array<File>
Link copied to clipboard
open override fun getOpPackageName(): String
Link copied to clipboard
open override fun getPackageCodePath(): String
Link copied to clipboard
open override fun getPackageManager(): PackageManager
Link copied to clipboard
open override fun getPackageName(): String
Link copied to clipboard
open override fun getPackageResourcePath(): String
Link copied to clipboard
open override fun getParams(): ContextParams?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getReferrer(): Uri?
Link copied to clipboard
Link copied to clipboard
open override fun getResources(): Resources
Link copied to clipboard
Link copied to clipboard
open override fun getSharedPreferences(p0: String, p1: Int): SharedPreferences
Link copied to clipboard
Link copied to clipboard
fun getString(p0: Int): String
fun getString(p0: Int, vararg p1: Any): String
Link copied to clipboard
open override fun getSystemService(p0: String): Any
fun <T : Any> getSystemService(p0: Class<T>): T
Link copied to clipboard
open override fun getSystemServiceName(p0: Class<*>): String?
Link copied to clipboard
open fun getTaskId(): Int
Link copied to clipboard
Link copied to clipboard
open override fun getTheme(): Resources.Theme
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getWallpaper(): Drawable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getWindow(): Window
Link copied to clipboard
Link copied to clipboard
open override fun grantUriPermission(p0: String, p1: Uri, p2: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isDestroyed(): Boolean
Link copied to clipboard
open override fun isDeviceProtectedStorage(): Boolean
Link copied to clipboard
open fun isFinishing(): Boolean
Link copied to clipboard
open fun isImmersive(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun isRestricted(): Boolean
Link copied to clipboard
open fun isTaskRoot(): Boolean
Link copied to clipboard
open override fun isUiContext(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun managedQuery(p0: Uri, p1: Array<String>, p2: String, p3: Array<String>, p4: String): Cursor
Link copied to clipboard
open override fun moveDatabaseFrom(p0: Context, p1: String): Boolean
Link copied to clipboard
open override fun moveSharedPreferencesFrom(p0: Context, p1: String): Boolean
Link copied to clipboard
Link copied to clipboard
open fun navigateUpTo(p0: Intent): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun onActionModeFinished(p0: ActionMode)
Link copied to clipboard
open override fun onActionModeStarted(p0: ActionMode)
Link copied to clipboard
open fun onActivityReenter(p0: Int, p1: Intent)
Link copied to clipboard
open override fun onAttachedToWindow()
Link copied to clipboard
Link copied to clipboard
open fun onBackPressed()
Link copied to clipboard
open override fun onConfigurationChanged(p0: Configuration)
Link copied to clipboard
open override fun onContentChanged()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onCreate(p0: Bundle?, p1: PersistableBundle?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCreatePanelMenu(p0: Int, p1: Menu): Boolean
Link copied to clipboard
open override fun onCreatePanelView(p0: Int): View?
Link copied to clipboard
Link copied to clipboard
open override fun onCreateView(p0: String, p1: Context, p2: AttributeSet): View?
open override fun onCreateView(p0: View?, p1: String, p2: Context, p3: AttributeSet): View?
Link copied to clipboard
open override fun onDetachedFromWindow()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onKeyDown(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyLongPress(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyMultiple(p0: Int, p1: Int, p2: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyShortcut(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onKeyUp(p0: Int, p1: KeyEvent): Boolean
Link copied to clipboard
open override fun onLowMemory()
Link copied to clipboard
open override fun onMenuItemSelected(p0: Int, p1: MenuItem): Boolean
Link copied to clipboard
open override fun onMenuOpened(p0: Int, p1: Menu): Boolean
Link copied to clipboard
open fun onNavigateUp(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onPanelClosed(p0: Int, p1: Menu)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onPreparePanel(p0: Int, p1: View?, p2: Menu): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onSearchRequested(): Boolean
open override fun onSearchRequested(p0: SearchEvent?): Boolean
Link copied to clipboard
open fun onStateNotSaved()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onTrimMemory(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onWindowFocusChanged(p0: Boolean)
Link copied to clipboard
open fun openContextMenu(p0: View)
Link copied to clipboard
open override fun openFileInput(p0: String): FileInputStream
Link copied to clipboard
open override fun openFileOutput(p0: String, p1: Int): FileOutputStream
Link copied to clipboard
open fun openOptionsMenu()
Link copied to clipboard
open fun overrideActivityTransition(p0: Int, p1: Int, p2: Int)
open fun overrideActivityTransition(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
open fun overridePendingTransition(p0: Int, p1: Int)
open fun overridePendingTransition(p0: Int, p1: Int, p2: Int)
Link copied to clipboard
open override fun peekWallpaper(): Drawable
Link copied to clipboard
Link copied to clipboard
open fun recreate()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun registerReceiver(p0: BroadcastReceiver?, p1: IntentFilter): Intent?
open override fun registerReceiver(p0: BroadcastReceiver?, p1: IntentFilter, p2: Int): Intent?
open override fun registerReceiver(p0: BroadcastReceiver?, p1: IntentFilter, p2: String?, p3: Handler?): Intent?
open override fun registerReceiver(p0: BroadcastReceiver?, p1: IntentFilter, p2: String?, p3: Handler?, p4: Int): Intent?
Link copied to clipboard
Link copied to clipboard
fun removeDialog(p0: Int)
Link copied to clipboard
open override fun removeStickyBroadcast(p0: Intent)
Link copied to clipboard
open override fun removeStickyBroadcastAsUser(p0: Intent, p1: UserHandle)
Link copied to clipboard
open fun reportFullyDrawn()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : View> requireViewById(p0: Int): T & Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun revokeUriPermission(p0: Uri, p1: Int)
open override fun revokeUriPermission(p0: String, p1: Uri, p2: Int)
Link copied to clipboard
Link copied to clipboard
open override fun sendBroadcast(p0: Intent)
open override fun sendBroadcast(p0: Intent, p1: String?)
open override fun sendBroadcast(p0: Intent, p1: String?, p2: Bundle?)
Link copied to clipboard
open override fun sendBroadcastAsUser(p0: Intent, p1: UserHandle)
open override fun sendBroadcastAsUser(p0: Intent, p1: UserHandle, p2: String?)
Link copied to clipboard
open override fun sendOrderedBroadcast(p0: Intent, p1: String?)
open override fun sendOrderedBroadcast(p0: Intent, p1: String?, p2: Bundle?)
open override fun sendOrderedBroadcast(p0: Intent, p1: String?, p2: BroadcastReceiver?, p3: Handler?, p4: Int, p5: String?, p6: Bundle?)
open override fun sendOrderedBroadcast(p0: Intent, p1: String?, p2: Bundle?, p3: BroadcastReceiver?, p4: Handler?, p5: Int, p6: String?, p7: Bundle?)
open override fun sendOrderedBroadcast(p0: Intent, p1: String?, p2: String?, p3: BroadcastReceiver?, p4: Handler?, p5: Int, p6: String?, p7: Bundle?)
open fun sendOrderedBroadcast(p0: Intent, p1: Int, p2: String?, p3: String?, p4: BroadcastReceiver?, p5: Handler?, p6: String?, p7: Bundle?, p8: Bundle?)
Link copied to clipboard
open override fun sendOrderedBroadcastAsUser(p0: Intent, p1: UserHandle, p2: String?, p3: BroadcastReceiver?, p4: Handler?, p5: Int, p6: String?, p7: Bundle?)
Link copied to clipboard
open override fun sendStickyBroadcast(p0: Intent)
open override fun sendStickyBroadcast(p0: Intent, p1: Bundle?)
Link copied to clipboard
open override fun sendStickyBroadcastAsUser(p0: Intent, p1: UserHandle)
Link copied to clipboard
open override fun sendStickyOrderedBroadcast(p0: Intent, p1: BroadcastReceiver?, p2: Handler?, p3: Int, p4: String?, p5: Bundle?)
Link copied to clipboard
open override fun sendStickyOrderedBroadcastAsUser(p0: Intent, p1: UserHandle, p2: BroadcastReceiver?, p3: Handler?, p4: Int, p5: String?, p6: Bundle?)
Link copied to clipboard
open fun setActionBar(p0: Toolbar?)
Link copied to clipboard
open fun setContentView(p0: View)
open fun setContentView(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setImmersive(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setIntent(p0: Intent)
Link copied to clipboard
open fun setLocusContext(p0: LocusId?, p1: Bundle?)
Link copied to clipboard
Link copied to clipboard
fun setProgress(p0: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setResult(p0: Int)
fun setResult(p0: Int, p1: Intent)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setTheme(p0: Int)
open fun setTheme(p0: Resources.Theme?)
Link copied to clipboard
open fun setTitle(p0: CharSequence)
open fun setTitle(p0: Int)
Link copied to clipboard
open fun setTitleColor(p0: Int)
Link copied to clipboard
Link copied to clipboard
open fun setTurnScreenOn(p0: Boolean)
Link copied to clipboard
open fun setVisible(p0: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setWallpaper(p0: Bitmap)
open override fun setWallpaper(p0: InputStream)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun showAssist(p0: Bundle): Boolean
Link copied to clipboard
fun showDialog(p0: Int)
fun showDialog(p0: Int, p1: Bundle): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun startActivities(p0: Array<Intent>)
open override fun startActivities(p0: Array<Intent>, p1: Bundle?)
Link copied to clipboard
open override fun startActivity(p0: Intent)
open override fun startActivity(p0: Intent, p1: Bundle?)
Link copied to clipboard
open fun startActivityForResult(p0: Intent, p1: Int)
open fun startActivityForResult(p0: Intent, p1: Int, p2: Bundle?)
Link copied to clipboard
open fun startActivityFromChild(p0: Activity, p1: Intent, p2: Int)
open fun startActivityFromChild(p0: Activity, p1: Intent, p2: Int, p3: Bundle?)
Link copied to clipboard
open fun startActivityFromFragment(p0: Fragment, p1: Intent, p2: Int, p3: Bundle?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun startInstrumentation(p0: ComponentName, p1: String?, p2: Bundle?): Boolean
Link copied to clipboard
open override fun startIntentSender(p0: IntentSender, p1: Intent?, p2: Int, p3: Int, p4: Int)
open override fun startIntentSender(p0: IntentSender, p1: Intent?, p2: Int, p3: Int, p4: Int, p5: Bundle?)
Link copied to clipboard
open fun startIntentSenderForResult(p0: IntentSender, p1: Int, p2: Intent?, p3: Int, p4: Int, p5: Int)
open fun startIntentSenderForResult(p0: IntentSender, p1: Int, p2: Intent?, p3: Int, p4: Int, p5: Int, p6: Bundle?)
Link copied to clipboard
open fun startIntentSenderFromChild(p0: Activity, p1: IntentSender, p2: Int, p3: Intent, p4: Int, p5: Int, p6: Int)
open fun startIntentSenderFromChild(p0: Activity, p1: IntentSender, p2: Int, p3: Intent, p4: Int, p5: Int, p6: Int, p7: Bundle?)
Link copied to clipboard
Link copied to clipboard
open fun startLockTask()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun startSearch(p0: String?, p1: Boolean, p2: Bundle?, p3: Boolean)
Link copied to clipboard
open override fun startService(p0: Intent): ComponentName?
Link copied to clipboard
Link copied to clipboard
open fun stopLockTask()
Link copied to clipboard
Link copied to clipboard
open override fun stopService(p0: Intent): Boolean
Link copied to clipboard
open fun takeKeyEvents(p0: Boolean)
Link copied to clipboard
open fun triggerSearch(p0: String, p1: Bundle?)
Link copied to clipboard
open override fun unbindService(p0: ServiceConnection)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun unregisterReceiver(p0: BroadcastReceiver)
Link copied to clipboard
open override fun updateServiceGroup(p0: ServiceConnection, p1: Int, p2: Int)