Version: 2023.1
言語: 日本語
public AndroidJavaObject CloneReference ();

戻り値

AndroidJavaObject A new C# object which references the same Java object as the original instance.

説明

Creates a clone of the C# object that references the same Java object.

Allows you to create multiple C# instances referencing the same Java object. The Java object will be excluded from garbage collection until all the C# references to it are disposed or garbage collected. If you call this method on an AndroidJavaClass instance, the returned clone's type will also be AndroidJavaClass.