Added in API level 11
Deprecated in API level 31

RSMessageHandler


open class RSMessageHandler : Runnable
kotlin.Any
   ↳ android.renderscript.RenderScript.RSMessageHandler

The base class from which an application should derive in order to receive RS messages from scripts. When a script calls rsSendToClient, the data fields will be filled, and the run method will be called on a separate thread. This will occur some time after rsSendToClient completes in the script, as rsSendToClient is asynchronous. Message handlers are not guaranteed to have completed when android.renderscript.RenderScript#finish returns.

Summary

Public constructors

Public methods
open Unit
run()

When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

Properties
IntArray!

Int

Int

Public constructors

RSMessageHandler

RSMessageHandler()

Public methods

run

Added in API level 11
open fun run(): Unit

Deprecated: Deprecated in Java.

When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

The general contract of the method run is that it may take any action whatsoever.

Properties

mData

Added in API level 11
protected var mData: IntArray!

Deprecated: Deprecated in Java.

mID

Added in API level 11
protected var mID: Int

Deprecated: Deprecated in Java.

mLength

Added in API level 11
protected var mLength: Int

Deprecated: Deprecated in Java.