Added in API level 11
Deprecated in API level 31

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

Deprecated: Deprecated in Java.

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

Deprecated: Deprecated in Java.

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
Deprecated in API level 31
open fun getName(): String!

Deprecated: Deprecated in Java.

Return
String! name of the renderscript object

hashCode

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

Deprecated: Deprecated in Java.

Calculates the hash code value for a BaseObj.

Return
Int int

setName

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

Deprecated: Deprecated in Java.

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

Deprecated: Deprecated in Java.

Exceptions
java.lang.Throwable the Exception raised by this method