PointerFromJObject

Typehandler
DictionaryLCB
LibraryLiveCode Builder
Syntax
PointerFromJObject(<pObj>)
Associationscom.livecode.java
Summary

Convert a JObject into a Pointer

Parameters
NameTypeDescription
pObj

The JObject to convert

Example
handler SetNativeLayerToView(in pView as JObject)
	variable tViewPtr as Pointer
	put PointerFromJObject(pView) into tViewPtr
	set my native layer to tViewPtr
end handler
Values
NameTypeDescription
return

The jobject Pointer wrapped by the JObject type

Description

Use PointerFromJObject to convert a variable of type JObject to one of type Pointer, i.e. to extract the underlying jobject pointer from a JObject