open class RSMessageHandler : Runnable

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

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

protected var mData: IntArray!

Deprecated: Deprecated in Java.

mID

protected var mID: Int

Deprecated: Deprecated in Java.

mLength

protected var mLength: Int

Deprecated: Deprecated in Java.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-13 UTC.