Documentation

Unity Engine


Unity Engine


AttachCurrentThread()

Attaches the current thread to a Java (Dalvik) VM.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule
public static int AttachCurrentThread()

Returns

Type

Description

intZero on success. A negative number on failure.

Remarks

A thread must be attached to the VM before any other JNI calls can be made.