IJavaPeerable.UnregisterFromRuntime Method

Definition

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

public void UnregisterFromRuntime ();
abstract member UnregisterFromRuntime : unit -> unit

Remarks

Call this method when you would like to prevent this instance from being returned by future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

[JniTypeSignature ("my/Example")]
partial class ExampleBinding : IJavaPeerable {

	public void UnregisterFromRuntime ()
	{
        JniEnvironment.Runtime.ValueManager.UnRegisterObject (this);
	}
}

Applies to