Google is committed to advancing racial equity for Black communities. See how.
Added in API level 11

BaseObj

open class BaseObj
kotlin.Any
   ↳ android.renderscript.BaseObj

BaseObj is the base class for all RenderScript objects owned by a RS context. It is responsible for lifetime management and resource tracking. This class should not be used by a user application.

Summary

Public methods

open Unit

Frees any native resources associated with this object.

open Boolean
equals(other: Any?)

Compare the current BaseObj with another BaseObj for equality.

open String!

open Int

Calculates the hash code value for a BaseObj.

open Unit
setName(name: String!)

setName assigns a name to an object.

Protected methods

open Unit

Public methods

destroy

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

Frees any native resources associated with this object. The primary use is to force immediate cleanup of resources when it is believed the GC will not respond quickly enough.

equals

Added in API level 11
open fun equals(other: Any?): Boolean

Compare the current BaseObj with another BaseObj for equality.

Parameters
obj The object to check equality with.
Return
Boolean boolean

getName

Added in API level 14
open fun getName(): String!
Return
String! name of the renderscript object

hashCode

Added in API level 11
open fun hashCode(): Int

Calculates the hash code value for a BaseObj.

Return
Int int

setName

Added in API level 11
open fun setName(name: String!): Unit

setName assigns a name to an object. This object can later be looked up by this name.

Parameters
name String!: The name to assign to the object.

Protected methods

finalize

Added in API level 11
protected open fun finalize(): Unit
Exceptions
java.lang.Throwable the Exception raised by this method