UnityPlayerWrapper

class UnityPlayerWrapper(contextWrapper: ContextWrapper)

Provides safe and convenient access to UnityPlayer.

Constructors

Link copied to clipboard
constructor(contextWrapper: ContextWrapper)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the Application Context.

Link copied to clipboard

Functions

Link copied to clipboard

Handles the destruction of UnityWallpaperEngine-owned SurfaceHolder.

Link copied to clipboard

Forwards configuration changes to Unity.

Link copied to clipboard

Forwards touch events to Unity.

Link copied to clipboard

Pauses the UnityPlayer.

Link copied to clipboard

Shuts down the UnityPlayer. Note: this will kill the application process entirely.

Link copied to clipboard

Resumes the UnityPlayer

Link copied to clipboard
fun setContext(contextWrapper: ContextWrapper?)

Sets internal UnityPlayer reference to ContextWrapper, used for soft input and some other stuff.

Link copied to clipboard
fun setPlayerSurface(surfaceHolder: SurfaceHolder?)

Sets the primary rendering surface of UnityPlayer.