UnityEventsProxy

Notifies about Live Wallpaper events. Compares the event data with previous event data and only sends the event if data has changed.

Note: Currently, the only listener is on the Unity C# side.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun customEventReceived(eventName: String, eventData: String)

Called to inform about a custom event.

Link copied to clipboard
open override fun desiredSizeChanged(desiredWidth: Int, desiredHeight: Int)

Notifies listeners about wallpaper desired size change.

Link copied to clipboard

Sends stored events to the listeners. Note: Called from C# code.

Link copied to clipboard
open override fun isPreviewChanged(isPreview: Boolean)

Notifies listeners about whether the wallpaper has entered or exited the preview mode.

Link copied to clipboard
open override fun multiTapDetected(finalTapPositionX: Float, finalTapPositionY: Float)

Called to inform that user has tapped the screen multiple times.

Link copied to clipboard
open override fun offsetsChanged(xOffset: Float, yOffset: Float, xOffsetStep: Float, yOffsetStep: Float, xPixelOffset: Int, yPixelOffset: Int)

Notifies listeners about wallpaper offsets change.

Link copied to clipboard
open override fun preferenceChanged(key: String)

Notifies listeners about preference value change.

Link copied to clipboard
open override fun preferencesActivityTriggered()

Called to inform that live wallpaper preferences Activity has started.

Link copied to clipboard

Registers an event listener. Note: Called from C# code.

Link copied to clipboard

Unregisters an event listener. Note: Called from C# code.

Link copied to clipboard
open override fun visibilityChanged(isVisible: Boolean)

Notifies listeners about whether the wallpaper has become visible or not visible.